include/enemy.h file

Classes

struct Enemy

Enums

enum (anonymous) { OCTOROK, CHUCHU, LEEVER, PEAHAT, ROLLOBITE, DARK_NUT, HANGING_SEED, BEETLE, KEESE, DOOR_MIMIC, ROCK_CHUCHU, SPINY_CHUCHU, CUCCO_CHICK_AGGR, MOLDORM, ENEMY_E, MOLDWORM, SLUGGULA, PESTO, PUFFSTOOL, CHUCHU_BOSS, LIKE_LIKE, SPEAR_MOBLIN, BUSINESS_SCRUB, RUPEE_LIKE, MADDERPILLAR, WATER_DROP, WALL_MASTER, BOMB_PEAHAT, SPARK, CHASER, SPIKED_BEETLE, SENSOR_BLADE_TRAP, HELMASAUR, FALLING_BOULDER, BOBOMB, WALL_MASTER_2, GLEEROK, VAATI_EYES_MACRO, TEKTITE, WIZZROBE_WIND, WIZZROBE_FIRE, WIZZROBE_ICE, ARMOS, EYEGORE, ROPE, SMALL_PESTO, ACRO_BANDIT, BLADE_TRAP, KEATON, CROW, MULLDOZER, BOMBAROSSA, WISP, SPINY_BEETLE, MAZAAL_HEAD, MAZAAL_MACRO, MAZAAL_HAND, OCTOROK_BOSS, FLYING_POT, GOBDO, OCTOROK_GOLDEN, TEKTITE_GOLDEN, ROPE_GOLDEN, CLOUD_PIRANHA, SCISSORS_BEETLE, CUCCO_AGGR, STALFOS, FLYING_SKULL, MAZAAL_BRACELET, TAKKURI, BOW_MOBLIN, LAKITU, LAKITU_CLOUD, TORCH_TRAP, VAATI_REBORN_ENEMY, VAATI_PROJECTILE, BALL_CHAIN_SOLIDER, ENEMY_4D, GHINI, VAATI_TRANSFIGURED, ENEMY_50, VAATI_WRATH, VAATI_ARM, DUST, VAATI_BALL, OCTOROK2, SLIME, MINI_SLIME, FIREBALL_GUY, MINI_FIREBALL_GUY, VAATI_TRANSFIGURED_EYE, BUSINESS_SCRUB_PROLOGUE, GYORG_FEMALE, GYORG_MALE, CURTAIN, VAATI_WRATH_EYE, GYORG_CHILD, GYORG_FEMALE_EYE, GYORG_MALE_EYE, GYORG_FEMALE_MOUTH, ENEMY_64, TREE_ITEM, ENEMY_66 }

Functions

auto EnemyInit(Enemy* this) -> bool32
auto GetNextFunction(Entity*) -> u32
0: _OnTick 1: _OnCollision 2: _OnKnockback 3: _OnDeath 4: _OnConfused 5: _OnGrabbed
void EnemyFunctionHandler(Entity*, EntityActionArray)
void EnemyFunctionHandlerAfterCollision(Entity* entity, void(*[])() const fntable)
Unsets bitfield 0x80 before calling GetNextFunction, so that the enemyFunction 1 is not called.
void GenericKnockback(Entity*)
void EnemyCreateDeathFX(Enemy* parent, u32 parentId, u32 fixedItem)
void sub_0804A720(Entity* parent)
auto sub_08049FDC(Entity* ent, u32 arg1) -> bool32
auto EnemyCreateFX(Entity* parent, u32 fxType) -> Entity*
void EnemySetFXOffset(Entity* entity, s32 xOffset, s32 yOffset, s32 zOffset)
auto EnemyCreateProjectile(Entity* parent, u32 projectileId, u32 projectileType) -> Entity*
void GenericDeath(Entity* this)
void sub_080026C4(u8*, u8*, u8*, u32)
void sub_080026F2(u8*, void*, u8*, u32)
auto sub_08049FA0(Entity* ent) -> bool32
auto sub_08049EE4(Entity* ent) -> u32
auto sub_08049F84(Entity* ent, s32 arg2) -> bool32
auto sub_08049DF4(u32 arg0) -> Entity*
auto sub_0804A044(Entity* entA, Entity* entB, u32 arg2) -> u32
auto sub_080012DC(Entity*) -> s32
void EnemyDetachFX(Entity* entity)
auto sub_08049F1C(Entity* entA, Entity* entB, s32 maxDist) -> bool32
auto PlayerInRange(Entity* ent, u32 arg1, s32 maxDist) -> bool32
void EnemyCopyParams(Entity* src, Entity* dest)
void GenericKnockback2(Entity*)
void Octorok()
void Chuchu()
void Leever()
void Peahat()
void Rollobite()
void DarkNut()
void HangingSeed()
void Beetle()
void Keese()
void DoorMimic()
void RockChuchu()
void SpinyChuchu()
void CuccoChickAggr()
void Moldorm()
void EnemyE()
void Moldworm()
void Sluggula()
void Pesto()
void Puffstool()
void ChuchuBoss()
void LikeLike()
void SpearMoblin()
void BusinessScrub()
void RupeeLike()
void Madderpillar()
void WaterDrop()
void WallMaster()
void BombPeahat()
void Spark()
void Chaser()
void SpikedBeetle()
void SensorBladeTrap()
void Helmasaur()
void FallingBoulder()
void Bobomb()
void WallMaster2()
void Gleerok()
void VaatiEyesMacro()
void Tektite()
void WizzrobeWind()
void WizzrobeFire()
void WizzrobeIce()
void Armos()
void Eyegore()
void Rope()
void SmallPesto()
void AcroBandit()
void BladeTrap()
void Keaton()
void Crow()
void Mulldozer()
void Bombarossa()
void Wisp()
void SpinyBeetle()
void MazaalHead()
void MazaalMacro()
void MazaalHand()
void OctorokBoss()
void FlyingPot()
void Gibdo()
void OctorokGolden()
void TektiteGolden()
void RopeGolden()
void CloudPiranha()
void ScissorsBeetle()
void CuccoAggr()
void Stalfos()
void FlyingSkull()
void MazaalBracelet()
void Takkuri()
void BowMoblin()
void Lakitu()
void LakituCloud()
void TorchTrap()
void VaatiRebornEnemy()
void VaatiProjectile()
void BallChainSoldier()
void Enemy4D()
void Ghini()
void VaatiTransfigured()
void Enemy50()
void VaatiWrath()
void VaatiArm()
void Dust()
void VaatiBall()
void Slime()
void MiniSlime()
void FireballGuy()
void MiniFireballGuy()
void VaatiTransfiguredEye()
void BusinessScrubPrologue()
void GyorgFemale()
void GyorgMale()
void Curtain()
void VaatiWrathEye()
void GyorgChild()
void GyorgFemaleEye()
void GyorgMaleEye()
void GyorgFemaleMouth()
void Enemy64()
void TreeItem()
void Enemy66()

Variables

void(*const gUnk_080012C8

Defines

#define EM_FLAG_BOSS
#define EM_FLAG_BOSS_KILLED
#define EM_FLAG_HAS_HOME
#define EM_FLAG_NO_DEATH_FX
#define EM_FLAG_SUPPORT
#define EM_FLAG_CAPTAIN
#define EM_FLAG_MONITORED

Function documentation

u32 sub_0804A044(Entity* entA, Entity* entB, u32 arg2)