pokeemerald/include/pokeblock.h

55 lines
1.4 KiB
C
Raw Normal View History

2017-09-07 17:45:32 +00:00
#ifndef GUARD_POKEBLOCK_H
#define GUARD_POKEBLOCK_H
2017-12-11 15:52:28 +00:00
#define GFX_TAG_POKEBLOCK 14818
#define GFX_TAG_POKEBLOCK_CASE 14800
2017-12-09 20:23:40 +00:00
2017-09-07 17:45:32 +00:00
enum
{
PBLOCK_CLR_BLACK,
PBLOCK_CLR_RED,
PBLOCK_CLR_BLUE,
PBLOCK_CLR_PINK,
PBLOCK_CLR_GREEN,
PBLOCK_CLR_YELLOW
};
enum
{
PBLOCK_COLOR,
PBLOCK_SPICY,
PBLOCK_DRY,
PBLOCK_SWEET,
PBLOCK_BITTER,
PBLOCK_SOUR,
PBLOCK_FEEL,
};
2017-12-09 20:23:40 +00:00
// use pokeblock
extern u8 gPokeblockMonId;
extern s16 gPokeblockGain;
2017-12-09 20:23:40 +00:00
void ChooseMonToGivePokeblock(struct Pokeblock *pokeblock, void (*callback)(void));
// pokeblock feed
void CB2_PreparePokeblockFeedScene(void);
// pokeblock
2017-12-11 15:52:28 +00:00
extern const s8 gPokeblockFlavorCompatibilityTable[];
extern const u8 *const gPokeblockNames[];
extern const struct CompressedSpriteSheet gPokeblockCase_SpriteSheet;
extern const struct CompressedSpritePalette gPokeblockCase_SpritePal;
2017-12-09 20:23:40 +00:00
u8 CreatePokeblockCaseSprite(s16 x, s16 y, u8 subpriority);
u8 GetPokeblockData(const struct Pokeblock *pokeblock, u8 dataId);
2017-09-07 17:45:32 +00:00
void ClearPokeblocks(void);
2017-11-19 21:48:46 +00:00
s8 GetFirstFreePokeblockSlot(void);
bool32 AddPokeblock(struct Pokeblock *pokeblock);
2017-11-27 19:03:41 +00:00
u8 GetHighestPokeblocksFlavorLevel(const struct Pokeblock *pokeblock);
2017-11-19 21:48:46 +00:00
u8 GetPokeblocksFeel(const struct Pokeblock *pokeblock);
2017-11-27 19:03:41 +00:00
u8 GetPokeblocksFlavor(const struct Pokeblock *pokeblock);
2017-12-09 20:23:40 +00:00
s16 PokeblockGetGain(u8, const struct Pokeblock *pokeblock);
void PokeblockCopyName(const struct Pokeblock *pokeblock, u8 *dst);
2017-09-07 17:45:32 +00:00
#endif // GUARD_POKEBLOCK_H