src/battle_effect/battle_effect_spider_web.c
Poison Beat, Spinning Beat, the swirl swipe and Spider Web. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | SPIDER_WEB_TICKS 63 | |
#define | SPIDER_WEB_QUARTER_SIZE 32 | SpiderWebSheet's quarter of the web, a square drawn four times mirrored. |
#define | LOAD_QUARTER (flags) | Builds the transparent blitter for one quarter. |
#define | DRAW_QUARTER (x, y) | Draws one quarter of the web with the blitter just built. |
Enumerations
| Name | Description | |
|---|---|---|
enum | SWIRL_SWIPE_MODE { SWIRL_SWIPE_POISON_BEAT, SWIRL_SWIPE_SPINNING_BEAT } | The swirl swipe's modes (btEffectRunSwirlSwipe), each named for the effect that plays it. |
Functions
| Name | Description | |
|---|---|---|
void | btEffectRunPoisonBeat (BATTLE_EFFECT_PARM *args) | A lime swirl sweeps across the first target and knocks it back. |
void | btEffectRunSpinningBeat (BATTLE_EFFECT_PARM *args) | A magenta swirl sweeps across the first target and throws it into the air. |
void | btEffectRunSwirlSwipe (BATTLE_EFFECT_PARM *args, Sint32 mode) | A swirl sweeps across the first target from the user's side. |
void | btEffectRunSpiderWeb (BATTLE_EFFECT_PARM *args) | A spider web spreads over the targets in four mirrored quarters, fades, and Impair's effect follows. |
Description
Poison Beat, Spinning Beat, the swirl swipe and Spider Web. Part of
battle_effect.c.
Macros in detail
SPIDER_WEB_TICKS
#define SPIDER_WEB_TICKS 63
Referenced by btEffectRunSpiderWeb().
Definition at line 142 of file battle_effect_spider_web.c.
SPIDER_WEB_QUARTER_SIZE
#define SPIDER_WEB_QUARTER_SIZE 32
SpiderWebSheet's quarter of the web, a square drawn four times mirrored.
Referenced by btEffectRunSpiderWeb().
Definition at line 144 of file battle_effect_spider_web.c.
LOAD_QUARTER
#define LOAD_QUARTER(flags)
Builds the transparent blitter for one quarter.
Referenced by btEffectRunSpiderWeb().
Definition at line 147 of file battle_effect_spider_web.c.
DRAW_QUARTER
#define DRAW_QUARTER(x, y)
Draws one quarter of the web with the blitter just built.
Referenced by btEffectRunSpiderWeb().
Definition at line 151 of file battle_effect_spider_web.c.
Enumerations in detail
SWIRL_SWIPE_MODE
enum SWIRL_SWIPE_MODE
The swirl swipe's modes (btEffectRunSwirlSwipe), each named for the effect
that plays it.
| Enumerator | Value | Description |
|---|---|---|
SWIRL_SWIPE_POISON_BEAT | lime; the target recoils at once, 48 ticks | |
SWIRL_SWIPE_SPINNING_BEAT | magenta; the target is thrown up, 74 ticks |
Definition at line 6 of file battle_effect_spider_web.c.
Functions in detail
btEffectRunPoisonBeat
void btEffectRunPoisonBeat(BATTLE_EFFECT_PARM *args)
A lime swirl sweeps across the first target and knocks it back.
Abilities: Poison Beat.
References btEffectRunSwirlSwipe().
Referenced by BattleEffectHandlers.
Definition at line 15 of file battle_effect_spider_web.c.
btEffectRunSpinningBeat
void btEffectRunSpinningBeat(BATTLE_EFFECT_PARM *args)
A magenta swirl sweeps across the first target and throws it into the air.
Abilities: Spinning Beat.
References btEffectRunSwirlSwipe().
Referenced by BattleEffectHandlers.
Definition at line 23 of file battle_effect_spider_web.c.
btEffectRunSwirlSwipe
void btEffectRunSwirlSwipe(BATTLE_EFFECT_PARM *args, Sint32 mode)
A swirl sweeps across the first target from the user's side.
References btCameraShake(), btEffectPosProjectScaledBattler(), btEffectTintBattler(), btMotionApplyKnockbackStub(), btObjectGetStub(), btResourceLoadAndDecompress(), Sint32, SwirlSwipePictureBiasY, SwirlSwipePictureHeights, SwirlSwipePictures, SwirlSwipePictureWidths, SwirlSwipePictureX and sySoundPlayStub().
Referenced by btEffectRunPoisonBeat() and btEffectRunSpinningBeat().
Definition at line 29 of file battle_effect_spider_web.c.
btEffectRunSpiderWeb
void btEffectRunSpiderWeb(BATTLE_EFFECT_PARM *args)
A spider web spreads over the targets in four mirrored quarters, fades, and Impair's effect follows.
Abilities: Spider Web.
References btEffectDarkenBackgroundStep(), btEffectGetTargetsMidpoint(), btEffectRunImpair(), btEffectTintBattler(), btEffectTransferCanvas(), btResourceLoadAndDecompress(), Sint32, syCloseEvent(), syHeapSlotRelease(), sySoundPlayStub() and syWordsClear().
Referenced by BattleEffectHandlers.
Definition at line 158 of file battle_effect_spider_web.c.