src/battle_effect/battle_effect_thrash.c
Thrash, Quick Strike and Vorpal Slash. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLASHING_STRIKE_TICKS 21 | The flashing strike's ticks, from the user's arrival: four pictures flash four ticks each, then the canvas floods at its brightest for four ticks, the damage shows and the target is hurled. |
#define | FLASHING_STRIKE_FLOOD_TICK 16 | |
#define | FLASHING_STRIKE_DAMAGE_TICK 18 | |
#define | FLASHING_STRIKE_HIT_TICK 20 | |
#define | FLASHING_STRIKE_PICTURE_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE) | One 120x120 picture of a flashing strike. |
Enumerations
| Name | Description | |
|---|---|---|
enum | FLASHING_STRIKE_MODE { FLASHING_STRIKE_UNUSED, FLASHING_STRIKE_QUICK_STRIKE, FLASHI … } | The flashing strike's modes (btEffectRunFlashingStrike): which two pictures it shows. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunThrash (BATTLE_EFFECT_PARM *args) | The user leaps high at the first target, then sparks burst beneath it. |
void | btEffectRunUnusedSevereBlowLeap (BATTLE_EFFECT_PARM *args) | Unused: no row of AbilityBattleEffects names its kind. |
void | btEffectRunQuickStrike (BATTLE_EFFECT_PARM *args) | The user leaps at the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunVorpalSlash (BATTLE_EFFECT_PARM *args) | The user steps up to the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck. |
void | btEffectRunFlashingStrike (BATTLE_EFFECT_PARM *args, Sint32 mode) | Plays a flashing strike; nothing passes FLASHING_STRIKE_UNUSED. |
Description
Thrash, Quick Strike and Vorpal Slash. Part of battle_effect.c.
Macros in detail
FLASHING_STRIKE_TICKS
#define FLASHING_STRIKE_TICKS 21
The flashing strike's ticks, from the user's arrival: four pictures flash four ticks each, then the canvas floods at its brightest for four ticks, the damage shows and the target is hurled.
Referenced by btEffectRunFlashingStrike().
Definition at line 6 of file battle_effect_thrash.c.
FLASHING_STRIKE_FLOOD_TICK
#define FLASHING_STRIKE_FLOOD_TICK 16
Referenced by btEffectRunFlashingStrike().
Definition at line 7 of file battle_effect_thrash.c.
FLASHING_STRIKE_DAMAGE_TICK
#define FLASHING_STRIKE_DAMAGE_TICK 18
Referenced by btEffectRunFlashingStrike().
Definition at line 8 of file battle_effect_thrash.c.
FLASHING_STRIKE_HIT_TICK
#define FLASHING_STRIKE_HIT_TICK 20
Referenced by btEffectRunFlashingStrike().
Definition at line 9 of file battle_effect_thrash.c.
FLASHING_STRIKE_PICTURE_BYTES
#define FLASHING_STRIKE_PICTURE_BYTES (SLASH_PICTURE_SIZE * SLASH_PICTURE_SIZE)
One 120x120 picture of a flashing strike.
Referenced by btEffectRunFlashingStrike().
Definition at line 12 of file battle_effect_thrash.c.
Enumerations in detail
FLASHING_STRIKE_MODE
enum FLASHING_STRIKE_MODE
The flashing strike's modes (btEffectRunFlashingStrike): which two pictures
it shows.
| Enumerator | Value | Description |
|---|---|---|
FLASHING_STRIKE_UNUSED | UnusedFlashingStrikeImageA and B; nothing passes it | |
FLASHING_STRIKE_QUICK_STRIKE | QuickStrikeImageA and B, with a hop | |
FLASHING_STRIKE_VORPAL_SLASH | VorpalSlashImageA and B |
Definition at line 16 of file battle_effect_thrash.c.
Functions in detail
btEffectRunThrash
void btEffectRunThrash(BATTLE_EFFECT_PARM *args)
The user leaps high at the first target, then sparks burst beneath it.
Abilities: Thrash.
References btEffectRunSparkGroups(), btMotionApproachTargetStub() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 27 of file battle_effect_thrash.c.
btEffectRunUnusedSevereBlowLeap
void btEffectRunUnusedSevereBlowLeap(BATTLE_EFFECT_PARM *args)
Unused: no row of AbilityBattleEffects names its kind. The user would leap at
the first target, then sparks would burst beneath it and the canvas flash; it
is Severe Blow's effect in The Lost Age.
References btEffectRunSparkGroups(), btMotionApproachTargetStub() and sySynch().
Referenced by BattleEffectHandlers.
Definition at line 39 of file battle_effect_thrash.c.
btEffectRunQuickStrike
void btEffectRunQuickStrike(BATTLE_EFFECT_PARM *args)
The user leaps at the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck.
Abilities: Quick Strike.

References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 52 of file battle_effect_thrash.c.
btEffectRunVorpalSlash
void btEffectRunVorpalSlash(BATTLE_EFFECT_PARM *args)
The user steps up to the first target, four pictures flash across the effect layer, then it fills with one colour as the target is struck.
Abilities: Vorpal Slash.
References btEffectRunFlashingStrike().
Referenced by BattleEffectHandlers.
Definition at line 61 of file battle_effect_thrash.c.
btEffectRunFlashingStrike
void btEffectRunFlashingStrike(BATTLE_EFFECT_PARM *args, Sint32 mode)
Plays a flashing strike; nothing passes FLASHING_STRIKE_UNUSED.
References btCameraShake(), btEffectEndCanvasLayer(), btEffectStartCanvasLayer(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btResourceLoadAndDecompress(), Sint32, state, syCloseEvent(), syHeapSlotRelease(), sySoundPlayStub(), sySynch() and syWordsFill().
Referenced by btEffectRunQuickStrike() and btEffectRunVorpalSlash().
Definition at line 67 of file battle_effect_thrash.c.