pokeemerald/include/battle_anim.h

498 lines
22 KiB
C
Raw Normal View History

2017-10-14 16:55:25 +02:00
#ifndef GUARD_BATTLE_ANIM_H
#define GUARD_BATTLE_ANIM_H
2018-10-23 14:25:51 +02:00
#include "battle.h"
2018-10-21 21:07:10 +02:00
#include "constants/battle_anim.h"
2018-12-08 19:22:52 +01:00
#include "task.h"
2018-10-21 21:07:10 +02:00
2017-10-14 16:55:25 +02:00
enum
{
BG_ANIM_SCREEN_SIZE,
BG_ANIM_AREA_OVERFLOW_MODE,
2018-12-13 06:18:25 +01:00
BG_ANIM_MOSAIC,
BG_ANIM_CHAR_BASE_BLOCK,
2017-10-14 16:55:25 +02:00
BG_ANIM_PRIORITY,
2018-12-13 06:18:25 +01:00
BG_ANIM_PALETTES_MODE,
BG_ANIM_SCREEN_BASE_BLOCK,
2017-10-14 16:55:25 +02:00
};
2019-02-06 20:17:09 +01:00
struct BattleAnimBgData
2017-10-14 16:55:25 +02:00
{
2018-10-07 12:32:20 +02:00
u8 *bgTiles;
2019-02-06 20:17:09 +01:00
u16 *bgTilemap;
u8 paletteId;
2018-10-07 12:32:20 +02:00
u8 bgId;
u16 tilesOffset;
2019-02-06 20:17:09 +01:00
u16 unused;
2017-10-14 16:55:25 +02:00
};
2017-10-14 23:37:44 +02:00
struct BattleAnimBackground
{
2018-11-07 19:35:31 +01:00
const u32 *image;
const u32 *palette;
const u32 *tilemap;
2017-10-14 23:37:44 +02:00
};
2017-10-15 23:21:59 +02:00
#define ANIM_ARGS_COUNT 8
extern void (*gAnimScriptCallback)(void);
extern bool8 gAnimScriptActive;
extern u8 gAnimVisualTaskCount;
extern u8 gAnimSoundTaskCount;
extern struct DisableStruct *gAnimDisableStructPtr;
2018-10-07 17:45:37 +02:00
extern s32 gAnimMoveDmg;
2017-10-15 23:21:59 +02:00
extern u16 gAnimMovePower;
extern u8 gAnimFriendship;
extern u16 gWeatherMoveAnim;
extern s16 gBattleAnimArgs[ANIM_ARGS_COUNT];
extern u8 gAnimMoveTurn;
2018-02-06 20:48:02 +01:00
extern u8 gBattleAnimAttacker;
extern u8 gBattleAnimTarget;
2018-04-18 16:03:15 +02:00
extern u16 gAnimBattlerSpecies[MAX_BATTLERS_COUNT];
2020-02-20 06:04:42 +01:00
extern u8 gAnimCustomPanning;
2020-05-25 08:37:32 +02:00
extern u16 gAnimMoveIndex;
2017-10-15 23:21:59 +02:00
2017-10-14 16:55:25 +02:00
void ClearBattleAnimationVars(void);
void DoMoveAnim(u16 move);
2017-10-22 18:43:15 +02:00
void LaunchBattleAnimation(const u8 *const animsTable[], u16 tableId, bool8 isMoveAnim);
2017-10-14 16:55:25 +02:00
void DestroyAnimSprite(struct Sprite *sprite);
void DestroyAnimVisualTask(u8 taskId);
void DestroyAnimSoundTask(u8 taskId);
2019-04-08 16:48:04 +02:00
u8 GetAnimBattlerId(u8 wantedBattler);
2018-02-07 22:53:40 +01:00
bool8 IsBattlerSpriteVisible(u8 battlerId);
2018-12-24 16:51:15 +01:00
void MoveBattlerSpriteToBG(u8 battlerId, bool8 toBG_2, bool8 setSpriteInvisible);
2017-10-14 16:55:25 +02:00
bool8 IsContest(void);
2017-10-14 23:37:44 +02:00
s8 BattleAnimAdjustPanning(s8 pan);
s8 BattleAnimAdjustPanning2(s8 pan);
2019-04-08 03:36:10 +02:00
s16 KeepPanInRange(s16 a, int oldPan);
2017-10-15 23:21:59 +02:00
s16 CalculatePanIncrement(s16 sourcePan, s16 targetPan, s16 incrementPan);
2021-10-04 16:21:03 +02:00
void RelocateBattleBgPal(u16 paletteNum, u16 *dest, u32 offset, bool8 largeScreen);
2021-02-28 00:41:30 +01:00
void ResetBattleAnimBg(bool8);
2020-11-18 03:45:27 +01:00
void LoadMoveBg(u16 bgId);
2017-10-14 16:55:25 +02:00
2020-02-15 00:11:04 +01:00
// battle_intro.c
2017-10-14 16:55:25 +02:00
void SetAnimBgAttribute(u8 bgId, u8 attributeId, u8 value);
2021-10-04 16:21:03 +02:00
void DrawBattlerOnBg(int bgId, u8 x, u8 y, u8 battlerPosition, u8 paletteId, u8 *tiles, u16 *tilemap, u16 tilesOffset);
2017-10-22 18:43:15 +02:00
void HandleIntroSlide(u8 terrainId);
2018-12-13 06:18:25 +01:00
int GetAnimBgAttribute(u8 bgId, u8 attributeId);
2017-10-22 18:43:15 +02:00
2020-02-15 00:11:04 +01:00
// battle_anim_mons.c
2021-11-08 19:18:58 +01:00
void TranslateSpriteInEllipse(struct Sprite *sprite);
2021-04-25 00:26:25 +02:00
void AnimTranslateLinearAndFlicker(struct Sprite *sprite);
void AnimTranslateLinearAndFlicker_Flipped(struct Sprite *sprite);
2020-02-20 02:22:53 +01:00
void AnimWeatherBallUp(struct Sprite *sprite);
void AnimWeatherBallDown(struct Sprite *sprite);
2020-02-15 00:11:04 +01:00
void AnimSpinningSparkle(struct Sprite *sprite);
2018-12-20 04:13:26 +01:00
void SetAverageBattlerPositions(u8 battlerId, bool8 respectMonPicOffsets, s16 *x, s16 *y);
2018-12-18 05:08:08 +01:00
void DestroySpriteAndMatrix(struct Sprite *sprite);
2019-02-06 20:17:09 +01:00
void TranslateSpriteLinearFixedPoint(struct Sprite *sprite);
2018-12-24 17:48:57 +01:00
void InitSpritePosToAnimAttacker(struct Sprite *sprite, bool8 respectMonPicOffsets);
void InitSpritePosToAnimTarget(struct Sprite *sprite, bool8 respectMonPicOffsets);
bool32 InitSpritePosToAnimBattler(u32 animBattlerId, struct Sprite *sprite, bool8 respectMonPicOffsets);
2018-11-26 00:00:18 +01:00
void StartAnimLinearTranslation(struct Sprite *sprite);
void InitAnimArcTranslation(struct Sprite *sprite);
2018-12-20 04:13:26 +01:00
bool8 AnimTranslateLinear(struct Sprite *sprite);
2018-11-26 00:00:18 +01:00
void TranslateAnimSpriteToTargetMonLocation(struct Sprite *sprite);
2018-11-26 16:03:50 +01:00
u8 GetBattlerSpriteCoord2(u8 battlerId, u8 attributeId);
2021-01-23 06:40:46 +01:00
void InitAnimLinearTranslationWithSpeed(struct Sprite *sprite);
2018-11-26 16:03:50 +01:00
u16 ArcTan2Neg(s16 a, s16 b);
2018-12-18 05:08:08 +01:00
void TrySetSpriteRotScale(struct Sprite *sprite, bool8 a2, s16 xScale, s16 yScale, u16 rotation);
void RunStoredCallbackWhenAffineAnimEnds(struct Sprite *sprite);
2019-02-06 20:17:09 +01:00
void TranslateSpriteLinearAndFlicker(struct Sprite *sprite);
2018-12-18 05:08:08 +01:00
void SetSpriteCoordsToAnimAttackerCoords(struct Sprite *sprite);
void RunStoredCallbackWhenAnimEnds(struct Sprite *sprite);
2018-12-20 04:13:26 +01:00
void SetAnimSpriteInitialXOffset(struct Sprite *sprite, s16 a2);
2018-12-30 17:58:42 +01:00
s16 GetBattlerSpriteCoordAttr(u8 battlerId, u8 a2);
2018-11-26 16:31:03 +01:00
u8 GetBattlerYCoordWithElevation(u8 battlerId);
2018-11-26 16:55:31 +01:00
void WaitAnimForDuration(struct Sprite *sprite);
2020-02-15 00:11:04 +01:00
void AnimTravelDiagonally(struct Sprite *sprite);
2018-11-26 17:25:51 +01:00
void InitAnimLinearTranslation(struct Sprite *sprite);
2021-11-08 19:18:58 +01:00
void AnimTranslateLinear_WithFollowup(struct Sprite *sprite);
2018-12-20 04:13:26 +01:00
u8 GetBattlerSpriteBGPriority(u8 battlerId);
2018-12-18 05:08:08 +01:00
void *LoadPointerFromVars(s16 bottom, s16 top);
void StorePointerInVars(s16 *bottom, s16 *top, const void *ptr);
2021-10-04 16:21:03 +02:00
void InitPrioritiesForVisibleBattlers(void);
2021-02-28 00:41:30 +01:00
void GetBattleAnimBg1Data(struct BattleAnimBgData*);
void GetBattleAnimBgData(struct BattleAnimBgData*, u32 arg1);
2018-12-18 05:08:08 +01:00
u8 GetBattlerSpriteSubpriority(u8 battlerId);
2019-02-06 20:17:09 +01:00
bool8 TranslateAnimHorizontalArc(struct Sprite *sprite);
2021-11-01 17:41:21 +01:00
void TranslateSpriteLinearByIdFixedPoint(struct Sprite *sprite);
2018-12-18 05:08:08 +01:00
void ResetSpriteRotScale(u8 spriteId);
void SetSpriteRotScale(u8 spriteId, s16 xScale, s16 yScale, u16 rotation);
2018-11-26 00:00:18 +01:00
void InitSpriteDataForLinearTranslation(struct Sprite *sprite);
2018-12-18 05:08:08 +01:00
void PrepareBattlerSpriteForRotScale(u8 spriteId, u8 objMode);
void SetBattlerSpriteYOffsetFromRotation(u8 spriteId);
2021-02-28 16:47:03 +01:00
u32 GetBattleBgPalettesMask(u8 battleBackground, u8 attacker, u8 target, u8 attackerPartner, u8 targetPartner, u8 a6, u8 a7);
u32 GetBattleMonSpritePalettesMask(u8 playerLeft, u8 playerRight, u8 opponentLeft, u8 opponentRight);
2021-01-23 06:40:46 +01:00
u8 AnimDummyReturnArg(u8 battler);
2018-12-18 05:08:08 +01:00
s16 CloneBattlerSpriteWithBlend(u8);
2021-11-01 17:41:21 +01:00
void DestroySpriteWithActiveSheet(struct Sprite*);
2021-02-28 00:41:30 +01:00
u8 CreateInvisibleSpriteCopy(int, u8, int);
2021-10-04 16:21:03 +02:00
void AnimLoadCompressedBgTilemapHandleContest(struct BattleAnimBgData*, const void*, bool32);
2019-02-06 20:17:09 +01:00
void AnimLoadCompressedBgGfx(u32, const u32*, u32);
void UpdateAnimBg3ScreenSize(bool8);
2021-11-08 19:18:58 +01:00
void TranslateSpriteInGrowingCircle(struct Sprite *);
2018-12-18 05:08:08 +01:00
void SetBattlerSpriteYOffsetFromYScale(u8 spriteId);
void PrepareEruptAnimTaskData(struct Task *task, u8 a2, s16 a3, s16 a4, s16 a5, s16 a6, u16 a7);
u8 UpdateEruptAnimTask(struct Task *task);
2019-02-06 20:17:09 +01:00
void DestroyAnimSpriteAndDisableBlend(struct Sprite *);
void AnimLoadCompressedBgTilemap(u32 bgId, const void *src);
2018-12-20 04:13:26 +01:00
void InitAnimFastLinearTranslationWithSpeed(struct Sprite *sprite);
bool8 AnimFastTranslateLinear(struct Sprite *sprite);
void InitAndRunAnimFastLinearTranslation(struct Sprite *sprite);
2021-11-01 17:41:21 +01:00
void TranslateSpriteLinearById(struct Sprite *sprite);
2019-02-06 20:17:09 +01:00
void TranslateSpriteLinear(struct Sprite *sprite);
2019-10-20 16:22:53 +02:00
void AnimSpriteOnMonPos(struct Sprite *sprite);
2021-01-23 06:40:46 +01:00
void InitAnimLinearTranslationWithSpeedAndPos(struct Sprite *sprite);
2021-11-08 19:18:58 +01:00
void TranslateSpriteInCircle(struct Sprite *sprite);
void SetGrayscaleOrOriginalPalette(u16 palNum, bool8 restoreOriginal);
2018-12-18 05:08:08 +01:00
void PrepareAffineAnimInTaskData(struct Task *task, u8 spriteId, const union AffineAnimCmd *affineAnimCmds);
bool8 RunAffineAnimFromTaskData(struct Task *task);
2019-10-20 10:47:56 +02:00
void AnimThrowProjectile(struct Sprite *sprite);
2021-11-08 19:18:58 +01:00
void GetBgDataForTransform(struct BattleAnimBgData *dest, u8 battlerId);
2021-01-23 05:22:37 +01:00
u8 CreateAdditionalMonSpriteForMoveAnim(u16 species, bool8 isBackpic, u8 a3, s16 x, s16 y, u8 subpriority, u32 personality, u32 trainerId, u32 battlerId, bool32 ignoreDeoxysForm);
void ResetSpriteRotScale_PreserveAffine(struct Sprite *sprite);
2019-10-04 13:42:45 +02:00
void TradeMenuBouncePartySprites(struct Sprite *sprite);
2018-12-31 18:01:37 +01:00
void DestroyAnimVisualTaskAndDisableBlend(u8 taskId);
2018-12-30 17:58:42 +01:00
void DestroySpriteAndFreeResources_(struct Sprite *sprite);
2018-12-24 17:48:57 +01:00
void SetBattlerSpriteYOffsetFromOtherYScale(u8 spriteId, u8 otherSpriteId);
u8 GetBattlerSide(u8 battler);
u8 GetBattlerPosition(u8 battler);
u8 GetBattlerAtPosition(u8 position);
2021-11-01 17:41:21 +01:00
void ConvertPosDataToTranslateLinearData(struct Sprite *sprite);
2021-01-23 06:40:46 +01:00
void InitAnimFastLinearTranslationWithSpeedAndPos(struct Sprite *sprite);
2017-12-02 19:39:07 +01:00
enum
{
2018-10-06 23:04:53 +02:00
BATTLER_COORD_X,
BATTLER_COORD_Y,
BATTLER_COORD_X_2,
2018-12-18 05:08:08 +01:00
BATTLER_COORD_Y_PIC_OFFSET,
BATTLER_COORD_Y_PIC_OFFSET_DEFAULT,
2017-12-02 19:39:07 +01:00
};
2018-12-30 17:58:42 +01:00
enum
{
BATTLER_COORD_ATTR_HEIGHT,
BATTLER_COORD_ATTR_WIDTH,
BATTLER_COORD_ATTR_TOP,
BATTLER_COORD_ATTR_BOTTOM,
BATTLER_COORD_ATTR_LEFT,
BATTLER_COORD_ATTR_RIGHT,
BATTLER_COORD_ATTR_RAW_BOTTOM,
};
2018-02-07 22:53:40 +01:00
u8 GetBattlerSpriteCoord(u8 battlerId, u8 attributeId);
2017-12-02 19:39:07 +01:00
2018-02-07 22:53:40 +01:00
bool8 IsBattlerSpritePresent(u8 battlerId);
2021-02-28 00:41:30 +01:00
void ClearBattleAnimBg(u32 arg0);
2018-02-07 22:53:40 +01:00
u8 GetAnimBattlerSpriteId(u8 wantedBattler);
2017-10-22 18:43:15 +02:00
bool8 IsDoubleBattle(void);
2019-11-24 18:00:51 +01:00
u8 GetBattleBgPaletteNum(void);
2018-12-20 04:13:26 +01:00
u8 GetBattlerSpriteBGPriorityRank(u8 battlerId);
2017-10-22 18:43:15 +02:00
void StoreSpriteCallbackInData6(struct Sprite *sprite, void (*spriteCallback)(struct Sprite*));
2019-02-06 20:17:09 +01:00
void SetSpritePrimaryCoordsFromSecondaryCoords(struct Sprite *sprite);
2018-02-07 22:53:40 +01:00
u8 GetBattlerSpriteDefault_Y(u8 battlerId);
u8 GetSubstituteSpriteDefault_Y(u8 battlerId);
2017-11-04 16:11:13 +01:00
// battle_anim_status_effects.c
2018-10-07 15:39:46 +02:00
#define STAT_ANIM_PLUS1 15
#define STAT_ANIM_PLUS2 39
#define STAT_ANIM_MINUS1 22
#define STAT_ANIM_MINUS2 46
#define STAT_ANIM_MULTIPLE_PLUS1 55
#define STAT_ANIM_MULTIPLE_PLUS2 56
#define STAT_ANIM_MULTIPLE_MINUS1 57
#define STAT_ANIM_MULTIPLE_MINUS2 58
2018-02-07 22:53:40 +01:00
void LaunchStatusAnimation(u8 battlerId, u8 statusAnimId);
2017-10-14 16:55:25 +02:00
// battle_anim_ground.c
2020-02-15 00:11:04 +01:00
void AnimTask_HorizontalShake(u8 taskId);
2020-05-25 08:37:32 +02:00
void AnimMudSportDirt(struct Sprite *sprite);
void AnimDirtScatter(struct Sprite *sprite);
void AnimMudSportDirtRising(struct Sprite *sprite);
extern const union AffineAnimCmd *const gAffineAnims_SpinningBone[];
2018-12-19 16:31:37 +01:00
2020-08-30 20:25:40 +02:00
// battle_anim_throw.c
void TryShinyAnimation(u8 battler, struct Pokemon *mon);
2017-12-02 19:39:07 +01:00
u8 ItemIdToBallId(u16 itemId);
2018-12-14 04:33:54 +01:00
u8 AnimateBallOpenParticles(u8 x, u8 y, u8 priority, u8 subpriority, u8 ballId);
u8 LaunchBallFadeMonTask(bool8 unFadeLater, u8 battlerId, u32 selectedPalettes, u8 ballId);
bool32 IsCriticalCapture(void);
2017-12-02 19:39:07 +01:00
// battle_anim_utility_funcs.c
2021-02-28 00:41:30 +01:00
void InitStatsChangeAnimation(u8);
void StartMonScrollingBgMask(u8 taskId, int unused, u16 arg2, u8 battler1, u8 arg4, u8 arg5, u8 arg6, u8 arg7, const u32 *arg8, const u32 *arg9, const u32 *palette);
2019-03-02 04:32:50 +01:00
// battle_anim_effects_1.c
2019-10-14 22:51:45 +02:00
void SetSpriteNextToMonHead(u8 battler, struct Sprite* sprite);
2019-03-02 09:18:08 +01:00
void AnimMoveTwisterParticle(struct Sprite* sprite);
2020-02-20 22:22:33 +01:00
void AnimParticleBurst(struct Sprite *);
2019-05-03 17:27:49 +02:00
void AnimPowerAbsorptionOrb(struct Sprite* sprite);
2019-10-19 17:47:55 +02:00
void AnimNeedleArmSpike(struct Sprite *);
2020-05-04 06:09:03 +02:00
void AnimTask_CompressTargetHorizontally(u8 taskId);
2020-05-25 08:37:32 +02:00
void AnimSporeParticle(struct Sprite* sprite);
void AnimAbsorptionOrb(struct Sprite* sprite);
void AnimPetalDanceSmallFlower(struct Sprite* sprite);
void AnimPetalDanceBigFlower(struct Sprite* sprite);
void AnimEndureEnergy(struct Sprite* sprite);
void AnimMimicOrb(struct Sprite* sprite);
void AnimSolarBeamBigOrb(struct Sprite* sprite);
2020-05-25 08:37:32 +02:00
void AnimHyperBeamOrb(struct Sprite* sprite);
void AnimNeedleArmSpike_Step(struct Sprite* sprite);
void AnimMovePowderParticle(struct Sprite* sprite);
void AnimMetronomeFinger(struct Sprite* sprite);
void AnimConversion(struct Sprite* sprite);
void AnimCuttingSlice(struct Sprite* sprite);
void AnimThoughtBubble(struct Sprite* sprite);
void AnimTranslateLinearSingleSineWave(struct Sprite* sprite);
void AnimGrantingStars(struct Sprite* sprite);
void AnimFollowMeFinger(struct Sprite* sprite);
2019-10-19 17:47:55 +02:00
extern const union AnimCmd *const gRazorLeafParticleAnimTable[];
extern const union AnimCmd *const gPowerAbsorptionOrbAnimTable[];
extern const union AffineAnimCmd *const gPowerAbsorptionOrbAffineAnimTable[];
2020-05-04 06:09:03 +02:00
extern const union AnimCmd *const gMusicNotesAnimTable[];
2020-05-25 08:37:32 +02:00
extern const union AffineAnimCmd *const gMimicOrbAffineAnimTable[];
extern const union AnimCmd *const gSolarBeamBigOrbAnimTable[];
2020-05-25 08:37:32 +02:00
extern const union AnimCmd *const gPowderParticlesAnimTable[];
extern const union AffineAnimCmd *const gMetronomeFingerAffineAnimTable[];
extern const union AnimCmd *const gPetalDanceBigFlowerAnimTable[];
extern const union AnimCmd *const gOctazookaAnimTable[];
extern const union AffineAnimCmd *const gAbsorptionOrbAffineAnimTable[];
extern const union AnimCmd *const gGrantingStarsAnimTable[];
extern const union AnimCmd *const gSporeParticleAnimTable[];
extern const union AnimCmd *const gHealingBlueStarAnimTable[];
extern const union AnimCmd *const gMoonlightSparkleAnimTable[];
extern const union AnimCmd *const gEndureEnergyAnimTable[];
extern const union AnimCmd *const gPetalDanceSmallFlowerAnimTable[];
extern const union AnimCmd *const gConversionAnimTable[];
extern const union AffineAnimCmd *const gConversionAffineAnimTable[];
extern const union AnimCmd *const gCuttingSliceAnimTable[];
extern const union AnimCmd *const gScratchAnimTable[];
extern const union AnimCmd *const gIngrainRootAnimTable[];
extern const union AffineAnimCmd *const gSwiftStarAffineAnimTable[];
extern const union AnimCmd *const gMetronomeThroughtBubbleAnimTable[];
// battle_anim_effects_2.c
void AnimUproarRing(struct Sprite *sprite);
void AnimSonicBoomProjectile(struct Sprite *sprite);
void AnimOrbitFast(struct Sprite *sprite);
void AnimOrbitScatter(struct Sprite *sprite);
void AnimAngerMark(struct Sprite *sprite);
void AnimHyperVoiceRing(struct Sprite *sprite);
extern const union AffineAnimCmd *const gThinRingShrinkingAffineAnimTable[];
extern const union AffineAnimCmd *const gThinRingExpandingAffineAnimTable[];
extern const union AnimCmd *const gExplosionAnimTable[];
extern const union AffineAnimCmd *const gGuardRingAffineAnimTable[];
extern const union AffineAnimCmd *const gAngerMarkAffineAnimTable[];
extern const union AffineAnimCmd *const gWaterPulseRingAffineAnimTable[];
extern const union AffineAnimCmd *const gHyperVoiceRingAffineAnimTable[];
extern const union AnimCmd *const gCoinAnimTable[];
extern const union AffineAnimCmd *const gHiddenPowerOrbAffineAnimTable[];
// battle_anim_effects_3.c
void AnimBlackSmoke(struct Sprite *sprite);
void AnimSweetScentPetal(struct Sprite *sprite);
void AnimTealAlert(struct Sprite *sprite);
void AnimBlockX(struct Sprite *sprite);
extern const union AnimCmd *const gOpeningEyeAnimTable[];
extern const union AnimCmd *const gEclipsingOrbAnimTable[];
2019-03-02 04:32:50 +01:00
// battle_anim_water.c
2019-10-20 10:47:56 +02:00
void AnimWaterPulseRing(struct Sprite *sprite);
2020-05-25 08:37:32 +02:00
void AnimSmallBubblePair(struct Sprite *sprite);
void AnimWaterPulseBubble(struct Sprite *sprite);
extern const union AnimCmd *const gAnims_WaterBubbleProjectile[];
extern const union AnimCmd *const gAnims_FlamethrowerFlame[];
extern const union AnimCmd *const gAnims_WaterPulseBubble[];
2019-03-02 23:23:10 +01:00
// battle_anim_flying.c
2020-02-22 00:22:18 +01:00
void DestroyAnimSpriteAfterTimer(struct Sprite *sprite);
2019-03-02 23:23:10 +01:00
void sub_810E2C8(struct Sprite *sprite);
2020-02-29 13:59:41 +01:00
void AnimAirWaveCrescent(struct Sprite *sprite);
2020-05-25 08:37:32 +02:00
void AnimFlyBallUp(struct Sprite *sprite);
void AnimFlyBallAttack(struct Sprite *sprite);
void AnimFlyBallAttack_Step(struct Sprite *sprite);
void AnimFlyBallUp_Step(struct Sprite *sprite);
2020-02-29 13:59:41 +01:00
extern const union AnimCmd *const gAffineAnims_AirWaveCrescent[];
2020-05-25 08:37:32 +02:00
extern const union AffineAnimCmd *const gAffineAnims_FlyBallUp[];
extern const union AffineAnimCmd *const gAffineAnims_FlyBallAttack[];
2020-02-29 13:59:41 +01:00
// battle_anim_poison.c
void AnimSludgeBombHitParticle(struct Sprite *);
2020-05-25 08:37:32 +02:00
void AnimAcidPoisonBubble_Step(struct Sprite *sprite);
2020-02-29 13:59:41 +01:00
extern const union AffineAnimCmd *const gAffineAnims_PoisonProjectile[];
2020-05-25 08:37:32 +02:00
extern const union AnimCmd *const gAnims_PoisonProjectile[];
extern const union AnimCmd *const gAnims_AcidPoisonDroplet[];
2019-03-02 23:23:10 +01:00
2020-02-29 13:59:41 +01:00
// battle_anim_ghost.c
void AnimGhostStatusSprite(struct Sprite *sprite);
2020-05-25 08:37:32 +02:00
void AnimShadowBall(struct Sprite *sprite);
void AnimTask_GrudgeFlames_Step(u8 taskId);
extern const union AffineAnimCmd *const gAffineAnims_ShadowBall[];
2019-05-03 17:27:49 +02:00
2020-02-29 13:59:41 +01:00
// battle_anim_psychic.c
2020-05-25 08:37:32 +02:00
extern const union AffineAnimCmd *const gAffineAnims_PsychoBoostOrb[];
2020-02-29 13:59:41 +01:00
extern const union AffineAnimCmd *const gAffineAnims_LusterPurgeCircle[];
2020-05-25 08:37:32 +02:00
void AnimPsychoBoost(struct Sprite *sprite);
2019-05-03 17:27:49 +02:00
// battle_anim_smokescreen.c
2019-11-23 11:57:39 +01:00
u8 SmokescreenImpact(s16 x, s16 y, u8 a3);
2019-03-02 04:32:50 +01:00
2021-02-28 00:41:30 +01:00
u32 UnpackSelectedBattleBgPalettes(s16);
2018-10-06 23:04:53 +02:00
u8 GetBattlerSpriteFinal_Y(u8, u16, u8);
2018-05-11 01:28:52 +02:00
2019-10-15 01:26:47 +02:00
extern const struct OamData gOamData_AffineOff_ObjNormal_8x16;
extern const struct OamData gOamData_AffineNormal_ObjBlend_16x16;
extern const struct OamData gOamData_AffineOff_ObjNormal_8x8;
extern const struct OamData gOamData_AffineDouble_ObjNormal_8x8;
extern const struct OamData gOamData_AffineOff_ObjNormal_16x16;
extern const struct OamData gOamData_AffineOff_ObjNormal_32x16;
extern const struct OamData gOamData_AffineNormal_ObjNormal_32x32;
extern const struct OamData gOamData_AffineNormal_ObjNormal_64x32;
extern const struct OamData gOamData_AffineDouble_ObjNormal_16x16;
extern const struct OamData gOamData_AffineOff_ObjNormal_32x32;
extern const struct OamData gOamData_AffineNormal_ObjNormal_16x16;
extern const struct OamData gOamData_AffineOff_ObjBlend_32x32;
extern const struct OamData gOamData_AffineOff_ObjBlend_64x64;
extern const struct OamData gOamData_AffineNormal_ObjBlend_32x32;
extern const struct OamData gOamData_AffineOff_ObjNormal_16x32;
extern const struct OamData gOamData_AffineDouble_ObjBlend_8x8;
extern const struct OamData gOamData_AffineDouble_ObjNormal_32x32;
extern const struct OamData gOamData_AffineNormal_ObjBlend_64x64;
extern const struct OamData gOamData_AffineNormal_ObjBlend_32x64;
extern const struct OamData gOamData_AffineDouble_ObjBlend_32x16;
extern const struct OamData gOamData_AffineOff_ObjBlend_32x16;
extern const struct OamData gOamData_AffineDouble_ObjNormal_16x32;
extern const struct OamData gOamData_AffineDouble_ObjNormal_32x64;
extern const struct OamData gOamData_AffineNormal_ObjNormal_32x64;
extern const struct OamData gOamData_AffineDouble_ObjBlend_32x32;
extern const struct OamData gOamData_AffineDouble_ObjNormal_64x64;
extern const struct OamData gOamData_AffineDouble_ObjBlend_64x64;
extern const struct OamData gOamData_AffineDouble_ObjBlend_64x32;
extern const struct OamData gOamData_AffineDouble_ObjNormal_8x16;
extern const struct OamData gOamData_AffineOff_ObjBlend_16x16;
extern const struct OamData gOamData_AffineDouble_ObjBlend_16x16;
extern const struct OamData gOamData_AffineNormal_ObjNormal_8x8;
extern const struct OamData gOamData_AffineDouble_ObjBlend_8x16;
extern const struct OamData gOamData_AffineOff_ObjBlend_8x8;
extern const struct OamData gOamData_AffineNormal_ObjBlend_8x16;
extern const struct OamData gOamData_AffineNormal_ObjBlend_8x8;
extern const struct OamData gOamData_AffineOff_ObjBlend_8x16;
extern const struct OamData gOamData_AffineOff_ObjNormal_64x64;
extern const struct OamData gOamData_AffineOff_ObjNormal_32x64;
extern const struct OamData gOamData_AffineNormal_ObjNormal_64x64;
extern const struct OamData gOamData_AffineDouble_ObjNormal_32x16;
extern const struct OamData gOamData_AffineOff_ObjNormal_64x32;
extern const struct OamData gOamData_AffineOff_ObjBlend_64x32;
extern const struct OamData gOamData_AffineOff_ObjBlend_16x32;
2019-10-19 17:47:55 +02:00
extern const struct OamData gOamData_AffineDouble_ObjBlend_32x8;
2018-10-23 14:25:51 +02:00
2018-12-14 04:33:54 +01:00
extern const struct CompressedSpriteSheet gBattleAnimPicTable[];
extern const struct CompressedSpritePalette gBattleAnimPaletteTable[];
2020-02-21 18:38:20 +01:00
extern const struct SpriteTemplate gWaterHitSplatSpriteTemplate;
extern const union AnimCmd *const gAnims_WaterMudOrb[];
extern const union AnimCmd *const gAnims_BasicFire[];
extern const union AffineAnimCmd *const gGrowingRingAffineAnimTable[];
extern const union AffineAnimCmd *const gAffineAnims_Droplet[];
extern const union AnimCmd *const gAnims_SmallBubblePair[];
extern const union AnimCmd *const gAnims_WaterBubble[];
extern const union AffineAnimCmd *const gAffineAnims_Bite[];
2020-05-25 08:37:32 +02:00
// battle_anim_normal.c
extern const union AffineAnimCmd *const gAffineAnims_HitSplat[];
void AnimHitSplatBasic(struct Sprite *sprite);
void AnimFlashingHitSplat(struct Sprite *sprite);
void AnimFlashingHitSplat_Step(struct Sprite *sprite);
void AnimHitSplatRandom(struct Sprite *sprite);
void AnimCrossImpact(struct Sprite *sprite);
void AnimHitSplatOnMonEdge(struct Sprite *sprite);
// battle_anim_electric.c
void AnimThunderWave(struct Sprite *sprite);
void AnimGrowingChargeOrb(struct Sprite *sprite);
void AnimZapCannonSpark(struct Sprite *sprite);
void AnimSparkElectricity(struct Sprite *sprite);
void AnimElectricPuff(struct Sprite *sprite);
void AnimSparkElectricityFlashing(struct Sprite *sprite);
void AnimGrowingShockWaveOrb(struct Sprite *sprite);
extern const union AffineAnimCmd *const gAffineAnims_GrowingElectricOrb[];
extern const union AffineAnimCmd *const gAffineAnims_FlashingSpark[];
extern const union AnimCmd *const gAnims_ThunderboltOrb[];
extern const union AnimCmd *const gAnims_ElectricPuff[];
extern const union AnimCmd *const gAnims_ElectricChargingParticles[];
// battle_anim_fight.c
void AnimStompFoot(struct Sprite *sprite);
void AnimSpinningKickOrPunch(struct Sprite *sprite);
void AnimBrickBreakWall_Step(struct Sprite *sprite);
void AnimJumpKick(struct Sprite *sprite);
void AnimBasicFistOrFoot(struct Sprite *sprite);
void AnimSpinningKickOrPunchFinish(struct Sprite *sprite);
void AnimRevengeScratch(struct Sprite *sprite);
void AnimDizzyPunchDuck(struct Sprite *sprite);
extern const union AnimCmd *const gAnims_HandsAndFeet[];
2020-05-25 08:37:32 +02:00
extern const union AffineAnimCmd *const gAffineAnims_MegaPunchKick[];
extern const union AffineAnimCmd *const gAffineAnims_SpinningHandOrFoot[];
extern const union AnimCmd *const gAnims_RevengeBigScratch[];
// battle_anim_rock.c
2021-10-14 16:47:39 +02:00
extern const union AnimCmd *const gAnims_FlyingRock[];
2020-05-25 08:37:32 +02:00
extern const union AffineAnimCmd *const gAffineAnims_Whirlpool[];
extern const union AffineAnimCmd *const gAffineAnims_BasicRock[];
void AnimParticleInVortex(struct Sprite *sprite);
void AnimFallingRock(struct Sprite *sprite);
void AnimRaiseSprite(struct Sprite *sprite);
void AnimFallingRock_Step(struct Sprite *sprite);
void AnimFlyingSandCrescent(struct Sprite *sprite);
2021-10-14 16:47:39 +02:00
void AnimRockFragment(struct Sprite *);
2020-05-25 08:37:32 +02:00
// battle_anim_dark.c
void AnimClawSlash(struct Sprite *sprite);
void AnimTearDrop(struct Sprite *sprite);
void AnimBite(struct Sprite *sprite);
extern const union AnimCmd *const gAnims_ClawSlash[];
extern const union AffineAnimCmd *const gAffineAnims_TearDrop[];
// battle_anim_bug.c
void AnimStringWrap_Step(struct Sprite *sprite);
void AnimMissileArc(struct Sprite *sprite);
void AnimSpiderWeb(struct Sprite *sprite);
void AnimMissileArc_Step(struct Sprite *sprite);
// battle_anim_ice.c
void AnimThrowMistBall(struct Sprite *sprite);
void AnimMoveParticleBeyondTarget(struct Sprite *sprite);
void AnimIceEffectParticle(struct Sprite *sprite);
void AnimSwirlingSnowball_Step1(struct Sprite *sprite);
extern const union AnimCmd *const gAnims_Snowball[];
extern const union AffineAnimCmd *const gAffineAnims_IceCrystalHit[];
extern const union AnimCmd *const gAnims_IceCrystalLarge[];
extern const union AnimCmd *const gAnims_IceBallChunk[];
extern const union AnimCmd *const gAnims_BlizzardIceCrystal[];
// battle_anim_fire.c
void AnimFireSpread(struct Sprite *sprite);
void AnimFireSpiralOutward(struct Sprite *sprite);
extern const union AnimCmd *const gAnims_FireBlastCross[];
// battle_anim_dragon.c
extern const union AnimCmd *const gAnims_DragonBreathFire[];
extern const union AnimCmd *const gAnims_DragonRageFirePlume[];
extern const union AffineAnimCmd *const gAffineAnims_DragonRageFire[];
extern const union AnimCmd *const gAnims_DragonRageFire[];
extern const union AffineAnimCmd *const gAffineAnims_DragonBreathFire[];
void AnimDragonRageFirePlume(struct Sprite *sprite);
void AnimDragonFireToTarget(struct Sprite *sprite);
void AnimDragonDanceOrb(struct Sprite *sprite);
void AnimOverheatFlame(struct Sprite *sprite);
// battle_anim_new.c
void CoreEnforcerLoadBeamTarget(struct Sprite* sprite);
2022-02-25 14:54:35 +01:00
void SpriteCB_RandomCentredHits(struct Sprite* sprite);
2020-05-25 08:37:32 +02:00
2017-10-14 16:55:25 +02:00
#endif // GUARD_BATTLE_ANIM_H