pokeemerald/include/battle_gfx_sfx_util.h

51 lines
2.3 KiB
C
Raw Normal View History

2017-11-04 16:11:13 +01:00
#ifndef GUARD_BATTLE_GFX_SFX_UTIL
#define GUARD_BATTLE_GFX_SFX_UTIL
void AllocateBattleSpritesData(void);
void FreeBattleSpritesData(void);
2017-11-04 16:25:19 +01:00
u16 ChooseMoveAndTargetInBattlePalace(void);
2017-11-04 16:11:13 +01:00
void sub_805D714(struct Sprite *sprite);
void sub_805D770(struct Sprite *sprite, bool8 arg1);
void sub_805D7AC(struct Sprite *sprite);
void InitAndLaunchChosenStatusAnimation(bool8 isStatus2, u32 status);
2018-02-07 22:53:40 +01:00
bool8 TryHandleLaunchBattleTableAnimation(u8 activeBattlerId, u8 attacker, u8 target, u8 tableId, u16 argument);
void InitAndLaunchSpecialAnimation(u8 activeBattlerId, u8 attacker, u8 target, u8 tableId);
2017-11-04 16:11:13 +01:00
bool8 IsMoveWithoutAnimation(u16 moveId, u8 animationTurn);
2018-02-07 22:53:40 +01:00
bool8 mplay_80342A4(u8 battlerId);
void BattleLoadOpponentMonSpriteGfx(struct Pokemon *mon, u8 battlerId);
void BattleLoadPlayerMonSpriteGfx(struct Pokemon *mon, u8 battlerId);
2017-11-04 16:11:13 +01:00
void nullsub_23(void);
void nullsub_24(u16 species);
2018-02-07 22:53:40 +01:00
void DecompressTrainerFrontPic(u16 frontPicId, u8 battlerId);
void DecompressTrainerBackPic(u16 backPicId, u8 battlerId);
2017-11-04 16:11:13 +01:00
void nullsub_25(u8 arg0);
void FreeTrainerFrontPicPalette(u16 frontPicId);
void sub_805DFFC(void);
bool8 BattleLoadAllHealthBoxesGfx(u8 state);
void LoadBattleBarGfx(u8 arg0);
2018-02-07 22:53:40 +01:00
bool8 BattleInitAllSprites(u8 *state1, u8 *battlerId);
2017-11-04 16:11:13 +01:00
void ClearSpritesHealthboxAnimData(void);
void CopyAllBattleSpritesInvisibilities(void);
2018-02-07 22:53:40 +01:00
void CopyBattleSpriteInvisibility(u8 battlerId);
void HandleSpeciesGfxDataChange(u8 attacker, u8 target, bool8 notTransform);
void BattleLoadSubstituteOrMonSpriteGfx(u8 battlerId, bool8 loadMonSprite);
void LoadBattleMonGfxAndAnimate(u8 battlerId, bool8 loadMonSprite, u8 spriteId);
void TrySetBehindSubstituteSpriteBit(u8 battlerId, u16 move);
void ClearBehindSubstituteBit(u8 battlerId);
void HandleLowHpMusicChange(struct Pokemon *mon, u8 battlerId);
2017-11-04 16:11:13 +01:00
void BattleStopLowHpSound(void);
u8 GetMonHPBarLevel(struct Pokemon *mon);
2018-06-19 00:43:15 +02:00
void HandleBattleLowHpMusicChange(void);
2017-11-04 16:11:13 +01:00
void sub_805EB9C(u8 affineMode);
void LoadAndCreateEnemyShadowSprites(void);
void SpriteCB_SetInvisible(struct Sprite *sprite);
2018-02-07 22:53:40 +01:00
void SetBattlerShadowSpriteCallback(u8 battlerId, u16 species);
void HideBattlerShadowSprite(u8 battlerId);
2017-11-04 16:11:13 +01:00
void sub_805EF14(void);
2018-02-07 22:53:40 +01:00
void ClearTemporarySpeciesSpriteData(u8 battlerId, bool8 dontClearSubstitute);
2017-11-04 16:11:13 +01:00
void AllocateMonSpritesGfx(void);
void FreeMonSpritesGfx(void);
2018-06-19 00:43:15 +02:00
bool32 ShouldPlayNormalMonCry(struct Pokemon *mon);
2017-11-04 16:11:13 +01:00
#endif // GUARD_BATTLE_GFX_SFX_UTIL