src/battle_effect/battle_effect_tiamat.c
The Tiamat summon and Dragon Driver. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | DRAGON_FIRE_TICKS 208 | |
#define | DRAGON_FIRE_BREATH_TICK 128 | The breath of fire, then the flash that ends it. |
#define | DRAGON_FIRE_FLASH_TICK 160 | |
#define | DRAGON_FIRE_FLASH_END_TICK 176 | |
#define | DRAGON_FIRE_TIAMAT_SPRITES 8 | The sprites that draw Tiamat. |
#define | DRAGON_FIRE_FIREBALLS 16 | Falling fireballs. |
#define | DRAGON_FIRE_FIRST_FIREBALL 24 | The first in state->particles. |
#define | DRAGON_FIRE_FIRST_SPARK 40 | The first spark in state->particles. |
#define | DRAGON_FIRE_EMBERS 512 | Embers in PARTICLES. |
#define | DRAGON_FIRE_BREATH 24 | Puffs of breath, state->particles 0 to 23. |
#define | DRAGON_FIRE_SPARKS 24 | Sparks, state->particles 40 to 63. |
#define | DRAGON_FIRE_FLAME_PICTURES 12288 | The flames a fireball burns with where it lands, in the sprite sheet. |
#define | DRAGON_FIRE_PUFF_PICTURES 6 | A puff of breath shows the flash burst's six pictures, four ticks each. |
#define | DRAGON_FIRE_PUFF_TICKS 4 | |
#define | DRAGON_FIRE_BURN_PICTURES 6 | A landed fireball's flame burns through its six pictures, two ticks each, over and over. |
#define | DRAGON_FIRE_BURN_TICKS 2 | |
#define | DRAGON_FIRE_SPARK_LIFE 48 | Ticks a spark flies. |
#define | DRAGON_FIRE_EMBER_LIFE 256 | Ticks an ember rises. |
#define | DRAGON_FIRE_FLASH_LEVEL 16 | The level the canvas is cleared to each tick of the flash, until its last two ticks turn it CANVAS_LEVEL_BRIGHTEST. |
#define | DRAGON_FIRE_HEADING 20000 | A spark's heading is a random one from DRAGON_FIRE_HEADING, about 110 degrees, to an eighth of a turn past it; a puff of breath's from about 110 degrees the other way. |
Enumerations
| Name | Description | |
|---|---|---|
enum | DRAGON_FIRE_MODE { DRAGON_FIRE_TIAMAT, DRAGON_FIRE_DRAGON_DRIVER } | Who breathes the dragon's fire (btEffectRunDragonFire). |
enum | TIAMAT_PIECE { TIAMAT_HEAD, TIAMAT_HORNS, TIAMAT_JAW, TIAMAT_THROAT } | Tiamat's pieces (state->sprites), each showing its own picture of the sprite sheet: piece n shows animation n. |
enum | TIAMAT_ANIMATION { TIAMAT_HEAD_BREATHING, TIAMAT_HORNS_BREATHING, TIAMAT_JAW_BR … } | The animations of Tiamat's pieces as it breathes fire, the fire-lit pictures of its open mouth. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunDragonDriver (BATTLE_EFFECT_PARM *args) | Fireballs rain on the targets and a blast of fire sweeps across them, in the LightningBolt colours. |
void | btEffectRunTiamat (BATTLE_EFFECT_PARM *args) | Tiamat lands while fireballs rain on the targets, breathes fire across them, and bursts away. |
void | btEffectRunDragonFire (BATTLE_EFFECT_PARM *args, Sint32 mode) | Fireballs rain on the targets and burn where they land while embers rise from the ground; then a blast of fire sweeps across them and the screen flares white. |
Description
The Tiamat summon and Dragon Driver. Part of battle_effect.c.
Macros in detail
DRAGON_FIRE_TICKS
#define DRAGON_FIRE_TICKS 208
Referenced by btEffectRunDragonFire().
Definition at line 32 of file battle_effect_tiamat.c.
DRAGON_FIRE_BREATH_TICK
#define DRAGON_FIRE_BREATH_TICK 128
The breath of fire, then the flash that ends it.
Referenced by btEffectRunDragonFire().
Definition at line 34 of file battle_effect_tiamat.c.
DRAGON_FIRE_FLASH_TICK
#define DRAGON_FIRE_FLASH_TICK 160
Referenced by btEffectRunDragonFire().
Definition at line 35 of file battle_effect_tiamat.c.
DRAGON_FIRE_FLASH_END_TICK
#define DRAGON_FIRE_FLASH_END_TICK 176
Referenced by btEffectRunDragonFire().
Definition at line 36 of file battle_effect_tiamat.c.
DRAGON_FIRE_TIAMAT_SPRITES
#define DRAGON_FIRE_TIAMAT_SPRITES 8
The sprites that draw Tiamat.
Referenced by btEffectRunDragonFire().
Definition at line 38 of file battle_effect_tiamat.c.
DRAGON_FIRE_FIREBALLS
#define DRAGON_FIRE_FIREBALLS 16
Falling fireballs.
Referenced by btEffectRunDragonFire().
Definition at line 40 of file battle_effect_tiamat.c.
DRAGON_FIRE_FIRST_FIREBALL
#define DRAGON_FIRE_FIRST_FIREBALL 24
The first in state->particles.
Referenced by btEffectRunDragonFire().
Definition at line 42 of file battle_effect_tiamat.c.
DRAGON_FIRE_FIRST_SPARK
#define DRAGON_FIRE_FIRST_SPARK 40
The first spark in state->particles.
Referenced by btEffectRunDragonFire().
Definition at line 44 of file battle_effect_tiamat.c.
DRAGON_FIRE_EMBERS
#define DRAGON_FIRE_EMBERS 512
Embers in PARTICLES.
Referenced by btEffectRunDragonFire().
Definition at line 46 of file battle_effect_tiamat.c.
DRAGON_FIRE_BREATH
#define DRAGON_FIRE_BREATH 24
Puffs of breath, state->particles 0 to 23.
Referenced by btEffectRunDragonFire().
Definition at line 48 of file battle_effect_tiamat.c.
DRAGON_FIRE_SPARKS
#define DRAGON_FIRE_SPARKS 24
Sparks, state->particles 40 to 63.
Referenced by btEffectRunDragonFire().
Definition at line 50 of file battle_effect_tiamat.c.
DRAGON_FIRE_FLAME_PICTURES
#define DRAGON_FIRE_FLAME_PICTURES 12288
The flames a fireball burns with where it lands, in the sprite sheet.
Referenced by btEffectRunDragonFire().
Definition at line 52 of file battle_effect_tiamat.c.
DRAGON_FIRE_PUFF_PICTURES
#define DRAGON_FIRE_PUFF_PICTURES 6
A puff of breath shows the flash burst's six pictures, four ticks each.
Referenced by btEffectRunDragonFire().
Definition at line 54 of file battle_effect_tiamat.c.
DRAGON_FIRE_PUFF_TICKS
#define DRAGON_FIRE_PUFF_TICKS 4
Referenced by btEffectRunDragonFire().
Definition at line 55 of file battle_effect_tiamat.c.
DRAGON_FIRE_BURN_PICTURES
#define DRAGON_FIRE_BURN_PICTURES 6
A landed fireball's flame burns through its six pictures, two ticks each, over and over.
Referenced by btEffectRunDragonFire().
Definition at line 58 of file battle_effect_tiamat.c.
DRAGON_FIRE_BURN_TICKS
#define DRAGON_FIRE_BURN_TICKS 2
Referenced by btEffectRunDragonFire().
Definition at line 59 of file battle_effect_tiamat.c.
DRAGON_FIRE_SPARK_LIFE
#define DRAGON_FIRE_SPARK_LIFE 48
Ticks a spark flies.
Referenced by btEffectRunDragonFire().
Definition at line 61 of file battle_effect_tiamat.c.
DRAGON_FIRE_EMBER_LIFE
#define DRAGON_FIRE_EMBER_LIFE 256
Ticks an ember rises.
Referenced by btEffectRunDragonFire().
Definition at line 63 of file battle_effect_tiamat.c.
DRAGON_FIRE_FLASH_LEVEL
#define DRAGON_FIRE_FLASH_LEVEL 16
The level the canvas is cleared to each tick of the flash, until its last two
ticks turn it CANVAS_LEVEL_BRIGHTEST.
Referenced by btEffectRunDragonFire().
Definition at line 66 of file battle_effect_tiamat.c.
DRAGON_FIRE_HEADING
#define DRAGON_FIRE_HEADING 20000
A spark's heading is a random one from DRAGON_FIRE_HEADING, about 110
degrees, to an eighth of a turn past it; a puff of breath's from about 110
degrees the other way.
Referenced by btEffectRunDragonFire().
Definition at line 70 of file battle_effect_tiamat.c.
Enumerations in detail
DRAGON_FIRE_MODE
enum DRAGON_FIRE_MODE
Who breathes the dragon's fire (btEffectRunDragonFire).
| Enumerator | Value | Description |
|---|---|---|
DRAGON_FIRE_TIAMAT | Tiamat lands beside the targets and breathes the fire, then bursts away (btEffectRunImpactBurst) | |
DRAGON_FIRE_DRAGON_DRIVER | no dragon is drawn: the breath starts just in front of the targets, in the LightningBolt colours |
Definition at line 4 of file battle_effect_tiamat.c.
TIAMAT_PIECE
enum TIAMAT_PIECE
Tiamat's pieces (state->sprites), each showing its own picture of the sprite sheet: piece n shows animation n. As it breathes, its head, horns, jaw and throat show the fire-lit pictures of its open mouth.
| Enumerator | Value | Description |
|---|---|---|
TIAMAT_HEAD | 0 | |
TIAMAT_HORNS | 1 | |
TIAMAT_JAW | 3 | |
TIAMAT_THROAT | 4 |
Definition at line 75 of file battle_effect_tiamat.c.
TIAMAT_ANIMATION
enum TIAMAT_ANIMATION
The animations of Tiamat's pieces as it breathes fire, the fire-lit pictures of its open mouth.
| Enumerator | Value | Description |
|---|---|---|
TIAMAT_HEAD_BREATHING | 8 | |
TIAMAT_HORNS_BREATHING | ||
TIAMAT_JAW_BREATHING | ||
TIAMAT_THROAT_BREATHING |
Definition at line 85 of file battle_effect_tiamat.c.
Functions in detail
btEffectRunDragonDriver
void btEffectRunDragonDriver(BATTLE_EFFECT_PARM *args)
Fireballs rain on the targets and a blast of fire sweeps across them, in the LightningBolt colours.
Abilities: Dragon Driver.
References btEffectRunDragonFire().
Referenced by BattleEffectHandlers.
Definition at line 18 of file battle_effect_tiamat.c.
btEffectRunTiamat
void btEffectRunTiamat(BATTLE_EFFECT_PARM *args)
Tiamat lands while fireballs rain on the targets, breathes fire across them, and bursts away.
Abilities: Tiamat.
References btEffectRunDragonFire().
Referenced by btEffectRunSummon().
Definition at line 27 of file battle_effect_tiamat.c.
btEffectRunDragonFire
void btEffectRunDragonFire(BATTLE_EFFECT_PARM *args, Sint32 mode)
Fireballs rain on the targets and burn where they land while embers rise from the ground; then a blast of fire sweeps across them and the screen flares white. Against a two-part enemy Tiamat is drawn at the formations' usual scale rather than its large one, and stands 8 pixels further right and lower, with its sparks and breath.
References BattleEffectMotePictures, btCameraShake(), btEffectBuildCanvasBlitters(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectPlaceFormationSprites(), btEffectPosProjectScaledBattler(), btEffectRunImpactBurst(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btObjectGetStub(), btPaletteBrightenBgEntries(), btResourceLoadAndDecompress(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerWork, Sint32, syCloseEvent(), syCos(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), sySynch(), TiamatEmberSizes, TiamatEmberSpeeds, TiamatEmberStreakBiasY, TiamatEmberStreakHeights, TiamatEmberStreakPictures, TiamatEmberStreakWidths and TiamatSparkPixels.
Referenced by btEffectRunDragonDriver() and btEffectRunTiamat().
Definition at line 98 of file battle_effect_tiamat.c.