src/battle_effect/battle_effect_mirrored_wall.c
The walls of Berserk, Spasm and Recovery. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | MIRRORED_WALL_TICKS 48 | ticks of the wall |
Enumerations
| Name | Description | |
|---|---|---|
enum | MIRRORED_WALL_MODE { MIRRORED_WALL_SPASM, MIRRORED_WALL_BERSERK, MIRRORED_WALL_RE … } | The mirrored wall's modes (btEffectRunMirroredWall), each named for the effect that plays it. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectBuildCanvasBlitters (Sint32 flip, BLITTER_PAIR out) | Builds the two usual canvas blitters, the lightening one and the additive one, both drawing mirrored when flip is nonzero. |
void | btEffectRunBerserk (BATTLE_EFFECT_PARM *args) | The wall rises wide and shakes the screen hard. |
void | btEffectRunSpasm (BATTLE_EFFECT_PARM *args) | The wall rises with a long gentle shake and the recovery sound. |
void | btEffectRunRecovery (BATTLE_EFFECT_PARM *args) | A wide wall of fire rises without shaking the screen. |
void | btEffectRunMirroredWall (BATTLE_EFFECT_PARM *args, Sint32 mode) | Raises a mirrored wall at the first target's feet while the target glows. |
Description
The walls of Berserk, Spasm and Recovery. 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 3 of file battle_effect_mirrored_wall.c.
Enumerations in detail
MIRRORED_WALL_MODE
enum MIRRORED_WALL_MODE
The mirrored wall's modes (btEffectRunMirroredWall), each named for the
effect that plays it.
| Enumerator | Value | Description |
|---|---|---|
MIRRORED_WALL_SPASM | actual size, a gentle shake for 32 ticks | |
MIRRORED_WALL_BERSERK | 1.25 times as wide, a hard shake for 8 ticks | |
MIRRORED_WALL_RECOVERY | 1.25 times as wide, no shake, in the Fireball colours |
Definition at line 7 of file battle_effect_mirrored_wall.c.
Functions in detail
btEffectBuildCanvasBlitters
void btEffectBuildCanvasBlitters(Sint32 flip, BLITTER_PAIR out)
Builds the two usual canvas blitters, the lightening one and the additive one, both drawing mirrored when flip is nonzero.
References Sint32.
Referenced by btEffectRunAnnihilation(), btEffectRunBind(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDragonCloud(), btEffectRunFrost(), btEffectRunGatheringLights(), btEffectRunHail(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunJupiter(), btEffectRunMars(), btEffectRunMercury(), btEffectRunNereid(), btEffectRunPrism(), btEffectRunRagnarok(), btEffectRunStatReduction(), btEffectRunSwirlingStars(), btEffectRunTorch() and btEffectRunUndeadSword().
Definition at line 17 of file battle_effect_mirrored_wall.c.
btEffectRunBerserk
void btEffectRunBerserk(BATTLE_EFFECT_PARM *args)
The wall rises wide and shakes the screen hard.
Abilities: Berserk.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 44 of file battle_effect_mirrored_wall.c.
btEffectRunSpasm
void btEffectRunSpasm(BATTLE_EFFECT_PARM *args)
The wall rises with a long gentle shake and the recovery sound.
Abilities: Spasm.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 52 of file battle_effect_mirrored_wall.c.
btEffectRunRecovery
void btEffectRunRecovery(BATTLE_EFFECT_PARM *args)
A wide wall of fire rises without shaking the screen.
Abilities: Recovery.
References btEffectRunMirroredWall().
Referenced by BattleEffectHandlers.
Definition at line 60 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 btCameraShake(), btEffectStartCanvasLayer(), btEffectTintBattler(), btProjectionUnit(), MirroredWallPictureHeights, MirroredWallPictures, MirroredWallPictureWidths, Sint32, state, syDecompressTaggedLZ(), syResourceGetTableEntry(), sySoundPlayStub() and syWordsCopy().
Referenced by btEffectRunBerserk(), btEffectRunRecovery() and btEffectRunSpasm().
Definition at line 66 of file battle_effect_mirrored_wall.c.