mirror of https://github.com/zeldaret/tmc.git
Misc prototype cleanup
This commit is contained in:
parent
1a6d14cd36
commit
a0f7b73e66
|
@ -52,7 +52,7 @@ extern void LoadResources(void);
|
|||
extern bool32 LoadSwapGFX(Entity*, u16, u32);
|
||||
extern void MenuFadeIn(u32, u32);
|
||||
extern void ModBombs(s32);
|
||||
extern u32 PlayerInRange(Entity*, u32, u32);
|
||||
extern bool32 PlayerInRange(Entity*, u32, s32);
|
||||
extern bool32 ProcessMovement1(Entity*);
|
||||
extern bool32 ProcessMovement12(Entity*);
|
||||
extern bool32 ProcessMovement2(Entity*);
|
||||
|
@ -130,15 +130,16 @@ extern void sub_0803C0AC(Entity*);
|
|||
extern void sub_08049CF4(Entity*);
|
||||
extern Entity* sub_08049DF4(u32);
|
||||
extern u32 sub_08049EE4(Entity*);
|
||||
extern u32 sub_08049F1C(Entity*, Entity*, u32);
|
||||
extern u32 sub_08049F84(Entity*, u32);
|
||||
extern u32 sub_08049FA0(Entity*);
|
||||
extern u32 sub_08049FDC(Entity*, u32);
|
||||
extern bool32 sub_08049F1C(Entity*, Entity*, s32);
|
||||
extern bool32 sub_08049F84(Entity*, s32);
|
||||
extern bool32 sub_08049FA0(Entity*);
|
||||
extern bool32 sub_08049FDC(Entity*, u32);
|
||||
extern u32 sub_0804A024(Entity*, u32, u32);
|
||||
extern u32 sub_0804A044(Entity*, Entity*, u32);
|
||||
extern void sub_0804A4E4(Entity*, Entity*);
|
||||
extern void sub_0804A720(Entity*);
|
||||
extern void sub_0804AA1C(Entity*);
|
||||
extern void sub_0804C128();
|
||||
extern void sub_0804C128(void);
|
||||
extern u32 sub_080542AC(u32);
|
||||
extern void sub_08054564();
|
||||
extern void sub_08054570(void);
|
||||
|
|
|
@ -306,12 +306,12 @@ bool32 sub_08030650(ArmosEntity* this) {
|
|||
return 1;
|
||||
}
|
||||
} else if (this->unk_80 != 2) {
|
||||
if ((sub_08049FDC(super, 1) == 0) || (0x20 < (gUnk_020000B0->x.HALF.HI - super->x.HALF.HI) + 0x10U)) {
|
||||
if (!sub_08049FDC(super, 1) || (0x20 < (gUnk_020000B0->x.HALF.HI - super->x.HALF.HI) + 0x10U)) {
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
} else {
|
||||
if (sub_08049FDC(super, 1) == 0) {
|
||||
if (!sub_08049FDC(super, 1)) {
|
||||
return FALSE;
|
||||
}
|
||||
if (gUnk_020000B0->x.HALF.HI >= (s32)(gRoomControls.origin_x + 0xa8)) {
|
||||
|
|
|
@ -610,8 +610,6 @@ void sub_08021644(Entity* this) {
|
|||
}
|
||||
}
|
||||
|
||||
extern u32 sub_08049F1C(Entity*, Entity*, u32);
|
||||
|
||||
u32 sub_08021664(Entity* this, Entity* ent) {
|
||||
switch (this->animationState) {
|
||||
case 0:
|
||||
|
|
|
@ -34,14 +34,14 @@ enum FlyingPotSubActions {
|
|||
/* 1 */ FLYING_POT_SUBACTION_1,
|
||||
/* 2 */ FLYING_POT_SUBACTION_2,
|
||||
/* 3 */ FLYING_POT_SUBACTION_3,
|
||||
/* 4 */ FLYING_POT_SUBACTION_4,
|
||||
/* 4 */ FLYING_POT_SUBACTION_DO_NOTHING,
|
||||
/* 5 */ FLYING_POT_SUBACTION_5,
|
||||
};
|
||||
|
||||
// Functions
|
||||
void FlyingPot_OnTick(FlyingPotEntity*); // 0803708C
|
||||
void sub_080370A4(FlyingPotEntity*); // 080370A4
|
||||
void sub_0803712C(FlyingPotEntity*); // 0803712C
|
||||
void FlyingPot_OnTick(FlyingPotEntity*); // 0803708C
|
||||
void FlyingPot_OnCollision(FlyingPotEntity*); // 080370A4
|
||||
void FlyingPot_OnGrabbed(FlyingPotEntity*); // 0803712C
|
||||
|
||||
// Subactions
|
||||
void FlyingPot_SubAction0(FlyingPotEntity*); // 08037144
|
||||
|
@ -64,8 +64,12 @@ void sub_08037408(FlyingPotEntity*);
|
|||
void sub_08037418(FlyingPotEntity*);
|
||||
|
||||
void (*const FlyingPot_Functions[])(Entity*) = {
|
||||
(EntityActionPtr)FlyingPot_OnTick, (EntityActionPtr)sub_080370A4, GenericKnockback, GenericDeath, GenericConfused,
|
||||
(EntityActionPtr)sub_0803712C,
|
||||
(EntityActionPtr)FlyingPot_OnTick,
|
||||
(EntityActionPtr)FlyingPot_OnCollision,
|
||||
GenericKnockback,
|
||||
GenericDeath,
|
||||
GenericConfused,
|
||||
(EntityActionPtr)FlyingPot_OnGrabbed,
|
||||
};
|
||||
|
||||
void FlyingPot(Entity* thisx) {
|
||||
|
@ -87,7 +91,7 @@ void FlyingPot_OnTick(FlyingPotEntity* this) {
|
|||
FlyingPot_Actions[super->action](this);
|
||||
}
|
||||
|
||||
void sub_080370A4(FlyingPotEntity* this) {
|
||||
void FlyingPot_OnCollision(FlyingPotEntity* this) {
|
||||
sub_08037418(this);
|
||||
|
||||
if (super->bitfield == 0x9D) {
|
||||
|
@ -104,7 +108,7 @@ void sub_080370A4(FlyingPotEntity* this) {
|
|||
EnemyFunctionHandlerAfterCollision(super, FlyingPot_Functions);
|
||||
}
|
||||
|
||||
void sub_0803712C(FlyingPotEntity* this) {
|
||||
void FlyingPot_OnGrabbed(FlyingPotEntity* this) {
|
||||
static void (*const FlyingPot_SubActions[])(FlyingPotEntity*) = {
|
||||
FlyingPot_SubAction0, FlyingPot_SubAction1, FlyingPot_SubAction2,
|
||||
FlyingPot_SubAction3, FlyingPot_SubActionDoNothing, FlyingPot_SubAction5,
|
||||
|
|
|
@ -42,9 +42,6 @@ void sub_08037ACC(GibdoEntity*);
|
|||
void Gibdo_CreateObjects(GibdoEntity*);
|
||||
void sub_08037A14(GibdoEntity*);
|
||||
|
||||
extern void sub_0804A4E4(Entity*, Entity*);
|
||||
u32 sub_0804A044(Entity*, Entity*, u32);
|
||||
|
||||
void (*const Gibdo_Functions[6])(Entity*);
|
||||
void (*const gUnk_080CF2AC[9])(GibdoEntity*);
|
||||
extern Entity* gUnk_020000B0;
|
||||
|
|
|
@ -8,9 +8,6 @@ extern void (*const gUnk_080012C8[])(Entity*);
|
|||
const s8 gUnk_080CF490[];
|
||||
const u8 gUnk_080CF498[];
|
||||
|
||||
extern s32 sub_080012DC(Entity*);
|
||||
extern u32 sub_0804A044(Entity*, Entity*, u32);
|
||||
|
||||
void sub_08037E14(Entity* this);
|
||||
bool32 sub_08037E90(Entity* this);
|
||||
|
||||
|
|
|
@ -19,9 +19,6 @@ extern const s8 gUnk_080CA5D4[];
|
|||
void sub_080205F8(Entity*);
|
||||
void sub_08020604(Entity*);
|
||||
|
||||
extern u32 sub_08049F1C(Entity*, Entity*, u32);
|
||||
extern void sub_0804AA1C(Entity*);
|
||||
|
||||
extern Entity* gUnk_020000B0;
|
||||
|
||||
enum {
|
||||
|
|
|
@ -8,8 +8,6 @@
|
|||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern void sub_0804A4E4(Entity*, Entity*);
|
||||
|
||||
extern void (*const RockChuchu_Functions[])(Entity*);
|
||||
extern void (*const gUnk_080CB960[])(Entity*);
|
||||
|
||||
|
|
|
@ -12,7 +12,6 @@ extern void (*const Rope_Functions[6])(Entity*);
|
|||
extern void (*const gUnk_080CE460[4])(Entity*);
|
||||
extern void (*const gUnk_080CE470[3])(Entity*);
|
||||
extern Entity* gUnk_020000B0;
|
||||
extern u32 sub_0804A044(Entity*, Entity*, u32);
|
||||
|
||||
void sub_08031600(Entity*);
|
||||
u32 sub_0803163C(Entity*);
|
||||
|
|
|
@ -14,9 +14,6 @@ extern void (*const gUnk_080012C8[])(Entity*);
|
|||
extern void (*const RopeGolden_Functions[6])(Entity*);
|
||||
extern void (*const gUnk_080CF4E0[4])(Entity*);
|
||||
|
||||
extern s32 sub_080012DC(Entity*);
|
||||
extern u32 sub_0804A044(Entity*, Entity*, u32);
|
||||
|
||||
void sub_080383AC(Entity*);
|
||||
void sub_080383E4(Entity*);
|
||||
|
||||
|
|
|
@ -15,8 +15,6 @@ typedef struct {
|
|||
void sub_08044FF8(Entity*);
|
||||
void sub_08045178(Entity*, Entity*, int, int);
|
||||
|
||||
extern void sub_0804A4E4(Entity*, Entity*);
|
||||
|
||||
extern void (*const gUnk_080D16BC[])(Entity*);
|
||||
extern void (*const Slime_Functions[])(Entity*);
|
||||
extern u8 gUnk_080D16D0[4]; // Entity count per form
|
||||
|
|
|
@ -8,13 +8,9 @@
|
|||
#include "enemy.h"
|
||||
#include "functions.h"
|
||||
|
||||
extern s32 sub_080012DC(Entity*);
|
||||
bool32 PlayerInRange(Entity*, u32, u32);
|
||||
|
||||
void sub_08023E10(Entity*);
|
||||
void sub_08023E54(Entity*);
|
||||
void sub_08023E9C(Entity*);
|
||||
void sub_0804A4E4(Entity*, Entity*);
|
||||
|
||||
extern void (*const gUnk_080012C8[])(Entity*);
|
||||
|
||||
|
@ -178,7 +174,7 @@ extern Entity* gUnk_020000B0;
|
|||
|
||||
void sub_08023E9C(Entity* this) {
|
||||
u32 uVar3 = Random();
|
||||
if (sub_08049FA0(this) == 0 && (uVar3 & 1)) {
|
||||
if (!sub_08049FA0(this) && (uVar3 & 1)) {
|
||||
this->direction = DirectionRoundUp(sub_08049EE4(this));
|
||||
} else if (sub_08049FDC(this, 1) && (uVar3 & 6)) {
|
||||
u32 uVar3 = GetFacingDirection(this, gUnk_020000B0) - this->direction;
|
||||
|
|
|
@ -9,11 +9,6 @@
|
|||
#include "functions.h"
|
||||
#include "hitbox.h"
|
||||
|
||||
extern void sub_08001318(Entity*);
|
||||
extern u32 PlayerInRange(Entity*, u32, u32);
|
||||
extern void sub_0804A4E4(Entity*, Entity*);
|
||||
extern void sub_0804AA1C(Entity*);
|
||||
|
||||
u32 sub_080228CC(Entity*);
|
||||
u32 sub_080228F0(Entity*);
|
||||
|
||||
|
|
Loading…
Reference in New Issue