Skip to Content
The Alchemy Project

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

NameDescription
#defineFLARE_TICKS 60Ticks of the flare.
#defineFLARE_ARC_COUNT 9Flames on the arc.
#defineFLARE_ARC_RADIUS_X 32The half ellipse's radii, across and up and down, in canvas pixels.
#defineFLARE_ARC_RADIUS_Y 16
#defineFLARE_FLAME_PICTURES 6A flame's six pictures, four ticks each, before it goes out.
#defineFLARE_PICTURE_TICKS 4

Functions

NameDescription
voidbtEffectRunFlare (BATTLE_EFFECT_PARM *args)Nine flames rise one after another along half an ellipse.
Sint32btEffectBuildCenteredIndexList (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.