src/battle_effect/battle_effect_flurry.c
Gust, Flying Attack, the rush bursts and the claws: the flurry of strikes they all play. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | FLURRY_DEFINE_BY_VARIANT (name, basic, stronger, strongest) | Each plays the flurry mode basic, stronger or strongest as the effect's variant (EFFECT_VARIANT) says. |
#define | FLURRY_MOTE_COUNT 256 | The motes in PARTICLES, waiting above the target; the wave, smoke and orb pictures follow them in the map cell buffer. |
#define | FLURRY_STRIKE_MOTES 32 | Each strike's own run of the motes, of which it throws FlurryStyles' FLURRY_MOTES. |
#define | FLURRY_WAVE_PICTURES (RamMapMetatileBuffer + 9216) | The wave pictures, past the motes, where the effect's own pictures begin. |
#define | FLURRY_SMOKE_PICTURES 5000 | The smoke pictures, past the waves: an offset into the effect's pictures. |
#define | FLURRY_BLUE_ARC_PICTURES 3200 | Where BlueArcSheetA or BlueArcSheetB is decoded in the effect's pictures. |
#define | FLURRY_ORB_PICTURES 11912 | The yellow orb's pictures, packed to half width past the smoke: an offset into the effect's pictures. |
#define | FLURRY_FLASH_LEVEL 47 | The level the canvas fills with on each hit, where the style flashes. |
#define | FLURRY_SMOKE_PUFFS 16 | Vanish Claw's smoke: sixteen puffs, each through six pictures four ticks apart. |
#define | FLURRY_SMOKE_PICTURE_TICKS 4 | |
#define | FLURRY_SMOKE_TICKS (6 * FLURRY_SMOKE_PICTURE_TICKS) |
Enumerations
| Name | Description | |
|---|---|---|
enum | FLURRY_COLUMN { FLURRY_ARC_SHEET, FLURRY_PALETTE, FLURRY_STRIKES, FLURRY_MOT … } | The bytes of a FlurryStyles row, one row a mode. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunBearClaw (BATTLE_EFFECT_PARM *args) | The user strikes the first target five times. |
void | btEffectRunRansack (BATTLE_EFFECT_PARM *args) | Ransack plays the same five strikes as Bear Claw. |
void | btEffectRunBacteriaRush (BATTLE_EFFECT_PARM *args) | Seven strikes land on the first target in the lime palette. |
void | btEffectRunFreebiteRush (BATTLE_EFFECT_PARM *args) | Nine strikes land on the first target in the blue palette. |
void | btEffectRunUrFlash (BATTLE_EFFECT_PARM *args) | Three strikes land on the first target in the Mars Djinni's colours. |
void | btEffectRunClawAttack (BATTLE_EFFECT_PARM *args) | The user lunges further at the first target and strikes once, in the embers' colours. |
void | btEffectRunCrusherGrip (BATTLE_EFFECT_PARM *args) | One strike lands on the first target while glints flicker around it. |
void | btEffectRunVanishClaw (BATTLE_EFFECT_PARM *args) | One strike lands on the first target while the battle ripples and smoke rises from its feet. |
void | btEffectRunFlurry (BATTLE_EFFECT_PARM *args, Sint32 mode) | The user closes on the first target and strikes it again and again, each strike an arc or a wave with a flash and a spray of motes; the last knocks the target back. |
Description
Gust, Flying Attack, the rush bursts and the claws: the flurry of strikes
they all play. Part of battle_effect.c.
Macros in detail
FLURRY_DEFINE_BY_VARIANT
#define FLURRY_DEFINE_BY_VARIANT(name, basic, stronger, strongest)
Each plays the flurry mode basic, stronger or strongest as the effect's
variant (EFFECT_VARIANT) says.
Definition at line 6 of file battle_effect_flurry.c.
FLURRY_MOTE_COUNT
#define FLURRY_MOTE_COUNT 256
The motes in PARTICLES, waiting above the target; the wave, smoke and orb
pictures follow them in the map cell buffer.
Referenced by btEffectRunFlurry().
Definition at line 117 of file battle_effect_flurry.c.
FLURRY_STRIKE_MOTES
#define FLURRY_STRIKE_MOTES 32
Each strike's own run of the motes, of which it throws FlurryStyles'
FLURRY_MOTES.
Referenced by btEffectRunFlurry().
Definition at line 120 of file battle_effect_flurry.c.
FLURRY_WAVE_PICTURES
#define FLURRY_WAVE_PICTURES (RamMapMetatileBuffer + 9216)
The wave pictures, past the motes, where the effect's own pictures begin.
Referenced by btEffectRunFlurry().
Definition at line 122 of file battle_effect_flurry.c.
FLURRY_SMOKE_PICTURES
#define FLURRY_SMOKE_PICTURES 5000
The smoke pictures, past the waves: an offset into the effect's pictures.
Referenced by btEffectRunFlurry().
Definition at line 124 of file battle_effect_flurry.c.
FLURRY_BLUE_ARC_PICTURES
#define FLURRY_BLUE_ARC_PICTURES 3200
Where BlueArcSheetA or BlueArcSheetB is decoded in the effect's pictures.
Referenced by btEffectRunFlurry().
Definition at line 126 of file battle_effect_flurry.c.
FLURRY_ORB_PICTURES
#define FLURRY_ORB_PICTURES 11912
The yellow orb's pictures, packed to half width past the smoke: an offset into the effect's pictures.
Referenced by btEffectRunFlurry().
Definition at line 129 of file battle_effect_flurry.c.
FLURRY_FLASH_LEVEL
#define FLURRY_FLASH_LEVEL 47
The level the canvas fills with on each hit, where the style flashes.
Referenced by btEffectRunFlurry().
Definition at line 131 of file battle_effect_flurry.c.
FLURRY_SMOKE_PUFFS
#define FLURRY_SMOKE_PUFFS 16
Vanish Claw's smoke: sixteen puffs, each through six pictures four ticks apart.
Referenced by btEffectRunFlurry().
Definition at line 135 of file battle_effect_flurry.c.
FLURRY_SMOKE_PICTURE_TICKS
#define FLURRY_SMOKE_PICTURE_TICKS 4
Referenced by btEffectRunFlurry().
Definition at line 136 of file battle_effect_flurry.c.
FLURRY_SMOKE_TICKS
#define FLURRY_SMOKE_TICKS (6 * FLURRY_SMOKE_PICTURE_TICKS)
Referenced by btEffectRunFlurry().
Definition at line 137 of file battle_effect_flurry.c.
Enumerations in detail
FLURRY_COLUMN
enum FLURRY_COLUMN
The bytes of a FlurryStyles row, one row a mode.
| Enumerator | Value | Description |
|---|---|---|
FLURRY_ARC_SHEET | the arcs (FLURRY_ARC) | |
FLURRY_PALETTE | whose palette (FLURRY_PAL) | |
FLURRY_STRIKES | ||
FLURRY_MOTES | motes thrown by each strike, at most its run of FLURRY_STRIKE_MOTES | |
FLURRY_INTERVAL | ticks between strikes | |
FLURRY_TICKS | ticks in the whole effect | |
FLURRY_FLASH | 1 fills the canvas with FLURRY_FLASH_LEVEL on each hit | |
FLURRY_EXTRA | what else plays around the target (FLURRY_EXTRA_KIND) |
Definition at line 140 of file battle_effect_flurry.c.
Functions in detail
btEffectRunBearClaw
void btEffectRunBearClaw(BATTLE_EFFECT_PARM *args)
The user strikes the first target five times.
Abilities: Bear Claw; Counterstrike.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 35 of file battle_effect_flurry.c.
btEffectRunRansack
void btEffectRunRansack(BATTLE_EFFECT_PARM *args)
Ransack plays the same five strikes as Bear Claw.
Abilities: Ransack; Mad Dash.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 43 of file battle_effect_flurry.c.
btEffectRunBacteriaRush
void btEffectRunBacteriaRush(BATTLE_EFFECT_PARM *args)
Seven strikes land on the first target in the lime palette.
Abilities: Bacteria Rush.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 51 of file battle_effect_flurry.c.
btEffectRunFreebiteRush
void btEffectRunFreebiteRush(BATTLE_EFFECT_PARM *args)
Nine strikes land on the first target in the blue palette.
Abilities: Freebite Rush.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 59 of file battle_effect_flurry.c.
btEffectRunUrFlash
void btEffectRunUrFlash(BATTLE_EFFECT_PARM *args)
Three strikes land on the first target in the Mars Djinni's colours.
Abilities: Ur Flash.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 76 of file battle_effect_flurry.c.
btEffectRunClawAttack
void btEffectRunClawAttack(BATTLE_EFFECT_PARM *args)
The user lunges further at the first target and strikes once, in the embers' colours.
Abilities: Claw Attack.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 85 of file battle_effect_flurry.c.
btEffectRunCrusherGrip
void btEffectRunCrusherGrip(BATTLE_EFFECT_PARM *args)
One strike lands on the first target while glints flicker around it.
Abilities: Crusher Grip.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 93 of file battle_effect_flurry.c.
btEffectRunVanishClaw
void btEffectRunVanishClaw(BATTLE_EFFECT_PARM *args)
One strike lands on the first target while the battle ripples and smoke rises from its feet.
Abilities: Vanish Claw.
References btEffectRunFlurry().
Referenced by BattleEffectHandlers.
Definition at line 102 of file battle_effect_flurry.c.
btEffectRunFlurry
void btEffectRunFlurry(BATTLE_EFFECT_PARM *args, Sint32 mode)
The user closes on the first target and strikes it again and again, each strike an arc or a wave with a flash and a spray of motes; the last knocks the target back.
References BattleEffectGlintPictureHeights, BattleEffectGlintPictures, BattleEffectGlintPictureWidths, btCameraShake(), btEffectArmBg2AffineHBlankDMA(), btEffectEndCanvasLayer(), btEffectPosProjectPoint(), btEffectPosProjectScaledBattler(), btEffectRunDjinniEntrance(), btEffectStartCanvasLayer(), btEffectTintBattler(), btEffectTransferCanvas(), btMotionApplyKnockbackStub(), btMotionApproachTargetStub(), btObjectGetStub(), btParticleAdvanceWithGravity2D(), btParticleAdvanceWithGravity3D(), btResourceLoadAndDecompress(), FlurryGlintFlips, FlurryStyles, Sint32, syCloseEvent(), syCos(), syHeapSlotRelease(), syRandom(), syResourceGetTableEntry(), sySetEvent(), sySin(), sySoundPlayStub() and sySynch().
Referenced by btEffectRunBacteriaRush(), btEffectRunBearClaw(), btEffectRunClawAttack(), btEffectRunCrusherGrip(), btEffectRunFreebiteRush(), btEffectRunRansack(), btEffectRunUrFlash() and btEffectRunVanishClaw().
Definition at line 156 of file battle_effect_flurry.c.