src/battle_effect/battle_effect_flare.c
Flare, and an unused function that lists the indices around a value. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLARE_TICKS 60 | Ticks of the flare. |
#define | FLARE_ARC_COUNT 9 | Flames on the arc. |
#define | FLARE_ARC_RADIUS_X 32 | The half ellipse's radii, across and up and down, in canvas pixels. |
#define | FLARE_ARC_RADIUS_Y 16 | |
#define | FLARE_FLAME_PICTURES 6 | A flame's six pictures, four ticks each, before it goes out. |
#define | FLARE_PICTURE_TICKS 4 |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunFlare (BATTLE_EFFECT_PARM *args) | Nine flames rise one after another along half an ellipse. |
Sint32 | btEffectBuildCenteredIndexList (BATTLE_EFFECT_INDEX_WINDOW *window, Sint16 *output) | Lists the indices within indexRadius of where currentValue sits in values, up to entryLimit, and returns how many. |
Description
Flare, and an unused function that lists the indices around a value. Part of
battle_effect.c.
Macros in detail
FLARE_TICKS
#define FLARE_TICKS 60
Ticks of the flare.
Referenced by btEffectRunFlare().
Definition at line 5 of file battle_effect_flare.c.
FLARE_ARC_COUNT
#define FLARE_ARC_COUNT 9
Flames on the arc.
Referenced by btEffectRunFlare().
Definition at line 8 of file battle_effect_flare.c.
FLARE_ARC_RADIUS_X
#define FLARE_ARC_RADIUS_X 32
The half ellipse's radii, across and up and down, in canvas pixels.
Referenced by btEffectRunFlare().
Definition at line 10 of file battle_effect_flare.c.
FLARE_ARC_RADIUS_Y
#define FLARE_ARC_RADIUS_Y 16
Referenced by btEffectRunFlare().
Definition at line 11 of file battle_effect_flare.c.
FLARE_FLAME_PICTURES
#define FLARE_FLAME_PICTURES 6
A flame's six pictures, four ticks each, before it goes out.
Referenced by btEffectRunFlare().
Definition at line 13 of file battle_effect_flare.c.
FLARE_PICTURE_TICKS
#define FLARE_PICTURE_TICKS 4
Referenced by btEffectRunFlare().
Definition at line 14 of file battle_effect_flare.c.
Functions in detail
btEffectRunFlare
void btEffectRunFlare(BATTLE_EFFECT_PARM *args)
Nine flames rise one after another along half an ellipse.
Abilities: Flare, Flare Wall, Flare Storm.
References BattleEffectEmberStreakPictureBiasY, BattleEffectEmberStreakPictureHeights, BattleEffectEmberStreakPictures, BattleEffectEmberStreakPictureWidths, btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), sySetEvent(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 19 of file battle_effect_flare.c.
btEffectBuildCenteredIndexList
Sint32 btEffectBuildCenteredIndexList(BATTLE_EFFECT_INDEX_WINDOW *window, Sint16 *output)
Lists the indices within indexRadius of where currentValue sits in values, up to entryLimit, and returns how many.
References Sint32.
Definition at line 191 of file battle_effect_flare.c.