src/battle_effect/battle_effect_quake.c
Quake. More…
Included by battle_effect.c.
Structures
| Name | Description | |
|---|---|---|
struct | ROCK_WALL_HEIGHTS | The peak heights of Quake's rock pillars; only the first three are drawn. |
Macros
| Name | Description | |
|---|---|---|
#define | QUAKE_PILLAR_WIDTH 40 | a pillar's width in pixels |
#define | QUAKE_WALL_PICTURE 7680 | The rock picture in the sprite sheet; the sprite sheet starts with the 40x16 strip of ground cut from the background. |
#define | QUAKE_GROUND_X 32 | The strip of ground that caps each pillar, cut from the battle background at (QUAKE_GROUND_X, QUAKE_GROUND_Y). |
#define | QUAKE_GROUND_Y 96 | |
#define | QUAKE_GROUND_HEIGHT 16 | |
#define | QUAKE_PILLAR_X (pillar) ((pillar) * QUAKE_PILLAR_WIDTH + 8) | A pillar's left edge on the canvas, and the canvas row it stands on. |
#define | QUAKE_PILLAR_FOOT 112 |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { QUAKE_TIMING_TICKS, QUAKE_TIMING_RISE_TICKS, QUAKE_TIMING_SH … } | The columns of a QuakeTimings row. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunQuake (BATTLE_EFFECT_PARM *args) | Three rock pillars rise from the left, 4 ticks apart, and sink again, throwing the targets standing on them into the air. |
Description
Quake. Part of battle_effect.c.
Macros in detail
QUAKE_PILLAR_WIDTH
#define QUAKE_PILLAR_WIDTH 40
a pillar's width in pixels
Referenced by btEffectRunQuake().
Definition at line 18 of file battle_effect_quake.c.
QUAKE_WALL_PICTURE
#define QUAKE_WALL_PICTURE 7680
The rock picture in the sprite sheet; the sprite sheet starts with the 40x16 strip of ground cut from the background.
Referenced by btEffectRunQuake().
Definition at line 21 of file battle_effect_quake.c.
QUAKE_GROUND_X
#define QUAKE_GROUND_X 32
The strip of ground that caps each pillar, cut from the battle background at
(QUAKE_GROUND_X, QUAKE_GROUND_Y).
Referenced by btEffectRunQuake().
Definition at line 24 of file battle_effect_quake.c.
QUAKE_GROUND_Y
#define QUAKE_GROUND_Y 96
Referenced by btEffectRunQuake().
Definition at line 25 of file battle_effect_quake.c.
QUAKE_GROUND_HEIGHT
#define QUAKE_GROUND_HEIGHT 16
Referenced by btEffectRunQuake().
Definition at line 26 of file battle_effect_quake.c.
QUAKE_PILLAR_X
#define QUAKE_PILLAR_X(pillar) ((pillar) * QUAKE_PILLAR_WIDTH + 8)
A pillar's left edge on the canvas, and the canvas row it stands on.
Referenced by btEffectRunQuake().
Definition at line 28 of file battle_effect_quake.c.
QUAKE_PILLAR_FOOT
#define QUAKE_PILLAR_FOOT 112
Referenced by btEffectRunQuake().
Definition at line 29 of file battle_effect_quake.c.
Enumerations in detail
anonymous enum
enum { QUAKE_TIMING_TICKS, QUAKE_TIMING_RISE_TICKS, QUAKE_TIMING_SHAKE }
The columns of a QuakeTimings row.
| Enumerator | Value | Description |
|---|---|---|
QUAKE_TIMING_TICKS | ticks in the whole effect | |
QUAKE_TIMING_RISE_TICKS | ticks each pillar stands | |
QUAKE_TIMING_SHAKE | how far the screen shakes |
Definition at line 4 of file battle_effect_quake.c.
Functions in detail
btEffectRunQuake
void btEffectRunQuake(BATTLE_EFFECT_PARM *args)
Three rock pillars rise from the left, 4 ticks apart, and sink again, throwing the targets standing on them into the air.
Abilities: Quake, Earthquake, Quake Sphere.



References btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btObjectGetStub(), btProjectionPoint(), btResourceLoadAndDecompress(), pixel, QuakeTimings, Sint32, state, sySin(), sySoundPlayStub() and syWordsCopy().
Referenced by BattleEffectHandlers.
Definition at line 35 of file battle_effect_quake.c.