src/battle_effect/battle_effect_mirrored_wall.c
The mirrored wall of Spasm, Berserk, Recovery and Sack. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | MIRRORED_WALL_TICKS 48 | ticks of the wall |
#define | MIRRORED_WALL_DRAW_TICKS 28 | ticks the wall's pictures are drawn |
#define | PICTURE_SLOT_SIZE 4096 | The wall's three 64x64 pictures, each a half wall and its mirror image, built at the start of the sprite sheet; EarthWallSheet decodes behind them, at PICTURE_OFFSET. |
#define | PICTURE_OFFSET 16384 | |
#define | EARTH_WALL_LOW 2702 | EarthWallSheet's three half walls of flame, each taller than the last (earth_wall_11.png, earth_wall_12.png and earth_wall_13.png): where each begins in the decoded sprite sheet, and its size. |
#define | EARTH_WALL_LOW_WIDTH 17 | |
#define | EARTH_WALL_LOW_HEIGHT 49 | |
#define | EARTH_WALL_MIDDLE 3535 | |
#define | EARTH_WALL_MIDDLE_WIDTH 19 | |
#define | EARTH_WALL_MIDDLE_HEIGHT 55 | |
#define | EARTH_WALL_HIGH 4580 | |
#define | EARTH_WALL_HIGH_WIDTH 20 | |
#define | EARTH_WALL_HIGH_HEIGHT 64 | |
#define | MIRROR_HALF (picture, half) | Copies half wall half into the bottom middle of a 64x64 picture, once as it is and once mirrored, so the picture is a whole wall. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunSpasm (BATTLE_EFFECT_PARM *args) | Abilities: Spasm. |
void | btEffectRunBerserk (BATTLE_EFFECT_PARM *args) | Abilities: Berserk. |
void | btEffectRunRecovery (BATTLE_EFFECT_PARM *args) | Abilities: Recovery. |
void | btEffectRunSack (BATTLE_EFFECT_PARM *args) | Abilities: Sack. |
void | btEffectRunMirroredWall (BATTLE_EFFECT_PARM *args, Sint32 mode) | Raises a mirrored wall at the first target's feet while the target glows. |
Description
The mirrored wall of Spasm, Berserk, Recovery and Sack. Part of
battle_effect.c.
Macros in detail
MIRRORED_WALL_TICKS
#define MIRRORED_WALL_TICKS 48
ticks of the wall
Referenced by btEffectRunMirroredWall().
Definition at line 28 of file battle_effect_mirrored_wall.c.
MIRRORED_WALL_DRAW_TICKS
#define MIRRORED_WALL_DRAW_TICKS 28
ticks the wall's pictures are drawn
Referenced by btEffectRunMirroredWall().
Definition at line 29 of file battle_effect_mirrored_wall.c.
PICTURE_SLOT_SIZE
#define PICTURE_SLOT_SIZE 4096
The wall's three 64x64 pictures, each a half wall and its mirror image, built
at the start of the sprite sheet; EarthWallSheet decodes behind them, at
PICTURE_OFFSET.
Referenced by btEffectRunMirroredWall().
Definition at line 34 of file battle_effect_mirrored_wall.c.
PICTURE_OFFSET
#define PICTURE_OFFSET 16384
Referenced by btEffectRunMirroredWall().
Definition at line 35 of file battle_effect_mirrored_wall.c.
EARTH_WALL_LOW
#define EARTH_WALL_LOW 2702
EarthWallSheet's three half walls of flame, each taller than the last
(earth_wall_11.png, earth_wall_12.png and earth_wall_13.png): where each
begins in the decoded sprite sheet, and its size. The Broken Seal's mirrored
wall draws the same three pictures.
Referenced by btEffectRunMirroredWall().
Definition at line 41 of file battle_effect_mirrored_wall.c.
EARTH_WALL_LOW_WIDTH
#define EARTH_WALL_LOW_WIDTH 17
Definition at line 42 of file battle_effect_mirrored_wall.c.
EARTH_WALL_LOW_HEIGHT
#define EARTH_WALL_LOW_HEIGHT 49
Definition at line 43 of file battle_effect_mirrored_wall.c.
EARTH_WALL_MIDDLE
#define EARTH_WALL_MIDDLE 3535
Referenced by btEffectRunMirroredWall().
Definition at line 44 of file battle_effect_mirrored_wall.c.
EARTH_WALL_MIDDLE_WIDTH
#define EARTH_WALL_MIDDLE_WIDTH 19
Definition at line 45 of file battle_effect_mirrored_wall.c.
EARTH_WALL_MIDDLE_HEIGHT
#define EARTH_WALL_MIDDLE_HEIGHT 55
Definition at line 46 of file battle_effect_mirrored_wall.c.
EARTH_WALL_HIGH
#define EARTH_WALL_HIGH 4580
Referenced by btEffectRunMirroredWall().
Definition at line 47 of file battle_effect_mirrored_wall.c.
EARTH_WALL_HIGH_WIDTH
#define EARTH_WALL_HIGH_WIDTH 20
Definition at line 48 of file battle_effect_mirrored_wall.c.
EARTH_WALL_HIGH_HEIGHT
#define EARTH_WALL_HIGH_HEIGHT 64
Definition at line 49 of file battle_effect_mirrored_wall.c.
MIRROR_HALF
#define MIRROR_HALF(picture, half)
Copies half wall half into the bottom middle of a 64x64 picture, once as it
is and once mirrored, so the picture is a whole wall.
Referenced by btEffectRunMirroredWall().
Definition at line 53 of file battle_effect_mirrored_wall.c.
Functions in detail
btEffectRunSpasm
void btEffectRunSpasm(BATTLE_EFFECT_PARM *args)
Abilities: Spasm.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 5 of file battle_effect_mirrored_wall.c.
btEffectRunBerserk
void btEffectRunBerserk(BATTLE_EFFECT_PARM *args)
Abilities: Berserk.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 11 of file battle_effect_mirrored_wall.c.
btEffectRunRecovery
void btEffectRunRecovery(BATTLE_EFFECT_PARM *args)
Abilities: Recovery.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 17 of file battle_effect_mirrored_wall.c.
btEffectRunSack
void btEffectRunSack(BATTLE_EFFECT_PARM *args)
Abilities: Sack.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 23 of file battle_effect_mirrored_wall.c.
btEffectRunMirroredWall
void btEffectRunMirroredWall(BATTLE_EFFECT_PARM *args, Sint32 mode)
Raises a mirrored wall at the first target's feet while the target glows.
References BattleEffectSquareMesh, BattleEffectStandingSquareCorners, btCameraShake(), btEffectEndCanvasLayer(), btEffectPosProjectBattler(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btRenderAllocateModelList(), btRenderDrawModelList(), btRenderTransformVertices(), btResourceLoadAndDecompress(), MirroredWallScales, MirroredWallShades, Sint32, syCloseEvent(), syHeapAllocateEWRAM(), syHeapRelease(), syHeapSlotRelease(), syInitMatrix(), syMatrixScaleUniform(), syResourceGetTableEntry(), sySetEvent(), sySoundPlayStub(), syTranslate(), syWordsClear() and syWordsCopy().
Referenced by btEffectRunBerserk(), btEffectRunRecovery(), btEffectRunSack() and btEffectRunSpasm().
Definition at line 70 of file battle_effect_mirrored_wall.c.