src/battle_effect/battle_effect_dispatch.c
Running summon and table effects, and shared target helpers. More…
Included by battle_effect.c.
Functions
| Name | Description | |
|---|---|---|
void | btEffectCallNoOperation (Sint32 count) | Calls the empty btEffectNoOperation count times: a busy delay. |
void | btEffectRunSummon (BATTLE_EFFECT_PARM *args) | Runs one of the large battle effects, the summons and the scenes of a few abilities: takes the effect's sprite sheet, state and canvas, runs the effect of args->kind (SUMMON_EFFECT_ID) and frees them again. |
void | btEffectRunFromTable (BATTLE_EFFECT_PARM *args) | Runs an ordinary battle effect from BattleEffectHandlers, with the sprite sheet, state and canvas it lends. |
void | btEffectBuildWindowEdgeTable (void) | Builds window 0's right edge for every line and restarts the DMA that writes it. |
void | btEffectShowLivingTargets (BATTLE_EFFECT_PARM *args) | Shows the battle objects of every target with HP left. |
void | btEffectSetupBlendedDisplay (void) | Shows the battle background, as dark as the canvas's fade left it, behind a cleared canvas, and fades out the action's sound effects. |
void | btEffectTintBattler (Sint32 unitId, Sint32 palette, Sint32 animation, Sint32 timerSlot, Sint32 timerTicks) | Tints one unit's battle object and sets its pose, for every sprite it is made of, and starts that unit's flash timer. |
Description
Running summon and table effects, and shared target helpers. Part of
battle_effect.c.
Functions in detail
btEffectCallNoOperation
void btEffectCallNoOperation(Sint32 count)
Calls the empty btEffectNoOperation count times: a busy delay.
References btEffectNoOperation() and Sint32.
Referenced by btEffectRunAnnihilation().
Definition at line 5 of file battle_effect_dispatch.c.
btEffectRunSummon
void btEffectRunSummon(BATTLE_EFFECT_PARM *args)
Runs one of the large battle effects, the summons and the scenes of a few
abilities: takes the effect's sprite sheet, state and canvas, runs the effect
of args->kind (SUMMON_EFFECT_ID) and frees them again.
References btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunHaures(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMegaera(), btEffectRunMeteor(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunThor(), btEffectRunTiamat(), btEffectRunTrident(), btEffectRunUlysses(), btEffectRunZagan(), syHeapSlotAllocate() and syHeapSlotRelease().
Definition at line 16 of file battle_effect_dispatch.c.
btEffectRunFromTable
void btEffectRunFromTable(BATTLE_EFFECT_PARM *args)
Runs an ordinary battle effect from BattleEffectHandlers, with the sprite
sheet, state and canvas it lends.
References BattleEffectHandlers, syHeapSlotAllocate() and syHeapSlotRelease().
Definition at line 74 of file battle_effect_dispatch.c.
btEffectBuildWindowEdgeTable
void btEffectBuildWindowEdgeTable(void)
Builds window 0's right edge for every line and restarts the DMA that writes it.
References Sint32 and syDMAXCopy().
Referenced by btEffectRunBoreas() and btEffectRunNeptune().
Definition at line 92 of file battle_effect_dispatch.c.
btEffectShowLivingTargets
void btEffectShowLivingTargets(BATTLE_EFFECT_PARM *args)
Shows the battle objects of every target with HP left.
References btActorSpawnObjectsForListStub(), gmUnitGet() and Sint32.
Referenced by btEffectRunAtalanta(), btEffectRunAzul(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCybele(), btEffectRunDaedalusStrike(), btEffectRunDragonFire(), btEffectRunEclipse(), btEffectRunFlora(), btEffectRunHaures(), btEffectRunIris(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMegaera(), btEffectRunMeteorBlow(), btEffectRunMoloch(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunNereidCopy(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall(), btEffectRunThor(), btEffectRunTrident(), btEffectRunUlysses() and btEffectRunZagan().
Definition at line 130 of file battle_effect_dispatch.c.
btEffectSetupBlendedDisplay
void btEffectSetupBlendedDisplay(void)
Shows the battle background, as dark as the canvas's fade left it, behind a cleared canvas, and fades out the action's sound effects.
References BgScrollWork, btBackgroundLoadStub(), ProjectionWork, sySoundPlayStub() and sySynch().
Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunCatastrophe(), btEffectRunDaedalus(), btEffectRunFlora(), btEffectRunHaures(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMeteorBlow(), btEffectRunNeptune(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 148 of file battle_effect_dispatch.c.
btEffectTintBattler
void btEffectTintBattler(Sint32 unitId, Sint32 palette, Sint32 animation, Sint32 timerSlot, Sint32 timerTicks)
Tints one unit's battle object and sets its pose, for every sprite it is made of, and starts that unit's flash timer.
palette: a SPR_COL_MODE, SPRITE_COLOR_NORMAL for the unit's own palette,
or TINT_KEEP.
animation: the pose to start, or TINT_KEEP. timerSlot: the state->actorTimers
entry to set to timerTicks, or TINT_KEEP.References btActorGetSpriteStub(), btMotionGetSlotPaletteStub(), btObjectGetStub(), fdSpriteStartAnimationStub() and Sint32.
Referenced by btEffectCountDownBattlerTints(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAzul(), btEffectRunBackgroundFadeIn(), btEffectRunBackstab(), btEffectRunBallLightning(), btEffectRunBladeRain(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBreaths(), btEffectRunBubbleColumn(), btEffectRunBurstShower(), btEffectRunCanvasBurst(), btEffectRunCards(), btEffectRunCastingImpact(), btEffectRunCatastrophe(), btEffectRunCharon(), btEffectRunCoatlicue(), btEffectRunCruelRuin(), btEffectRunCrystal(), btEffectRunCybele(), btEffectRunDaedalus(), btEffectRunDaedalusStrike(), btEffectRunDeathPlunge(), btEffectRunDiamondBerg(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniCharge(), btEffectRunDjinniEntrance(), btEffectRunDjinniSign(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrainMotes(), btEffectRunEclipse(), btEffectRunElementBurst(), btEffectRunElementCards(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFallingSword(), btEffectRunFire(), btEffectRunFirePuppet(), btEffectRunFlare(), btEffectRunFlora(), btEffectRunFlurry(), btEffectRunFormChange(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunFume() and 80 more.
Definition at line 175 of file battle_effect_dispatch.c.