src/battle_effect/battle_effect_dragon_cloud.c
Dragon Cloud. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | DRAGON_CLOUD_TICKS 150 | |
#define | DRAGON_CLOUD_STRIKE_TICK 83 | the flame strikes the first target |
#define | DRAGON_CLOUD_TRAIL_WIDTH 24 | The trail picture's size, in pixels |
#define | DRAGON_CLOUD_TRAIL_HEIGHT 39 | |
#define | DRAGON_CLOUD_TRAIL_PICTURE_BYTES PICTURE_BYTES(DRAGON_CLOUD_TRAIL) | Bytes in each trail copy. |
#define | DRAGON_CLOUD_FIRST_EMBER 8 | The first ember in state->particles. |
#define | DRAGON_CLOUD_FIRST_FLASH 48 | The first flash in state->particles. |
#define | DRAGON_CLOUD_FLAME_WIDTH 24 | FirePillarSheetB: five flames, then the trail picture. |
#define | DRAGON_CLOUD_FLAME_HEIGHT 48 | |
#define | DRAGON_CLOUD_TRAIL_PICTURE (5 * PICTURE_BYTES(DRAGON_CLOUD_FLAME)) | |
#define | DRAGON_CLOUD_PUFF_PICTURES 15360 | The puff pictures in the sprite sheet. |
#define | DRAGON_CLOUD_PUFFS 8 | Puffs, particles 0 to 7. |
#define | DRAGON_CLOUD_EMBERS 40 | Embers, from DRAGON_CLOUD_FIRST_EMBER. |
#define | DRAGON_CLOUD_FLASHES 16 | Flashes, from DRAGON_CLOUD_FIRST_FLASH. |
#define | DRAGON_CLOUD_TRAIL_LENGTH 20 | The trail's copies of the flame's path, the older ones from DRAGON_CLOUD_TRAIL_BRIGHT on drawn darker, four levels a copy. |
#define | DRAGON_CLOUD_TRAIL_BRIGHT 10 | |
#define | DRAGON_CLOUD_PUFF_RADIUS_X 24 | The puffs' arc: this many pixels across and down from its centre. |
#define | DRAGON_CLOUD_PUFF_RADIUS_Y 16 | |
#define | DRAGON_CLOUD_DRAWN_EMBERS 48 | The particles from DRAGON_CLOUD_FIRST_EMBER drawn as embers: the embers and the first eight flashes; the rest play the flash pictures. |
#define | DRAGON_CLOUD_EMBER_SIZE_MAX 9 | An ember is drawn at size DRAGON_CLOUD_EMBER_SIZE_MAX at MOTE_DEPTH_NEAR or nearer, one size smaller every MOTE_DEPTH_STEP farther. |
#define | DRAGON_CLOUD_ANIMATION_PICTURES 6 | The flash and puff animations: six pictures, two ticks each. |
#define | DRAGON_CLOUD_DRAW_PUFF (blit, canvas, sheet, picture, x, y) | Draws one puff picture sized by the puff tables. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunDragonCloud (BATTLE_EFFECT_PARM *args) | A flame leaves the user along a stored path with a fading trail behind it, strikes the first target and bursts into embers and flashes. |
Description
Dragon Cloud. Part of battle_effect.c.
Macros in detail
DRAGON_CLOUD_TICKS
#define DRAGON_CLOUD_TICKS 150
Referenced by btEffectRunDragonCloud().
Definition at line 3 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_STRIKE_TICK
#define DRAGON_CLOUD_STRIKE_TICK 83
the flame strikes the first target
Referenced by btEffectRunDragonCloud().
Definition at line 4 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_WIDTH
#define DRAGON_CLOUD_TRAIL_WIDTH 24
The trail picture's size, in pixels
Referenced by btEffectRunDragonCloud().
Definition at line 5 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_HEIGHT
#define DRAGON_CLOUD_TRAIL_HEIGHT 39
Referenced by btEffectRunDragonCloud().
Definition at line 6 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_PICTURE_BYTES
#define DRAGON_CLOUD_TRAIL_PICTURE_BYTES PICTURE_BYTES(DRAGON_CLOUD_TRAIL)
Bytes in each trail copy.
Referenced by btEffectRunDragonCloud().
Definition at line 9 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_FIRST_EMBER
#define DRAGON_CLOUD_FIRST_EMBER 8
The first ember in state->particles.
Referenced by btEffectRunDragonCloud().
Definition at line 11 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_FIRST_FLASH
#define DRAGON_CLOUD_FIRST_FLASH 48
The first flash in state->particles.
Referenced by btEffectRunDragonCloud().
Definition at line 13 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_FLAME_WIDTH
#define DRAGON_CLOUD_FLAME_WIDTH 24
FirePillarSheetB: five flames, then the trail picture.
Referenced by btEffectRunDragonCloud().
Definition at line 15 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_FLAME_HEIGHT
#define DRAGON_CLOUD_FLAME_HEIGHT 48
Referenced by btEffectRunDragonCloud().
Definition at line 16 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_PICTURE
#define DRAGON_CLOUD_TRAIL_PICTURE (5 * PICTURE_BYTES(DRAGON_CLOUD_FLAME))
Referenced by btEffectRunDragonCloud().
Definition at line 17 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_PUFF_PICTURES
#define DRAGON_CLOUD_PUFF_PICTURES 15360
The puff pictures in the sprite sheet.
Referenced by btEffectRunDragonCloud().
Definition at line 19 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_PUFFS
#define DRAGON_CLOUD_PUFFS 8
Puffs, particles 0 to 7.
Referenced by btEffectRunDragonCloud().
Definition at line 21 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_EMBERS
#define DRAGON_CLOUD_EMBERS 40
Embers, from DRAGON_CLOUD_FIRST_EMBER.
Referenced by btEffectRunDragonCloud().
Definition at line 23 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_FLASHES
#define DRAGON_CLOUD_FLASHES 16
Flashes, from DRAGON_CLOUD_FIRST_FLASH.
Referenced by btEffectRunDragonCloud().
Definition at line 25 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_LENGTH
#define DRAGON_CLOUD_TRAIL_LENGTH 20
The trail's copies of the flame's path, the older ones from
DRAGON_CLOUD_TRAIL_BRIGHT on drawn darker, four levels a copy.
Referenced by btEffectRunDragonCloud().
Definition at line 28 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_TRAIL_BRIGHT
#define DRAGON_CLOUD_TRAIL_BRIGHT 10
Referenced by btEffectRunDragonCloud().
Definition at line 29 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_PUFF_RADIUS_X
#define DRAGON_CLOUD_PUFF_RADIUS_X 24
The puffs' arc: this many pixels across and down from its centre.
Referenced by btEffectRunDragonCloud().
Definition at line 31 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_PUFF_RADIUS_Y
#define DRAGON_CLOUD_PUFF_RADIUS_Y 16
Referenced by btEffectRunDragonCloud().
Definition at line 32 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_DRAWN_EMBERS
#define DRAGON_CLOUD_DRAWN_EMBERS 48
The particles from DRAGON_CLOUD_FIRST_EMBER drawn as embers: the embers and
the first eight flashes; the rest play the flash pictures. The Lost Age keeps
the same count for Dragon Cloud (DragonCloudSparkCounts).
Referenced by btEffectRunDragonCloud().
Definition at line 36 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_EMBER_SIZE_MAX
#define DRAGON_CLOUD_EMBER_SIZE_MAX 9
An ember is drawn at size DRAGON_CLOUD_EMBER_SIZE_MAX at MOTE_DEPTH_NEAR or
nearer, one size smaller every MOTE_DEPTH_STEP farther.
Referenced by btEffectRunDragonCloud().
Definition at line 39 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_ANIMATION_PICTURES
#define DRAGON_CLOUD_ANIMATION_PICTURES 6
The flash and puff animations: six pictures, two ticks each.
Referenced by btEffectRunDragonCloud().
Definition at line 41 of file battle_effect_dragon_cloud.c.
DRAGON_CLOUD_DRAW_PUFF
#define DRAGON_CLOUD_DRAW_PUFF(blit, canvas, sheet, picture, x, y)
Draws one puff picture sized by the puff tables.
Referenced by btEffectRunDragonCloud().
Definition at line 44 of file battle_effect_dragon_cloud.c.
Functions in detail
btEffectRunDragonCloud
void btEffectRunDragonCloud(BATTLE_EFFECT_PARM *args)
A flame leaves the user along a stored path with a fading trail behind it, strikes the first target and bursts into embers and flashes.
Abilities: Dragon Cloud.

References BattleEffectPuffArcPictureBiasY, BattleEffectPuffArcPictureWidths, btCameraSetViewStub(), btCameraShake(), btEffectBuildCanvasBlitters(), btEffectStartCanvasLayer(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btProjectionPoint(), btResourceLoadAndDecompress(), Sint32, state, syCos(), syRandom(), syResourceGetTableEntry(), sySin() and sySoundPlayStub().
Referenced by BattleEffectHandlers.
Definition at line 57 of file battle_effect_dragon_cloud.c.