src/battle_effect/battle_effect_boreas.c
The Boreas summon: Boreas in a mass of ice under a violet sky, then a torrent of ice crystals over the targets. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | BOREAS_OPENING_TICKS 288 | ticks of the crystals, block and spray |
#define | BOREAS_TORRENT_TICKS 146 | ticks of the torrent |
#define | BOREAS_CRUMBLE_A_TICK 32 | The opening: the crystals crumble three times, the big ice block drops, lands on Boreas's head and sinks, and the spray streams out. |
#define | BOREAS_CRUMBLE_B_TICK 64 | |
#define | BOREAS_CRUMBLE_C_TICK 104 | |
#define | BOREAS_BLOCK_DROP_TICK 160 | |
#define | BOREAS_BLOCK_LAND_TICK 176 | |
#define | BOREAS_BLOCK_SINK_TICK 208 | |
#define | BOREAS_SPRAY_TICK 224 | |
#define | BOREAS_SPRAY_SPARKLE_TICK 228 | Sparkles start to trail the spray, a fleck after the one before. |
#define | BOREAS_TORRENT_RISE_TICK 16 | The torrent: crystals rise among the targets, then crash down as the streak of ice falls. |
#define | BOREAS_TORRENT_CRASH_TICK 72 | |
#define | BOREAS_TORRENT_STREAK_TICK 64 | The streak of ice shows from here; the damage shows a little later. |
#define | BOREAS_TORRENT_DAMAGE_TICK 96 | |
#define | BOREAS_MASS_CRYSTALS 64 | The first part's particles in PARTICLES: the crystals of the mass, the shards that fly from it in two batches, and the flecks of spray, with a sparkle trailing each after them. |
#define | BOREAS_SHARDS 64 | |
#define | BOREAS_SPRAY 128 | |
#define | BOREAS_SPRAY_SPARKLES (PARTICLES + BOREAS_SPRAY) | |
#define | BOREAS_TORRENT_CRYSTALS 64 | The second part: the crystals of the torrent in state->particles and the sparkles among them in PARTICLES. |
#define | BOREAS_TORRENT_SPARKLES 64 | |
#define | BOREAS_CRYSTAL_WIDTH 24 | IceBlockSheet's first crystal, its big block and its streak. |
#define | BOREAS_CRYSTAL_HEIGHT 48 | |
#define | BOREAS_BIG_BLOCK_WIDTH 24 | |
#define | BOREAS_BIG_BLOCK_HEIGHT 48 | |
#define | BOREAS_STREAK_WIDTH 40 | |
#define | BOREAS_STREAK_HEIGHT 80 | |
#define | BOREAS_POINTS 16 | BoreasPoints has an x and a y for each of BOREAS_POINTS crystals: the mass's standing crystals, all BOREAS_POINTS of them until the first crumble, then BOREAS_CRYSTALS_AFTER_CRUMBLE_A, then BOREAS_CRYSTALS_AFTER_CRUMBLE_B, then none; and the crystals that rise among the targets. |
#define | BOREAS_POINT_X (crystal) BoreasPoints[crystal][0] | |
#define | BOREAS_POINT_Y (crystal) BoreasPoints[crystal][1] | |
#define | BOREAS_CRYSTALS_AFTER_CRUMBLE_A 10 | |
#define | BOREAS_CRYSTALS_AFTER_CRUMBLE_B 6 | |
#define | BOREAS_SPARKLE_LIFE 18 | The ticks a sparkle twinkles: its nine pictures, two ticks each. |
#define | BOREAS_TARGETS_X_SHIFT 56 | How far left of the mass's crystals those rising among the targets stand. |
#define | BOREAS_SPRAY_SIZE 16 | A spray picture's width and height. |
#define | BOREAS_SPRITE_ROWS 3 | Boreas is three rows of three 32x32 sprites. |
#define | BOREAS_SPRITES (BOREAS_SPRITE_ROWS * BOREAS_SPRITE_ROWS) |
Enumerations
| Name | Description | |
|---|---|---|
enum | ICE_BLOCK_SHEET_PICTURE { BOREAS_BIG_BLOCK, BOREAS_STREAK } | The pictures in the ice block sprite sheet that this file draws; the tables in battle_effect_table.c give the rest. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunBoreas (BATTLE_EFFECT_PARM *args) | The screen opens on Boreas standing in a mass of ice crystals over the violet sky; the crystals break away, a big ice block drops onto its head and a spray of ice streams out to the left. |
Description
The Boreas summon: Boreas in a mass of ice under a violet sky, then a torrent
of ice crystals over the targets. Part of battle_effect.c.
Macros in detail
BOREAS_OPENING_TICKS
#define BOREAS_OPENING_TICKS 288
ticks of the crystals, block and spray
Referenced by btEffectRunBoreas().
Definition at line 5 of file battle_effect_boreas.c.
BOREAS_TORRENT_TICKS
#define BOREAS_TORRENT_TICKS 146
ticks of the torrent
Referenced by btEffectRunBoreas().
Definition at line 6 of file battle_effect_boreas.c.
BOREAS_CRUMBLE_A_TICK
#define BOREAS_CRUMBLE_A_TICK 32
The opening: the crystals crumble three times, the big ice block drops, lands on Boreas's head and sinks, and the spray streams out.
Referenced by btEffectRunBoreas().
Definition at line 9 of file battle_effect_boreas.c.
BOREAS_CRUMBLE_B_TICK
#define BOREAS_CRUMBLE_B_TICK 64
Referenced by btEffectRunBoreas().
Definition at line 10 of file battle_effect_boreas.c.
BOREAS_CRUMBLE_C_TICK
#define BOREAS_CRUMBLE_C_TICK 104
Referenced by btEffectRunBoreas().
Definition at line 11 of file battle_effect_boreas.c.
BOREAS_BLOCK_DROP_TICK
#define BOREAS_BLOCK_DROP_TICK 160
Referenced by btEffectRunBoreas().
Definition at line 12 of file battle_effect_boreas.c.
BOREAS_BLOCK_LAND_TICK
#define BOREAS_BLOCK_LAND_TICK 176
Referenced by btEffectRunBoreas().
Definition at line 13 of file battle_effect_boreas.c.
BOREAS_BLOCK_SINK_TICK
#define BOREAS_BLOCK_SINK_TICK 208
Referenced by btEffectRunBoreas().
Definition at line 14 of file battle_effect_boreas.c.
BOREAS_SPRAY_TICK
#define BOREAS_SPRAY_TICK 224
Referenced by btEffectRunBoreas().
Definition at line 15 of file battle_effect_boreas.c.
BOREAS_SPRAY_SPARKLE_TICK
#define BOREAS_SPRAY_SPARKLE_TICK 228
Sparkles start to trail the spray, a fleck after the one before.
Referenced by btEffectRunBoreas().
Definition at line 17 of file battle_effect_boreas.c.
BOREAS_TORRENT_RISE_TICK
#define BOREAS_TORRENT_RISE_TICK 16
The torrent: crystals rise among the targets, then crash down as the streak of ice falls.
Referenced by btEffectRunBoreas().
Definition at line 20 of file battle_effect_boreas.c.
BOREAS_TORRENT_CRASH_TICK
#define BOREAS_TORRENT_CRASH_TICK 72
Referenced by btEffectRunBoreas().
Definition at line 21 of file battle_effect_boreas.c.
BOREAS_TORRENT_STREAK_TICK
#define BOREAS_TORRENT_STREAK_TICK 64
The streak of ice shows from here; the damage shows a little later.
Referenced by btEffectRunBoreas().
Definition at line 23 of file battle_effect_boreas.c.
BOREAS_TORRENT_DAMAGE_TICK
#define BOREAS_TORRENT_DAMAGE_TICK 96
Referenced by btEffectRunBoreas().
Definition at line 24 of file battle_effect_boreas.c.
BOREAS_MASS_CRYSTALS
#define BOREAS_MASS_CRYSTALS 64
The first part's particles in PARTICLES: the crystals of the mass, the shards
that fly from it in two batches, and the flecks of spray, with a sparkle
trailing each after them.
Referenced by btEffectRunBoreas().
Definition at line 29 of file battle_effect_boreas.c.
BOREAS_SHARDS
#define BOREAS_SHARDS 64
Referenced by btEffectRunBoreas().
Definition at line 30 of file battle_effect_boreas.c.
BOREAS_SPRAY
#define BOREAS_SPRAY 128
Referenced by btEffectRunBoreas().
Definition at line 31 of file battle_effect_boreas.c.
BOREAS_SPRAY_SPARKLES
#define BOREAS_SPRAY_SPARKLES (PARTICLES + BOREAS_SPRAY)
Referenced by btEffectRunBoreas().
Definition at line 32 of file battle_effect_boreas.c.
BOREAS_TORRENT_CRYSTALS
#define BOREAS_TORRENT_CRYSTALS 64
The second part: the crystals of the torrent in state->particles and the
sparkles among them in PARTICLES.
Referenced by btEffectRunBoreas().
Definition at line 35 of file battle_effect_boreas.c.
BOREAS_TORRENT_SPARKLES
#define BOREAS_TORRENT_SPARKLES 64
Referenced by btEffectRunBoreas().
Definition at line 36 of file battle_effect_boreas.c.
BOREAS_CRYSTAL_WIDTH
#define BOREAS_CRYSTAL_WIDTH 24
IceBlockSheet's first crystal, its big block and its streak.
Referenced by btEffectRunBoreas().
Definition at line 39 of file battle_effect_boreas.c.
BOREAS_CRYSTAL_HEIGHT
#define BOREAS_CRYSTAL_HEIGHT 48
Referenced by btEffectRunBoreas().
Definition at line 40 of file battle_effect_boreas.c.
BOREAS_BIG_BLOCK_WIDTH
#define BOREAS_BIG_BLOCK_WIDTH 24
Referenced by btEffectRunBoreas().
Definition at line 41 of file battle_effect_boreas.c.
BOREAS_BIG_BLOCK_HEIGHT
#define BOREAS_BIG_BLOCK_HEIGHT 48
Referenced by btEffectRunBoreas().
Definition at line 42 of file battle_effect_boreas.c.
BOREAS_STREAK_WIDTH
#define BOREAS_STREAK_WIDTH 40
Referenced by btEffectRunBoreas().
Definition at line 43 of file battle_effect_boreas.c.
BOREAS_STREAK_HEIGHT
#define BOREAS_STREAK_HEIGHT 80
Referenced by btEffectRunBoreas().
Definition at line 44 of file battle_effect_boreas.c.
BOREAS_POINTS
#define BOREAS_POINTS 16
BoreasPoints has an x and a y for each of BOREAS_POINTS crystals: the mass's
standing crystals, all BOREAS_POINTS of them until the first crumble, then
BOREAS_CRYSTALS_AFTER_CRUMBLE_A, then BOREAS_CRYSTALS_AFTER_CRUMBLE_B, then
none; and the crystals that rise among the targets.
Referenced by btEffectRunBoreas().
Definition at line 63 of file battle_effect_boreas.c.
BOREAS_POINT_X
#define BOREAS_POINT_X(crystal) BoreasPoints[crystal][0]
Referenced by btEffectRunBoreas().
Definition at line 64 of file battle_effect_boreas.c.
BOREAS_POINT_Y
#define BOREAS_POINT_Y(crystal) BoreasPoints[crystal][1]
Referenced by btEffectRunBoreas().
Definition at line 65 of file battle_effect_boreas.c.
BOREAS_CRYSTALS_AFTER_CRUMBLE_A
#define BOREAS_CRYSTALS_AFTER_CRUMBLE_A 10
Referenced by btEffectRunBoreas().
Definition at line 66 of file battle_effect_boreas.c.
BOREAS_CRYSTALS_AFTER_CRUMBLE_B
#define BOREAS_CRYSTALS_AFTER_CRUMBLE_B 6
Referenced by btEffectRunBoreas().
Definition at line 67 of file battle_effect_boreas.c.
BOREAS_SPARKLE_LIFE
#define BOREAS_SPARKLE_LIFE 18
The ticks a sparkle twinkles: its nine pictures, two ticks each.
Referenced by btEffectRunBoreas().
Definition at line 69 of file battle_effect_boreas.c.
BOREAS_TARGETS_X_SHIFT
#define BOREAS_TARGETS_X_SHIFT 56
How far left of the mass's crystals those rising among the targets stand.
Referenced by btEffectRunBoreas().
Definition at line 71 of file battle_effect_boreas.c.
BOREAS_SPRAY_SIZE
#define BOREAS_SPRAY_SIZE 16
A spray picture's width and height.
Referenced by btEffectRunBoreas().
Definition at line 73 of file battle_effect_boreas.c.
BOREAS_SPRITE_ROWS
#define BOREAS_SPRITE_ROWS 3
Boreas is three rows of three 32x32 sprites.
Referenced by btEffectRunBoreas().
Definition at line 75 of file battle_effect_boreas.c.
BOREAS_SPRITES
#define BOREAS_SPRITES (BOREAS_SPRITE_ROWS * BOREAS_SPRITE_ROWS)
Referenced by btEffectRunBoreas().
Definition at line 76 of file battle_effect_boreas.c.
Enumerations in detail
ICE_BLOCK_SHEET_PICTURE
enum ICE_BLOCK_SHEET_PICTURE
The pictures in the ice block sprite sheet that this file draws; the tables
in battle_effect_table.c give the rest.
| Enumerator | Value | Description |
|---|---|---|
BOREAS_BIG_BLOCK | PICTURE_BYTES(BOREAS_CRYSTAL) + 24 * 38 + 20 * 26 + 12 * 10 + 11 * 16 + 8 * 14 + 10 * 15 | After the three crystals and the four large shards. |
BOREAS_STREAK | BOREAS_BIG_BLOCK + PICTURE_BYTES(BOREAS_BIG_BLOCK) + 3 * (16 * 16) + 8 * 4 + 12 * 4 + 5 * 3 + 7 * 4 + 7 * 6 + 6 * 12 + 7 * 10 | After the big block, the three spray pictures and the seven small shards. |
Definition at line 48 of file battle_effect_boreas.c.
Functions in detail
btEffectRunBoreas
void btEffectRunBoreas(BATTLE_EFFECT_PARM *args)
The screen opens on Boreas standing in a mass of ice crystals over the violet sky; the crystals break away, a big ice block drops onto its head and a spray of ice streams out to the left. Then a torrent of ice crystals sweeps down over the targets, crystals rise among them and burst, and a streak of ice falls through them.
Abilities: Boreas.
References BattleEffectSparklePictures, BattleEffectSparkleSizes, BgScrollWork, BoreasAnimations, BoreasCrystalHeights, BoreasCrystalPictures, BoreasCrystalWidths, BoreasDebrisHeights, BoreasDebrisPictures, BoreasDebrisWidths, BoreasFallHeights, BoreasFallPictures, BoreasFallWidths, BoreasRisingCrystalHeights, BoreasRisingCrystalPictures, BoreasRisingCrystalWidths, BoreasShakeOffsets, BoreasSprayHeights, BoreasSprayPictures, BoreasSprayWidths, BoreasUnitScale, btBackgroundLoadStub(), btCameraShake(), btEffectBuildWindowEdgeTable(), btEffectConfigureEffectDisplay(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectSetupBlendedDisplay(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btEffectWipeCanvas(), btParticleAdvanceWithGravity2D(), btResourceLoadAndDecompress(), fdRenderApplyProjectedPlacementStub(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerWork, ProjectionWork, Sint32, syCloseEvent(), syInitMatrix(), syRandom(), sySetEvent(), sySoundPlayStub() and sySynch().
Referenced by btEffectRunSummon().
Definition at line 85 of file battle_effect_boreas.c.