Document pokedude battle controller, 1
This commit is contained in:
@@ -1 +1 @@
|
|||||||
gUnknown_3005EE0
|
gPokedudeBattlerStates
|
||||||
|
|||||||
+10
-1
@@ -616,6 +616,15 @@ struct MonSpritesGfx
|
|||||||
u16 *multiUseBuffer;
|
u16 *multiUseBuffer;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct PokedudeBattlerState
|
||||||
|
{
|
||||||
|
u8 action_idx;
|
||||||
|
u8 move_idx;
|
||||||
|
u8 timer;
|
||||||
|
u8 msg_idx;
|
||||||
|
u8 saved_bg0y;
|
||||||
|
};
|
||||||
|
|
||||||
extern u16 gBattle_BG0_X;
|
extern u16 gBattle_BG0_X;
|
||||||
extern u16 gBattle_BG0_Y;
|
extern u16 gBattle_BG0_Y;
|
||||||
extern u16 gBattle_BG1_X;
|
extern u16 gBattle_BG1_X;
|
||||||
@@ -661,7 +670,7 @@ extern u8 gBattleBufferB[MAX_BATTLERS_COUNT][0x200];
|
|||||||
extern u8 gActionSelectionCursor[MAX_BATTLERS_COUNT];
|
extern u8 gActionSelectionCursor[MAX_BATTLERS_COUNT];
|
||||||
extern void (*gPreBattleCallback1)(void);
|
extern void (*gPreBattleCallback1)(void);
|
||||||
extern bool8 gDoingBattleAnim;
|
extern bool8 gDoingBattleAnim;
|
||||||
extern u8 *gUnknown_3005EE0[MAX_BATTLERS_COUNT];
|
extern struct PokedudeBattlerState *gPokedudeBattlerStates[MAX_BATTLERS_COUNT];
|
||||||
extern u8 *gUnknown_2022BB8;
|
extern u8 *gUnknown_2022BB8;
|
||||||
extern u8 *gUnknown_2022BBC;
|
extern u8 *gUnknown_2022BBC;
|
||||||
extern void (*gBattleMainFunc)(void);
|
extern void (*gBattleMainFunc)(void);
|
||||||
|
|||||||
+681
-603
File diff suppressed because it is too large
Load Diff
+2
-2
@@ -15,7 +15,7 @@ void AllocateBattleResources(void)
|
|||||||
s32 i;
|
s32 i;
|
||||||
|
|
||||||
for (i = 0; i < 4; ++i)
|
for (i = 0; i < 4; ++i)
|
||||||
gUnknown_3005EE0[i] = AllocZeroed(8);
|
gPokedudeBattlerStates[i] = AllocZeroed(sizeof(struct PokedudeBattlerState));
|
||||||
}
|
}
|
||||||
gBattleStruct = AllocZeroed(sizeof(*gBattleStruct));
|
gBattleStruct = AllocZeroed(sizeof(*gBattleStruct));
|
||||||
gBattleResources = AllocZeroed(sizeof(*gBattleResources));
|
gBattleResources = AllocZeroed(sizeof(*gBattleResources));
|
||||||
@@ -45,7 +45,7 @@ void FreeBattleResources(void)
|
|||||||
|
|
||||||
for (i = 0; i < 4; ++i)
|
for (i = 0; i < 4; ++i)
|
||||||
{
|
{
|
||||||
FREE_AND_SET_NULL(gUnknown_3005EE0[i]);
|
FREE_AND_SET_NULL(gPokedudeBattlerStates[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (gBattleResources != NULL)
|
if (gBattleResources != NULL)
|
||||||
|
|||||||
Reference in New Issue
Block a user