mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
#ifndef GUARD_BATTLE_TOWER_H
|
|
#define GUARD_BATTLE_TOWER_H
|
|
|
|
struct RSBattleTowerRecord
|
|
{
|
|
/*0x00*/ u8 battleTowerLevelType; // 0 = level 50, 1 = level 100
|
|
/*0x01*/ u8 trainerClass;
|
|
/*0x02*/ u16 winStreak;
|
|
/*0x04*/ u8 name[8];
|
|
/*0x0C*/ u8 trainerId[4];
|
|
/*0x10*/ struct {
|
|
u16 easyChat[6];
|
|
} greeting;
|
|
/*0x1C*/ struct UnknownPokemonStruct party[3];
|
|
/*0xA0*/ u32 checksum;
|
|
/*0xA4*/ u16 unk_11c8;
|
|
};
|
|
|
|
union BattleTowerRecord
|
|
{
|
|
struct RSBattleTowerRecord ruby_sapphire;
|
|
struct EmeraldBattleTowerRecord emerald;
|
|
};
|
|
|
|
struct BattleFrontierTrainer
|
|
{
|
|
u32 trainerClass;
|
|
u8 trainerName[8];
|
|
u16 speechBefore[6];
|
|
u16 speechWin[6];
|
|
u16 speechLose[6];
|
|
u16 *btMonPool;
|
|
};
|
|
|
|
extern struct BattleFrontierTrainer *gUnknown_0203BC88;
|
|
|
|
u16 sub_8164FCC(u8, u8);
|
|
void sub_81659DC(struct RSBattleTowerRecord *a0, struct RSBattleTowerRecord *a1);
|
|
bool32 sub_816587C(union BattleTowerRecord *, union BattleTowerRecord *);
|
|
void CalcEmeraldBattleTowerChecksum(struct EmeraldBattleTowerRecord *);
|
|
void sub_81628A0(union BattleTowerRecord *);
|
|
void sub_8162614(u16 trainerId, u8);
|
|
void ConvertBattleFrontierTrainerSpeechToString(u16 *words);
|
|
void GetFrontierTrainerName(u8 *dest, u16 trainerIdx);
|
|
void GetEreaderTrainerName(u8 *dest);
|
|
|
|
#endif //GUARD_BATTLE_TOWER_H
|