Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_flare.c

Flare. More…

Included by battle_effect.c.

Macros

NameDescription
#defineFLARE_TICKS 80Ticks 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. 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.

Flare
Flare
Flare Wall
Flare Wall
Flare Storm
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.