mirror of https://github.com/zeldaret/tmc.git
265 lines
6.3 KiB
C
265 lines
6.3 KiB
C
#ifndef ENEMY_H
|
|
#define ENEMY_H
|
|
|
|
#include "global.h"
|
|
#include "asm.h"
|
|
|
|
#include "sound.h"
|
|
#include "effects.h"
|
|
#include "flags.h"
|
|
#include "common.h"
|
|
|
|
#include "entity.h"
|
|
#include "projectile.h"
|
|
|
|
bool32 EnemyInit(Entity* this);
|
|
/**
|
|
* 0: _OnTick
|
|
* 1: _OnCollision
|
|
* 2: _OnKnockback
|
|
* 3: _OnDeath
|
|
* 4: _OnConfused
|
|
* 5: _OnGrabbed
|
|
*/
|
|
u32 GetNextFunction(Entity*);
|
|
void EnemyFunctionHandler(Entity*, EntityActionArray);
|
|
void EnemyFunctionHandlerAfterCollision(Entity*, void (*const[])());
|
|
void GenericKnockback(Entity*);
|
|
Entity* CreateDeathFx(Entity*, u32, u32);
|
|
void sub_0804A720(Entity*);
|
|
bool32 sub_08049FDC(Entity*, u32);
|
|
|
|
Entity* Create0x68FX(Entity*, u32);
|
|
void SetChildOffset(Entity*, s32, s32, s32);
|
|
Entity* CreateProjectileWithParent(Entity*, u8, u8);
|
|
|
|
void GenericDeath(Entity*);
|
|
void sub_08002724(void*, u8*);
|
|
void sub_080026C4(u8*, u8*, u8*, u32);
|
|
void sub_080026F2(u8*, void*, u8*, u32);
|
|
bool32 sub_08049FA0(Entity*);
|
|
u32 sub_08049EE4(Entity*);
|
|
bool32 sub_08049F84(Entity*, s32);
|
|
Entity* sub_08049DF4(u32);
|
|
u32 sub_0804A044(Entity*, Entity*, u32);
|
|
s32 sub_080012DC(Entity*);
|
|
u32 sub_080044EC(Entity*, u32);
|
|
void sub_0804AA1C(Entity*);
|
|
bool32 sub_08049F1C(Entity*, Entity*, s32);
|
|
bool32 PlayerInRange(Entity*, u32, s32);
|
|
void sub_0804A4E4(Entity*, Entity*);
|
|
void GenericKnockback2(Entity*);
|
|
|
|
typedef enum {
|
|
/*0x00*/ OCTOROK,
|
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/*0x5a*/ VAATI_TRANSFIGURED_EYE,
|
|
/*0x5b*/ BUSINESS_SCRUB_PROLOGUE,
|
|
/*0x5c*/ GYORG_FEMALE,
|
|
/*0x5d*/ GYORG_MALE,
|
|
/*0x5e*/ CURTAIN,
|
|
/*0x5f*/ VAATI_WRATH_EYE,
|
|
/*0x60*/ GYORG_CHILD,
|
|
/*0x61*/ GYORG_FEMALE_EYE,
|
|
/*0x62*/ GYORG_MALE_EYE,
|
|
/*0x63*/ GYORG_FEMALE_MOUTH,
|
|
/*0x64*/ ENEMY_64,
|
|
/*0x65*/ TREE_ITEM,
|
|
/*0x66*/ ENEMY_66
|
|
} Enemy;
|
|
|
|
void Octorok(Entity*);
|
|
void Chuchu(Entity*);
|
|
void Leever(Entity*);
|
|
void Peahat(Entity*);
|
|
void Rollobite(Entity*);
|
|
void DarkNut(Entity*);
|
|
void HangingSeed(Entity*);
|
|
void Beetle(Entity*);
|
|
void Keese(Entity*);
|
|
void DoorMimic(Entity*);
|
|
void RockChuchu(Entity*);
|
|
void SpinyChuchu(Entity*);
|
|
void CuccoChickAggr(Entity*);
|
|
void Moldorm(Entity*);
|
|
void EnemyE(Entity*);
|
|
void Moldworm(Entity*);
|
|
void Sluggula(Entity*);
|
|
void Pesto(Entity*);
|
|
void Puffstool(Entity*);
|
|
void ChuchuBoss(Entity*);
|
|
void LikeLike(Entity*);
|
|
void SpearMoblin(Entity*);
|
|
void BusinessScrub(Entity*);
|
|
void RupeeLike(Entity*);
|
|
void Madderpillar(Entity*);
|
|
void WaterDrop(Entity*);
|
|
void WallMaster(Entity*);
|
|
void BombPeahat(Entity*);
|
|
void Spark(Entity*);
|
|
void Chaser(Entity*);
|
|
void SpikedBeetle(Entity*);
|
|
void SensorBladeTrap(Entity*);
|
|
void Helmasaur(Entity*);
|
|
void FallingBoulder(Entity*);
|
|
void Bobomb(Entity*);
|
|
void WallMaster2(Entity*);
|
|
void Gleerok();
|
|
void VaatiEyesMacro(Entity*);
|
|
void Tektite(Entity*);
|
|
void WizzrobeWind();
|
|
void WizzrobeFire();
|
|
void WizzrobeIce();
|
|
void Armos();
|
|
void Eyegore();
|
|
void Rope(Entity*);
|
|
void SmallPesto(Entity*);
|
|
void AcroBandit(Entity*);
|
|
void BladeTrap(Entity*);
|
|
void Keaton(Entity*);
|
|
void Crow(Entity*);
|
|
void Mulldozer();
|
|
void Bombarossa(Entity*);
|
|
void Wisp(Entity*);
|
|
void SpinyBeetle(Entity*);
|
|
void MazaalHead(Entity*);
|
|
void MazaalMacro(Entity*);
|
|
void MazaalHand(Entity*);
|
|
void OctorokBoss();
|
|
void FlyingPot(Entity*);
|
|
void Gibdo(Entity*);
|
|
void OctorokGolden(Entity*);
|
|
void TektiteGolden(Entity*);
|
|
void RopeGolden(Entity*);
|
|
void CloudPiranha();
|
|
void ScissorsBeetle(Entity*);
|
|
void CuccoAggr(Entity*);
|
|
void Stalfos();
|
|
void FlyingSkull(Entity*);
|
|
void MazaalBracelet(Entity*);
|
|
void Takkuri(Entity*);
|
|
void BowMoblin(Entity*);
|
|
void Lakitu(Entity*);
|
|
void LakituCloud(Entity*);
|
|
void TorchTrap(Entity*);
|
|
void VaatiRebornEnemy(Entity*);
|
|
void VaatiProjectile(Entity*);
|
|
void BallChainSoldier(Entity*);
|
|
void Enemy4D();
|
|
void Ghini();
|
|
void VaatiTransfigured(Entity*);
|
|
void Enemy50();
|
|
void VaatiWrath(Entity*);
|
|
void VaatiArm(Entity*);
|
|
void Dust(Entity*);
|
|
void VaatiBall(Entity*);
|
|
void Slime(Entity*);
|
|
void MiniSlime(Entity*);
|
|
void FireballGuy(Entity*);
|
|
void MiniFireballGuy(Entity*);
|
|
void VaatiTransfiguredEye(Entity*);
|
|
void BusinessScrubPrologue(Entity*);
|
|
void GyorgFemale();
|
|
void GyorgMale();
|
|
void Curtain(Entity*);
|
|
void VaatiWrathEye(Entity*);
|
|
void GyorgChild();
|
|
void GyorgFemaleEye();
|
|
void GyorgMaleEye();
|
|
void GyorgFemaleMouth();
|
|
void Enemy64();
|
|
void TreeItem(Entity*);
|
|
void Enemy66(Entity*);
|
|
|
|
extern void (*const gUnk_080012C8[])(Entity*);
|
|
|
|
#endif // ENEMY_H
|