mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-27 04:04:17 +01:00
50 lines
1.1 KiB
C
50 lines
1.1 KiB
C
#ifndef GUARD_POKEDEX_H
|
|
#define GUARD_POKEDEX_H
|
|
|
|
extern u8 gUnusedPokedexU8;
|
|
extern void (*gUnknown_030060B4)(void);
|
|
|
|
#define HOENN_DEX_COUNT 202
|
|
#define NATIONAL_DEX_COUNT 386
|
|
|
|
enum
|
|
{
|
|
DEX_MODE_HOENN,
|
|
DEX_MODE_NATIONAL
|
|
};
|
|
|
|
enum
|
|
{
|
|
FLAG_GET_SEEN,
|
|
FLAG_GET_CAUGHT,
|
|
FLAG_SET_SEEN,
|
|
FLAG_SET_CAUGHT
|
|
};
|
|
|
|
struct PokedexEntry
|
|
{
|
|
/*0x00*/ u8 categoryName[12];
|
|
/*0x0C*/ u16 height; //in decimeters
|
|
/*0x0E*/ u16 weight; //in hectograms
|
|
/*0x10*/ const u8 *description;
|
|
/*0x14*/ u16 unused;
|
|
/*0x16*/ u16 pokemonScale;
|
|
/*0x18*/ u16 pokemonOffset;
|
|
/*0x1A*/ u16 trainerScale;
|
|
/*0x1C*/ u16 trainerOffset;
|
|
}; /*size = 0x20*/
|
|
|
|
void ResetPokedex(void);
|
|
u16 GetPokedexHeightWeight(u16 dexNum, u8 data);
|
|
u16 GetNationalPokedexCount(u8);
|
|
u16 GetHoennPokedexCount(u8);
|
|
u8 CreateDexDisplayMonDataTask(u16 dexNum, u32 trainerId, u32 personality);
|
|
s8 GetSetPokedexFlag(u16 nationalNum, u8 caseId);
|
|
u16 CreateMonSpriteFromNationalDexNumber(u16, s16, s16, u16);
|
|
bool16 HasAllHoennMons(void);
|
|
void ResetPokedexScrollPositions(void);
|
|
u16 sub_80C0944(void);
|
|
void CB2_Pokedex(void);
|
|
|
|
#endif // GUARD_POKEDEX_H
|