src/battle_effect/battle_effect_flare.c
Flare. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLARE_TICKS 80 | 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. Part of battle_effect.c.
Macros in detail
FLARE_TICKS
#define FLARE_TICKS 80
Ticks of the flare.
Referenced by btEffectRunFlare().
Definition at line 4 of file battle_effect_flare.c.
FLARE_ARC_COUNT
#define FLARE_ARC_COUNT 9
Flames on the arc.
Referenced by btEffectRunFlare().
Definition at line 7 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 9 of file battle_effect_flare.c.
FLARE_ARC_RADIUS_Y
#define FLARE_ARC_RADIUS_Y 16
Referenced by btEffectRunFlare().
Definition at line 10 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 12 of file battle_effect_flare.c.
FLARE_PICTURE_TICKS
#define FLARE_PICTURE_TICKS 4
Referenced by btEffectRunFlare().
Definition at line 13 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 BattleEffectPuffArcPictureBiasY, BattleEffectPuffArcPictureHeights, BattleEffectPuffArcPictures, BattleEffectPuffArcPictureWidths, btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), Sint32, state, syCloseEvent(), syCos(), syHeapSlotRelease(), sySetEvent(), sySin(), sySoundPlayStub() and width.
Referenced by BattleEffectHandlers.
Definition at line 18 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 189 of file battle_effect_flare.c.