src/battle_effect/battle_effect_tiamat.c
Dragon Driver and the Tiamat summon. 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_FIREBALLS 16 | Falling fireballs. |
#define | DRAGON_FIRE_FIRST_FIREBALL 24 | The first fireball 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_FIREBALL_SIZE 10 | A falling fireball is the largest mote. |
#define | TIAMAT_SPRITES 8 | The sprites Tiamat is drawn from. |
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 fire-lit pictures the pieces show as Tiamat breathes, by animation. |
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
Dragon Driver and the Tiamat summon. 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_FIREBALLS
#define DRAGON_FIRE_FIREBALLS 16
Falling fireballs.
Referenced by btEffectRunDragonFire().
Definition at line 38 of file battle_effect_tiamat.c.
DRAGON_FIRE_FIRST_FIREBALL
#define DRAGON_FIRE_FIRST_FIREBALL 24
The first fireball in state->particles.
Referenced by btEffectRunDragonFire().
Definition at line 40 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 42 of file battle_effect_tiamat.c.
DRAGON_FIRE_EMBERS
#define DRAGON_FIRE_EMBERS 512
Embers in PARTICLES.
Referenced by btEffectRunDragonFire().
Definition at line 44 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 46 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 48 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 50 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 52 of file battle_effect_tiamat.c.
DRAGON_FIRE_PUFF_TICKS
#define DRAGON_FIRE_PUFF_TICKS 4
Referenced by btEffectRunDragonFire().
Definition at line 53 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 56 of file battle_effect_tiamat.c.
DRAGON_FIRE_BURN_TICKS
#define DRAGON_FIRE_BURN_TICKS 2
Referenced by btEffectRunDragonFire().
Definition at line 57 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 59 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 61 of file battle_effect_tiamat.c.
DRAGON_FIRE_FIREBALL_SIZE
#define DRAGON_FIRE_FIREBALL_SIZE 10
A falling fireball is the largest mote.
Referenced by btEffectRunDragonFire().
Definition at line 63 of file battle_effect_tiamat.c.
TIAMAT_SPRITES
#define TIAMAT_SPRITES 8
The sprites Tiamat is drawn from.
Referenced by btEffectRunDragonFire().
Definition at line 65 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 70 of file battle_effect_tiamat.c.
TIAMAT_ANIMATION
enum TIAMAT_ANIMATION
The fire-lit pictures the pieces show as Tiamat breathes, by animation.
| Enumerator | Value | Description |
|---|---|---|
TIAMAT_HEAD_BREATHING | 8 | |
TIAMAT_HORNS_BREATHING | ||
TIAMAT_JAW_BREATHING | ||
TIAMAT_THROAT_BREATHING |
Definition at line 79 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, the Fusion Dragon's.
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.
References BattleEffectMotePictures, btCameraShake(), btEffectCreateSprites(), btEffectEndCanvasLayer(), btEffectPlaceFormationSprites(), btEffectRunImpactBurst(), btEffectShowLivingTargets(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btPaletteBrightenBgEntries(), btProjectionScaledUnit(), fdSpriteDestroyStub(), fdSpriteStartAnimationStub(), PerRepeat, Sint32, state, syCloseEvent(), syCos(), syDecompressTaggedLZ(), syRandom(), syResourceGetTableEntry(), sySin(), sySoundPlayStub(), sySynch(), syWordsCopy(), TiamatEmberSizes, TiamatEmberSpeeds, TiamatFlameDrops, TiamatFlameHeights, TiamatFlamePictures, TiamatFlameWidths and TiamatSparkPixels.
Referenced by btEffectRunDragonDriver() and btEffectRunTiamat().
Definition at line 90 of file battle_effect_tiamat.c.