Skip to Content
The Alchemy Project

src/battle_effect/battle_effect_frost.c

Frost. More…

Included by battle_effect.c.

Macros

NameDescription
#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_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_MOTES, FROST_MOUNDS, FROST_TICK }One row of FrostTimings, for each variant.

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_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 13 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_MOTES.

Referenced by btEffectRunFrost().

Definition at line 16 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 19 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 22 of file battle_effect_frost.c.

FROST_CHIPS_DRAWN

#define FROST_CHIPS_DRAWN 24

Referenced by btEffectRunFrost().

Definition at line 23 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 25 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 28 of file battle_effect_frost.c.

Enumerations in detail

anonymous enum

enum { FROST_MOTES, FROST_MOUNDS, FROST_TICK }

One row of FrostTimings, for each variant.

EnumeratorValueDescription
FROST_MOTEShow many motes spiral down
FROST_MOUNDShow many ice mounds spring up
FROST_TICKthe tick the motes burst

Definition at line 4 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.

Frost
Frost
Tundra
Tundra
Glacier
Glacier

References BattleEffectSparklePictures, BattleEffectSparkleSizes, btEffectBuildCanvasBlitters(), btEffectEndCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btProjectionPoint(), btResourceLoadAndDecompress(), FrostChipHeights, FrostChipPictures, FrostChipWidths, FrostMoteHeights, FrostMotePictures, FrostMoteWidths, FrostMoundHeights, FrostMoundPictures, FrostMoundSpots, FrostTimings, Sint32, state, syCloseEvent(), syCos(), syInitMatrix(), syMatrixTranslateVector(), syRandom(), sySin(), sySoundPlayStub() and width.

Referenced by BattleEffectHandlers.

Definition at line 34 of file battle_effect_frost.c.