2017-09-16 21:13:06 +02:00
|
|
|
#ifndef GUARD_FIELD_EFFECTS_H
|
|
|
|
#define GUARD_FIELD_EFFECTS_H
|
2017-09-15 20:26:01 +02:00
|
|
|
|
2018-05-10 10:02:33 +02:00
|
|
|
extern const struct CompressedSpritePalette gTrainerFrontPicPaletteTable[2];
|
|
|
|
extern const struct SpritePalette gNewGameBirchObjectPaletteInfo;
|
|
|
|
extern const struct CompressedSpriteSheet gTrainerFrontPicTable[2];
|
|
|
|
extern const struct SpriteTemplate gNewGameBirchObjectTemplate;
|
|
|
|
extern const struct OamData gNewGameBirchOamAttributes;
|
|
|
|
|
2018-05-11 01:36:57 +02:00
|
|
|
extern s32 gFieldEffectArguments[8];
|
2018-06-16 14:04:29 +02:00
|
|
|
extern void (*gPostMenuFieldCallback)(void);
|
|
|
|
extern bool8 (*gFieldCallback2)(void);
|
2017-11-01 05:34:57 +01:00
|
|
|
|
2017-12-18 23:26:44 +01:00
|
|
|
u32 FieldEffectStart(u8);
|
2017-10-12 09:06:19 +02:00
|
|
|
bool8 FieldEffectActiveListContains(u8 id);
|
2019-02-08 18:48:51 +01:00
|
|
|
void FieldEffectActiveListClear(void);
|
2017-11-01 05:34:57 +01:00
|
|
|
void sub_80B69DC(void);
|
2018-02-11 23:19:36 +01:00
|
|
|
u8 AddNewGameBirchObject(s16, s16, u8);
|
2017-12-18 23:26:44 +01:00
|
|
|
void FieldEffectStop(struct Sprite *sprite, u8 id);
|
2018-01-02 20:38:33 +01:00
|
|
|
u8 CreateTrainerSprite(u8 trainerSpriteID, s16 x, s16 y, u8 subpriority, u8 *buffer);
|
2018-05-11 01:36:57 +02:00
|
|
|
void CreateTeleportFieldEffectTask(void);
|
2018-01-02 02:21:30 +01:00
|
|
|
void FieldEffectActiveListRemove(u8 id);
|
2018-01-24 04:30:13 +01:00
|
|
|
void MultiplyInvertedPaletteRGBComponents(u16, u8, u8, u8);
|
2018-05-10 10:02:33 +02:00
|
|
|
void FieldEffectActiveListAdd(u8 id);
|
|
|
|
void FieldEffectScript_LoadTiles(u8 **script);
|
|
|
|
void FieldEffectScript_LoadFadedPalette(u8 **script);
|
|
|
|
void FieldEffectScript_LoadPalette(u8 **script);
|
|
|
|
void FieldEffectScript_CallNative(u8 **script, u32 *val);
|
|
|
|
void FieldEffectFreeTilesIfUnused(u16 tileStart);
|
|
|
|
void FieldEffectFreePaletteIfUnused(u8 paletteNum);
|
2018-05-11 01:36:57 +02:00
|
|
|
bool8 FieldEffectCmd_loadtiles(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_loadfadedpal(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_loadpal(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_callnative(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_end(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_loadgfx_callnative(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_loadtiles_callnative(u8 **script, u32 *val);
|
|
|
|
bool8 FieldEffectCmd_loadfadedpal_callnative(u8 **script, u32 *val);
|
2019-03-02 08:44:02 +01:00
|
|
|
void sub_80B6B68(void);
|
|
|
|
void sub_80B6E4C(u8 a0, u8 priority);
|
|
|
|
void sub_80B75D8(u8 priority);
|
|
|
|
void sub_80B7A74(u8 priority);
|
2018-05-11 01:36:57 +02:00
|
|
|
|
|
|
|
void sub_80B9C28(s16*, u8);
|
|
|
|
void sub_80B9C54(s16*, u8);
|
|
|
|
void sub_80B9CDC(s16*, u8);
|
2017-09-15 20:26:01 +02:00
|
|
|
|
2018-06-12 00:33:50 +02:00
|
|
|
void sub_80B7CAC(struct Sprite*);
|
|
|
|
void sub_80B7A58(struct Sprite*);
|
|
|
|
|
2018-09-15 18:01:20 +02:00
|
|
|
void MultiplyPaletteRGBComponents(u16 i, u8 r, u8 g, u8 b);
|
2018-11-07 03:13:40 +01:00
|
|
|
void FreeResourcesAndDestroySprite(struct Sprite *sprite, u8 spriteId);
|
|
|
|
u8 CreateMonSprite_PicBox(u16 species, s16 x, s16 y, u8 subpriority);
|
2019-03-02 08:44:02 +01:00
|
|
|
void StartEscapeRopeFieldEffect(void);
|
2018-09-15 18:01:20 +02:00
|
|
|
|
2017-09-16 21:13:06 +02:00
|
|
|
#endif //GUARD_FIELD_EFFECTS_H
|