Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_frost.c

Frost. More…

Included by battle_effect.c.

Macros

NameDescription
#defineFROST_TIMING (variant, column) FrostTimings[(variant) * 3 + (column)]The variant's row of FrostTimings, read by column (FROST_TIMING_MOTES, FROST_TIMING_COLUMNS, FROST_TIMING_BURST_TICK).
#defineFROST_MOUND_SPOT (i, column) FrostMoundSpots[(i) * 2 + (column)]Mound i's FROST_MOUND_X or FROST_MOUND_FOOT.
#defineFROST_MOUND_WIDTH 32The ice mounds' pictures in IceChipSheet are all as wide; their heights are FrostMoundHeights.
#defineFROST_BURST_MOTES 16The motes still drawn once they burst, of the variant's FROST_TIMING_MOTES.
#defineFROST_MOTE_DEPTH 48How far below the centre the motes sink before the burst, in pixels; they are drawn only between this depth and as high above.
#defineFROST_CHIPS 32The ice chips thrown up at the burst; only the first FROST_CHIPS_DRAWN are drawn.
#defineFROST_CHIPS_DRAWN 24
#defineFROST_SPARKLES 32The sparkles that rise over the burst.
#defineFROST_SPARKLE_LIFE 18A sparkle's ticks: two for each of BattleEffectSparklePictures' nine, counted down.

Enumerations

NameDescription
enumanonymous enum { FROST_MOUND_X, FROST_MOUND_FOOT }A row of FrostMoundSpots.

Functions

NameDescription
voidbtEffectRunFrost (BATTLE_EFFECT_PARM *args)Motes of ice spiral down and in while mounds of ice spring up; at the burst the motes spread and rise, chips fly up and sparkles rise.

Description

Frost. Part of battle_effect.c.

Macros in detail

FROST_TIMING

#define FROST_TIMING(variant, column) FrostTimings[(variant) * 3 + (column)]

The variant's row of FrostTimings, read by column (FROST_TIMING_MOTES, FROST_TIMING_COLUMNS, FROST_TIMING_BURST_TICK).

Referenced by btEffectRunFrost().

Definition at line 5 of file battle_effect_frost.c.

FROST_MOUND_SPOT

#define FROST_MOUND_SPOT(i, column) FrostMoundSpots[(i) * 2 + (column)]

Mound i's FROST_MOUND_X or FROST_MOUND_FOOT.

Referenced by btEffectRunFrost().

Definition at line 15 of file battle_effect_frost.c.

FROST_MOUND_WIDTH

#define FROST_MOUND_WIDTH 32

The ice mounds' pictures in IceChipSheet are all as wide; their heights are FrostMoundHeights.

Referenced by btEffectRunFrost().

Definition at line 19 of file battle_effect_frost.c.

FROST_BURST_MOTES

#define FROST_BURST_MOTES 16

The motes still drawn once they burst, of the variant's FROST_TIMING_MOTES.

Referenced by btEffectRunFrost().

Definition at line 22 of file battle_effect_frost.c.

FROST_MOTE_DEPTH

#define FROST_MOTE_DEPTH 48

How far below the centre the motes sink before the burst, in pixels; they are drawn only between this depth and as high above.

Referenced by btEffectRunFrost().

Definition at line 25 of file battle_effect_frost.c.

FROST_CHIPS

#define FROST_CHIPS 32

The ice chips thrown up at the burst; only the first FROST_CHIPS_DRAWN are drawn.

Referenced by btEffectRunFrost().

Definition at line 28 of file battle_effect_frost.c.

FROST_CHIPS_DRAWN

#define FROST_CHIPS_DRAWN 24

Referenced by btEffectRunFrost().

Definition at line 29 of file battle_effect_frost.c.

FROST_SPARKLES

#define FROST_SPARKLES 32

The sparkles that rise over the burst.

Referenced by btEffectRunFrost().

Definition at line 31 of file battle_effect_frost.c.

FROST_SPARKLE_LIFE

#define FROST_SPARKLE_LIFE 18

A sparkle's ticks: two for each of BattleEffectSparklePictures' nine, counted down.

Referenced by btEffectRunFrost().

Definition at line 34 of file battle_effect_frost.c.

Enumerations in detail

anonymous enum

enum { FROST_MOUND_X, FROST_MOUND_FOOT }

A row of FrostMoundSpots.

EnumeratorValueDescription
FROST_MOUND_Xcanvas x of the mound's left edge
FROST_MOUND_FOOTcanvas y of its foot

Definition at line 8 of file battle_effect_frost.c.

Functions in detail

btEffectRunFrost

void btEffectRunFrost(BATTLE_EFFECT_PARM *args)

Motes of ice spiral down and in while mounds of ice spring up; at the burst the motes spread and rise, chips fly up and sparkles rise.

Abilities: Frost, Tundra, Glacier.

References BattleEffectSparklePictures, BattleEffectSparkleSizes, btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectTintBattler(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), FrostChipCells, FrostChipHeights, FrostChipWidths, FrostMoteCells, FrostMoteHeights, FrostMoteWidths, FrostMoundHeights, FrostMoundPictures, Sint32, syCloseEvent(), syCos(), syInitMatrix(), syMatrixTranslateVector(), syRandom(), sySin() and sySoundPlayStub().

Referenced by BattleEffectHandlers.

Definition at line 40 of file battle_effect_frost.c.