src/battle_effect/battle_effect_dispatch.c
The two ways into an effect, a summon or an ordinary ability, with the sheet, state and canvas they lend it; and the helpers the summons share for window 0's ragged edge and the targets' sprites. More…
Included by battle_effect.c.
Macros
| Name | Description | |
|---|---|---|
#define | WINDOW_EDGE_FIRST_LINE 8 | The first screen line of window 0's ragged edge. |
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: takes the effect's sheet, state and canvas, runs it 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, ragged by each line's inset, and restarts the DMA that writes it; the summons run it each VBlank while the window opens across the screen. |
void | btEffectShowLivingTargets (BATTLE_EFFECT_PARM *args) | Spawns the battle sprites of every unit with HP left on the targets' side. |
void | btEffectSetupBlendedDisplay (void) | Shows the battle background, darkened as a canvas leaves it, behind a cleared canvas. |
void | btEffectTintBattler (Sint32 unitId, Sint32 palette, Sint32 animation, Sint32 timerSlot, Sint32 timerTicks) | Tints one unit's sprite: every part but its shadow takes palette (SPRITE_COLOR_NORMAL gives the unit its own back), the sprite starts animation, and timer timerSlot of the effect counts timerTicks down to the tint's end (btEffectCountDownBattlerTints); TINT_KEEP leaves any of the three as it is. |
void | btEffectOpenAndCloseTiledCanvas (void) | Opens the tiled canvas at priority 1 and closes it again at once. |
Description
The two ways into an effect, a summon or an ordinary ability, with the sheet,
state and canvas they lend it; and the helpers the summons share for window
0's ragged edge and the targets' sprites. Part of battle_effect.c.
Macros in detail
WINDOW_EDGE_FIRST_LINE
#define WINDOW_EDGE_FIRST_LINE 8
The first screen line of window 0's ragged edge.
Referenced by btEffectBuildWindowEdgeTable().
Definition at line 75 of file battle_effect_dispatch.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 6 of file battle_effect_dispatch.c.
btEffectRunSummon
void btEffectRunSummon(BATTLE_EFFECT_PARM *args)
Runs one of the large battle effects, the summons: takes the effect's sheet, state and canvas, runs it and frees them again.
References btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunCybele(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunMeteor(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunThor(), btEffectRunTiamat(), 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, Sint32, state, syHeapSlotAllocate() and syHeapSlotRelease().
Definition at line 52 of file battle_effect_dispatch.c.
btEffectBuildWindowEdgeTable
void btEffectBuildWindowEdgeTable(void)
Builds window 0's right edge for every line, ragged by each line's inset, and restarts the DMA that writes it; the summons run it each VBlank while the window opens across the screen.
References btDMAStop(), Sint32 and syDMAXCopy().
Referenced by btEffectRunBoreas() and btEffectRunNeptune().
Definition at line 80 of file battle_effect_dispatch.c.
btEffectShowLivingTargets
void btEffectShowLivingTargets(BATTLE_EFFECT_PARM *args)
Spawns the battle sprites of every unit with HP left on the targets' side.
References btObjectSpawnObjectsForListStub(), gmUnitGetStub() and Sint32.
Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunCybele(), btEffectRunDragonFire(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 119 of file battle_effect_dispatch.c.
btEffectSetupBlendedDisplay
void btEffectSetupBlendedDisplay(void)
Shows the battle background, darkened as a canvas leaves it, behind a cleared canvas.
References BgScrollWork, btBackgroundLoadStub(), HeapSlots, ProjectionWork and sySynch().
Referenced by btEffectRunAtalanta(), btEffectRunBoreas(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunNeptune(), btEffectRunProcne(), btEffectRunRamses(), btEffectRunStarfieldFall() and btEffectRunThor().
Definition at line 150 of file battle_effect_dispatch.c.
btEffectTintBattler
void btEffectTintBattler(Sint32 unitId, Sint32 palette, Sint32 animation, Sint32 timerSlot, Sint32 timerTicks)
Tints one unit's sprite: every part but its shadow takes palette
(SPRITE_COLOR_NORMAL gives the unit its own back), the sprite starts
animation, and timer timerSlot of the effect counts timerTicks down to
the tint's end (btEffectCountDownBattlerTints); TINT_KEEP leaves any of the
three as it is.
References btActorGetSpriteStub(), btObjectGetPaletteStub(), btObjectGetStub(), fdSpriteStartAnimationStub(), Sint32 and state.
Referenced by btEffectCountDownBattlerTints(), btEffectRunAnnihilation(), btEffectRunAstralBlast(), btEffectRunAtalanta(), btEffectRunBladeRain(), btEffectRunBolt(), btEffectRunBoreas(), btEffectRunBreak(), btEffectRunBurstShower(), btEffectRunCastingImpact(), btEffectRunCondemn(), btEffectRunCybele(), btEffectRunDeathPlunge(), btEffectRunDjinnBeams(), btEffectRunDjinnHeal(), btEffectRunDjinniEntrance(), btEffectRunDouse(), btEffectRunDragonCloud(), btEffectRunDragonFire(), btEffectRunDrain(), btEffectRunElementBurst(), btEffectRunElementPillar(), btEffectRunEruption(), btEffectRunFire(), btEffectRunFlare(), btEffectRunFlurry(), btEffectRunFrost(), btEffectRunFroth(), btEffectRunGaia(), btEffectRunGatheringLights(), btEffectRunGrowingColumns(), btEffectRunHail(), btEffectRunHaunt(), btEffectRunHealingMotes(), btEffectRunHelmSplitter(), btEffectRunIce(), btEffectRunJudgment(), btEffectRunKirin(), btEffectRunLobbedShells(), btEffectRunMirroredWall(), btEffectRunMoteFountain(), btEffectRunNeptune(), btEffectRunNereid(), btEffectRunPlanetDiver(), btEffectRunPlasma(), btEffectRunPrism(), btEffectRunProcne(), btEffectRunProjectileVolley(), btEffectRunQuake(), btEffectRunRagnarok() and 23 more.
Definition at line 177 of file battle_effect_dispatch.c.
btEffectOpenAndCloseTiledCanvas
void btEffectOpenAndCloseTiledCanvas(void)
Opens the tiled canvas at priority 1 and closes it again at once.
References btEffectEndCanvasLayer() and btEffectStartTiledCanvas().
Definition at line 227 of file battle_effect_dispatch.c.