src/battle_effect/battle_effect_constants.c
The constants the battle effects copy into their locals, in the order of the effects that read them: mostly the scales their sprites are placed at, and a few corners, points and widths.
#include "fixed_math.h"#include "types.h"#include "battle_effect/render_model.h"#include "battle_effect/battle_effect.h"#include "graphics/render_placement.h"
Macros
| Name | Description | |
|---|---|---|
#define | UNIT_SCALE {toFIXED(1), toFIXED(1)} | A sprite drawn at its own size, which most effects place theirs at. |
Variables
| Name | Description | |
|---|---|---|
const SCALE | CruelRuinUnitScale | Cruel Ruin's scale for the summon, copied each tick before it is placed. |
const SCALE | EclipseDragonScale | Eclipse's scale for the dragon's sprites, copied each tick before they are placed. |
const SCALE | EclipseUnusedScales [2] | Unused: two more scales after Eclipse's, each word 0x55555556 (2^32 / 3 rounded up); nothing reads them. |
const SCALE | ProcneUnitScale | Procne's comets' scale. |
const Uint32 | ProcneUnusedWords [3] | Unused: three words after Procne's scale, 2^32 / 36 and twice 2^32 / 90, each rounded up; nothing reads them. |
const SCALE | ZaganUnitScale | Zagan's scale, copied each tick before he is placed. |
const SCALE | BoreasUnitScale | Boreas's scale, copied each tick before his sprites are placed. |
const ROCK_WALL_HEIGHTS | RockWallHeights | The heights of Quake's rock pillars, in pixels. |
const Sint16 | ThorPoints [6][2] | Thor's three lines of motes: each line's two ends, {x, z} on the ground in pixels. |
const SCALE | GaiaUnitScale | The scale each of Gaia's rocks starts from before it grows. |
const SPR_SCALE | UlyssesParticleScale | The white flake's scale as it flutters away at Ulysses's end. |
const SCALE | UlyssesMageScale | The mage's sprite scale in Ulysses, copied each tick the mage stands. |
const SCALE | SummonFormationScale | The scale of a summon formation's sprites drawn at their own size (btEffectPlaceFormationSprites). |
const SCALE | SummonFormationLargeScale | The scale of a summon formation's sprites drawn a quarter larger. |
const SPR_SCALE | RamsesUnitScale | The statue's scale in Ramses. |
const SCALE | JudgmentUnitScale | The formation objects' scale in Judgment. |
const SPR_SCALE | KirinSweepScale | Kirin's scale as he bounds in and lifts away. |
const SPR_SCALE | KirinChargeScale | Kirin's scale while he charges, copied each tick before the charge changes it. |
const SCALE | NeptuneUnitScale | Neptune's scale, one and a half. |
const SCALE | MegaeraUnitScale | Megaera's scale as she falls, one and a half. |
const Sint8 | VoidBeamCorners [6][2] | The six corners of Void Beam's hexagon of motes, {z, y} in pixels. |
const SCALE | CharonSwarmScale | Charon's swarm scale, before it is set to one and a quarter. |
const SCALE | CharonPulseScale | Charon's pulse scale, before the pulse sets it from a sine. |
const SCALE | CharonRevealScale | Charon's scale while he is revealed. |
const SCALE | CharonFinaleScale | Charon's scale in the finale. |
const SCALE | FloraUnitScale | Flora's scale. |
const SCALE | DaedalusCanopyScale | The scale of the forest canopy Daedalus flies over. |
const SCALE | DaedalusMachineScale | The scale of the pieces of Daedalus's machine. |
const SCALE | DaedalusMissileScale | The scale of Daedalus's missiles, a tenth larger than their pictures. |
const SCALE | DaedalusStrikeRocketScale | The rocket's scale in Daedalus's second strike, twice its size. |
const SCALE | CoatlicueUnitScale | Coatlicue's scale. |
const SCALE | CatastropheUnitScale | Catastrophe's scale for the summon. |
const SCALE | HauresChargeScale | Haures's scale while he charges. |
const SCALE | HauresOrbitScale | Haures's scale while he circles. |
const SCALE | HauresOpeningScale | Haures's scale in the opening, before it is flipped. |
const SCALE | TridentUnitScale | The scale of Trident's four prongs. |
const SCALE | MeteorBlowDoubleScale | The summon's scale in Meteor Blow, twice its size. |
const Uint8 | MolochMoteSizes [8] | The size of each of Moloch's motes, by the low three bits of its number. |
const MODEL_VERTEX | IrisPillarVertices [6] | An Iris pillar's six corners, {x, y, z} in pixels: three rows of two, 16 either side of its centre, at y -16, 12 and 0. |
const SCALE | IrisUnitScale | Iris's scale while she rises. |
const FIVE_WIDTHS | IrisRisingPillarWidths | The rising pillars' widths, left to right. |
const SEVEN_WIDTHS | IrisWideningPillarWidths | The widening pillars' widths, left to right. |
const SEVEN_WIDTHS | IrisNarrowingPillarWidths | The narrowing pillars' widths, left to right. |
const FOUR_SPANS | IrisLeftStripSpans | The left strip's four spans where petals start, {left, width} in pixels. |
const FOUR_SPANS | IrisRightStripSpans | The right strip's four spans where petals start, {left, width} in pixels. |
Description
The constants the battle effects copy into their locals, in the order of the effects that read them: mostly the scales their sprites are placed at, and a few corners, points and widths.
Macros in detail
UNIT_SCALE
#define UNIT_SCALE {toFIXED(1), toFIXED(1)}
A sprite drawn at its own size, which most effects place theirs at.
Referenced by BoreasUnitScale, CatastropheUnitScale, CharonFinaleScale, CharonPulseScale, CharonRevealScale, CharonSwarmScale, CoatlicueUnitScale, CruelRuinUnitScale, DaedalusCanopyScale, DaedalusMachineScale, EclipseDragonScale, FloraUnitScale, GaiaUnitScale, HauresChargeScale, HauresOpeningScale, HauresOrbitScale, IrisUnitScale, JudgmentUnitScale, KirinChargeScale, KirinSweepScale, ProcneUnitScale, RamsesUnitScale, SummonFormationScale, TridentUnitScale, UlyssesMageScale, UlyssesParticleScale and ZaganUnitScale.
Definition at line 12 of file battle_effect_constants.c.
Variables in detail
CruelRuinUnitScale
const SCALE CruelRuinUnitScale
Cruel Ruin's scale for the summon, copied each tick before it is placed.
Referenced by btEffectRunCruelRuin().
Definition at line 15 of file battle_effect_constants.c.
EclipseDragonScale
const SCALE EclipseDragonScale
Eclipse's scale for the dragon's sprites, copied each tick before they are placed.
Referenced by btEffectRunEclipse().
Definition at line 19 of file battle_effect_constants.c.
EclipseUnusedScales
const SCALE EclipseUnusedScales[2]
Unused: two more scales after Eclipse's, each word 0x55555556 (2^32 / 3 rounded up); nothing reads them.
Definition at line 23 of file battle_effect_constants.c.
ProcneUnitScale
const SCALE ProcneUnitScale
Procne's comets' scale.
Referenced by btEffectRunProcne().
Definition at line 29 of file battle_effect_constants.c.
ProcneUnusedWords
const Uint32 ProcneUnusedWords[3]
Unused: three words after Procne's scale, 2^32 / 36 and twice 2^32 / 90, each rounded up; nothing reads them.
Definition at line 33 of file battle_effect_constants.c.
ZaganUnitScale
const SCALE ZaganUnitScale
Zagan's scale, copied each tick before he is placed.
Referenced by btEffectRunZagan().
Definition at line 36 of file battle_effect_constants.c.
BoreasUnitScale
const SCALE BoreasUnitScale
Boreas's scale, copied each tick before his sprites are placed.
Referenced by btEffectRunBoreas().
Definition at line 39 of file battle_effect_constants.c.
RockWallHeights
const ROCK_WALL_HEIGHTS RockWallHeights
The heights of Quake's rock pillars, in pixels.
Referenced by btEffectRunQuake().
Definition at line 42 of file battle_effect_constants.c.
ThorPoints
const Sint16 ThorPoints[6][2]
Thor's three lines of motes: each line's two ends, {x, z} on the ground in pixels.
Referenced by btEffectRunThor().
Definition at line 48 of file battle_effect_constants.c.
GaiaUnitScale
const SCALE GaiaUnitScale
The scale each of Gaia's rocks starts from before it grows.
Referenced by btEffectRunGaia().
Definition at line 58 of file battle_effect_constants.c.
UlyssesParticleScale
const SPR_SCALE UlyssesParticleScale
The white flake's scale as it flutters away at Ulysses's end.
Referenced by btUlyssesFlutterFlake().
Definition at line 61 of file battle_effect_constants.c.
UlyssesMageScale
const SCALE UlyssesMageScale
The mage's sprite scale in Ulysses, copied each tick the mage stands.
Referenced by btEffectRunUlysses().
Definition at line 64 of file battle_effect_constants.c.
SummonFormationScale
const SCALE SummonFormationScale
The scale of a summon formation's sprites drawn at their own size
(btEffectPlaceFormationSprites).
Referenced by btEffectPlaceFormationSprites().
Definition at line 68 of file battle_effect_constants.c.
SummonFormationLargeScale
const SCALE SummonFormationLargeScale
The scale of a summon formation's sprites drawn a quarter larger.
Referenced by btEffectPlaceFormationSprites().
Definition at line 71 of file battle_effect_constants.c.
RamsesUnitScale
const SPR_SCALE RamsesUnitScale
The statue's scale in Ramses.
Referenced by btEffectRunRamses().
Definition at line 77 of file battle_effect_constants.c.
JudgmentUnitScale
const SCALE JudgmentUnitScale
The formation objects' scale in Judgment.
Referenced by btEffectRunJudgment().
Definition at line 80 of file battle_effect_constants.c.
KirinSweepScale
const SPR_SCALE KirinSweepScale
Kirin's scale as he bounds in and lifts away.
Referenced by btEffectRunKirin().
Definition at line 83 of file battle_effect_constants.c.
KirinChargeScale
const SPR_SCALE KirinChargeScale
Kirin's scale while he charges, copied each tick before the charge changes it.
Referenced by btEffectRunKirin().
Definition at line 87 of file battle_effect_constants.c.
NeptuneUnitScale
const SCALE NeptuneUnitScale
Neptune's scale, one and a half.
Referenced by btEffectRunNeptune().
Definition at line 90 of file battle_effect_constants.c.
MegaeraUnitScale
const SCALE MegaeraUnitScale
Megaera's scale as she falls, one and a half.
Referenced by btEffectRunMegaera().
Definition at line 93 of file battle_effect_constants.c.
VoidBeamCorners
const Sint8 VoidBeamCorners[6][2]
The six corners of Void Beam's hexagon of motes, {z, y} in pixels.
Referenced by btEffectRunVoidBeam().
Definition at line 96 of file battle_effect_constants.c.
CharonSwarmScale
const SCALE CharonSwarmScale
Charon's swarm scale, before it is set to one and a quarter.
Referenced by btEffectRunCharon().
Definition at line 106 of file battle_effect_constants.c.
CharonPulseScale
const SCALE CharonPulseScale
Charon's pulse scale, before the pulse sets it from a sine.
Referenced by btEffectRunCharon().
Definition at line 109 of file battle_effect_constants.c.
CharonRevealScale
const SCALE CharonRevealScale
Charon's scale while he is revealed.
Referenced by btEffectRunCharon().
Definition at line 112 of file battle_effect_constants.c.
CharonFinaleScale
const SCALE CharonFinaleScale
Charon's scale in the finale.
Referenced by btEffectRunCharon().
Definition at line 115 of file battle_effect_constants.c.
FloraUnitScale
const SCALE FloraUnitScale
Flora's scale.
Referenced by btEffectRunFlora().
Definition at line 118 of file battle_effect_constants.c.
DaedalusCanopyScale
const SCALE DaedalusCanopyScale
The scale of the forest canopy Daedalus flies over.
Referenced by btEffectRunDaedalus().
Definition at line 121 of file battle_effect_constants.c.
DaedalusMachineScale
const SCALE DaedalusMachineScale
The scale of the pieces of Daedalus's machine.
Referenced by btEffectRunDaedalus().
Definition at line 124 of file battle_effect_constants.c.
DaedalusMissileScale
const SCALE DaedalusMissileScale
The scale of Daedalus's missiles, a tenth larger than their pictures.
Referenced by btEffectRunDaedalus().
Definition at line 127 of file battle_effect_constants.c.
DaedalusStrikeRocketScale
const SCALE DaedalusStrikeRocketScale
The rocket's scale in Daedalus's second strike, twice its size.
Referenced by btEffectRunDaedalusStrike().
Definition at line 133 of file battle_effect_constants.c.
CoatlicueUnitScale
const SCALE CoatlicueUnitScale
Coatlicue's scale.
Referenced by btEffectRunCoatlicue().
Definition at line 136 of file battle_effect_constants.c.
CatastropheUnitScale
const SCALE CatastropheUnitScale
Catastrophe's scale for the summon.
Referenced by btEffectRunCatastrophe().
Definition at line 139 of file battle_effect_constants.c.
HauresChargeScale
const SCALE HauresChargeScale
Haures's scale while he charges.
Referenced by btEffectRunHaures().
Definition at line 142 of file battle_effect_constants.c.
HauresOrbitScale
const SCALE HauresOrbitScale
Haures's scale while he circles.
Referenced by btEffectRunHaures().
Definition at line 145 of file battle_effect_constants.c.
HauresOpeningScale
const SCALE HauresOpeningScale
Haures's scale in the opening, before it is flipped.
Referenced by btEffectRunHaures().
Definition at line 148 of file battle_effect_constants.c.
TridentUnitScale
const SCALE TridentUnitScale
The scale of Trident's four prongs.
Referenced by btEffectRunTrident().
Definition at line 151 of file battle_effect_constants.c.
MeteorBlowDoubleScale
const SCALE MeteorBlowDoubleScale
The summon's scale in Meteor Blow, twice its size.
Referenced by btEffectRunMeteorBlow().
Definition at line 154 of file battle_effect_constants.c.
MolochMoteSizes
const Uint8 MolochMoteSizes[8]
The size of each of Moloch's motes, by the low three bits of its number.
Referenced by btEffectRunMoloch().
Definition at line 157 of file battle_effect_constants.c.
IrisPillarVertices
const MODEL_VERTEX IrisPillarVertices[6]
An Iris pillar's six corners, {x, y, z} in pixels: three rows of two, 16 either side of its centre, at y -16, 12 and 0.
Referenced by btIrisDrawPillar().
Definition at line 161 of file battle_effect_constants.c.
IrisUnitScale
const SCALE IrisUnitScale
Iris's scale while she rises.
Referenced by btEffectRunIris().
Definition at line 171 of file battle_effect_constants.c.
IrisRisingPillarWidths
const FIVE_WIDTHS IrisRisingPillarWidths
The rising pillars' widths, left to right.
Referenced by btEffectRunIris().
Definition at line 174 of file battle_effect_constants.c.
IrisWideningPillarWidths
const SEVEN_WIDTHS IrisWideningPillarWidths
The widening pillars' widths, left to right.
Referenced by btEffectRunIris().
Definition at line 179 of file battle_effect_constants.c.
IrisNarrowingPillarWidths
const SEVEN_WIDTHS IrisNarrowingPillarWidths
The narrowing pillars' widths, left to right.
Referenced by btEffectRunIris().
Definition at line 184 of file battle_effect_constants.c.
IrisLeftStripSpans
const FOUR_SPANS IrisLeftStripSpans
The left strip's four spans where petals start, {left, width} in pixels.
Referenced by btEffectRunIris().
Definition at line 189 of file battle_effect_constants.c.
IrisRightStripSpans
const FOUR_SPANS IrisRightStripSpans
The right strip's four spans where petals start, {left, width} in pixels.
Referenced by btEffectRunIris().
Definition at line 194 of file battle_effect_constants.c.