2021-04-02 18:54:40 +02:00
|
|
|
#ifndef GUARD_BATTLE_GFX_SFX_UTIL_H
|
|
|
|
#define GUARD_BATTLE_GFX_SFX_UTIL_H
|
2017-11-04 16:11:13 +01:00
|
|
|
|
|
|
|
void AllocateBattleSpritesData(void);
|
|
|
|
void FreeBattleSpritesData(void);
|
2023-08-30 11:21:10 +02:00
|
|
|
u16 ChooseMoveAndTargetInBattlePalace(u32 battler);
|
2021-01-23 02:03:21 +01:00
|
|
|
void SpriteCB_WaitForBattlerBallReleaseAnim(struct Sprite *sprite);
|
|
|
|
void SpriteCB_TrainerSlideIn(struct Sprite *sprite);
|
2023-08-30 11:21:10 +02:00
|
|
|
void InitAndLaunchChosenStatusAnimation(u32 battler, bool32 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);
|
2023-08-30 11:21:10 +02:00
|
|
|
bool8 IsBattleSEPlaying(u8 battler);
|
|
|
|
void BattleLoadMonSpriteGfx(struct Pokemon *mon, u32 battler);
|
2021-01-23 02:03:21 +01:00
|
|
|
void BattleGfxSfxDummy2(u16 species);
|
2023-08-30 11:21:10 +02:00
|
|
|
void DecompressTrainerFrontPic(u16 frontPicId, u8 battler);
|
|
|
|
void DecompressTrainerBackPic(u16 backPicId, u8 battler);
|
2017-11-04 16:11:13 +01:00
|
|
|
void FreeTrainerFrontPicPalette(u16 frontPicId);
|
|
|
|
bool8 BattleLoadAllHealthBoxesGfx(u8 state);
|
2022-05-21 21:21:50 +02:00
|
|
|
void LoadBattleBarGfx(u8 unused);
|
2023-08-30 11:21:10 +02:00
|
|
|
bool8 BattleInitAllSprites(u8 *state1, u8 *battler);
|
2017-11-04 16:11:13 +01:00
|
|
|
void ClearSpritesHealthboxAnimData(void);
|
|
|
|
void CopyAllBattleSpritesInvisibilities(void);
|
2023-08-30 11:21:10 +02:00
|
|
|
void CopyBattleSpriteInvisibility(u8 battler);
|
2023-06-30 09:58:07 +02:00
|
|
|
void HandleSpeciesGfxDataChange(u8 attacker, u8 target, bool32 megaEvo, bool8 trackEnemyPersonality);
|
2023-08-30 11:21:10 +02:00
|
|
|
void BattleLoadSubstituteOrMonSpriteGfx(u8 battler, bool8 loadMonSprite);
|
|
|
|
void LoadBattleMonGfxAndAnimate(u8 battler, bool8 loadMonSprite, u8 spriteId);
|
|
|
|
void TrySetBehindSubstituteSpriteBit(u8 battler, u16 move);
|
|
|
|
void ClearBehindSubstituteBit(u8 battler);
|
|
|
|
void HandleLowHpMusicChange(struct Pokemon *mon, u8 battler);
|
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);
|
2021-01-23 02:03:21 +01:00
|
|
|
void SetBattlerSpriteAffineMode(u8 affineMode);
|
2017-11-04 16:11:13 +01:00
|
|
|
void LoadAndCreateEnemyShadowSprites(void);
|
|
|
|
void SpriteCB_SetInvisible(struct Sprite *sprite);
|
2023-08-30 11:21:10 +02:00
|
|
|
void SetBattlerShadowSpriteCallback(u8 battler, u16 species);
|
|
|
|
void HideBattlerShadowSprite(u8 battler);
|
2021-09-24 20:30:15 +02:00
|
|
|
void FillAroundBattleWindows(void);
|
2023-08-30 11:21:10 +02:00
|
|
|
void ClearTemporarySpeciesSpriteData(u8 battler, 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
|
|
|
|
2021-04-02 18:54:40 +02:00
|
|
|
#endif // GUARD_BATTLE_GFX_SFX_UTIL_H
|