mirror of
https://github.com/pret/pokeplatinum.git
synced 2026-08-08 11:52:55 -05:00
65 lines
1.6 KiB
C
65 lines
1.6 KiB
C
#ifndef POKEPLATINUM_STRUCT_BATTLER_DATA_H
|
|
#define POKEPLATINUM_STRUCT_BATTLER_DATA_H
|
|
|
|
#include "struct_defs/battler_data.h"
|
|
|
|
#include "battle/healthbox.h"
|
|
#include "battle_anim/struct_ball_rotation_decl.h"
|
|
#include "battle_anim/struct_ov12_02223764.h"
|
|
#include "battle_anim/struct_ov12_02237F98_decl.h"
|
|
#include "battle_anim/struct_ov12_02238004_decl.h"
|
|
|
|
#include "bg_window.h"
|
|
#include "narc.h"
|
|
#include "pokemon_sprite.h"
|
|
#include "sprite.h"
|
|
#include "sys_task_manager.h"
|
|
|
|
typedef struct SavedCursorPosition {
|
|
s8 actionMenuX;
|
|
s8 actionMenuY;
|
|
s8 moveMenuX;
|
|
s8 moveMenuY;
|
|
s8 targetSelectX;
|
|
s8 targetSelectY;
|
|
s8 targetingLayout;
|
|
u8 padding;
|
|
} SavedCursorPosition;
|
|
|
|
typedef struct BattlerDataSysTaskFuncs {
|
|
SysTaskFunc setCommandSelection;
|
|
SysTaskFunc showMoveSelectMenu;
|
|
SysTaskFunc showTargetSelectMenu;
|
|
SysTaskFunc showBagMenu;
|
|
SysTaskFunc showPartyMenu;
|
|
SysTaskFunc showYesNoMenu;
|
|
} BattlerDataSysTaskFuncs;
|
|
|
|
#define DATA_BUF_SIZE 256
|
|
|
|
typedef struct BattlerData {
|
|
BattlerDataSysTaskFuncs taskFuncs;
|
|
ManagedSprite *managedSprite;
|
|
PokemonSprite *monSpriteBackup;
|
|
PokemonSprite *monSprite;
|
|
Window *unused_24;
|
|
HealthBox healthbox;
|
|
SavedCursorPosition savedCursorPos;
|
|
BallRotation *ballRotation;
|
|
BattleMonOBJData *btlMonObjData;
|
|
void *unused_8C;
|
|
u8 data[DATA_BUF_SIZE];
|
|
u8 battler;
|
|
u8 battlerType;
|
|
u8 bootState;
|
|
u8 commandUIReady;
|
|
SysTask *sysTask;
|
|
u16 degrees;
|
|
int isAlternateSprite;
|
|
NARC *narc;
|
|
u8 msgPending;
|
|
u8 unused_1A5[3];
|
|
} BattlerData;
|
|
|
|
#endif // POKEPLATINUM_STRUCT_BATTLER_DATA_H
|