src/battle_effect/battle_effect_frost.c
Frost. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FROST_MOUND_WIDTH 32 | The ice mounds' pictures in IceChipSheet are all as wide; their heights are FrostMoundHeights. |
#define | FROST_BURST_MOTES 16 | The motes still drawn once they burst, of the variant's FROST_MOTES. |
#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. |
#define | FROST_CHIPS 32 | The ice chips thrown up at the burst; only the first FROST_CHIPS_DRAWN are drawn. |
#define | FROST_CHIPS_DRAWN 24 | |
#define | FROST_SPARKLES 32 | The sparkles that rise over the burst. |
#define | FROST_SPARKLE_LIFE 18 | A sparkle's ticks: two for each of BattleEffectSparklePictures' nine, counted down. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { FROST_MOTES, FROST_MOUNDS, FROST_TICK } | One row of FrostTimings, for each variant. |
Functions
| Name | Description | |
|---|---|---|
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. |
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.
| Enumerator | Value | Description |
|---|---|---|
FROST_MOTES | how many motes spiral down | |
FROST_MOUNDS | how many ice mounds spring up | |
FROST_TICK | the 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.



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.