Retreat. More...
Go to the source code of this file.
Data Structures | |
| struct | DescendingArcSprite |
| A falling arc's sprite, seen as the attribute bits, resource slot and animation that Retreat sets on it. More... | |
Functions | |
| void | FieldFx_UpdateSpinAngle (union FieldObject *fieldObject) |
| Per-frame update: spins by 0x1000 + timer * 0x50 a frame, speeding up (timer counts up) until timer * 0x50 reaches 0x1000. | |
| void | BattleFx_UpdateDescendingObject (union FieldObject *fieldObject) |
| Per-frame update: spins 1/8 turn a frame as it shrinks, rising a pixel a frame; released once its scale falls below 0x3000. | |
| void | BattleFx_UpdateRadialLaunch (struct EffectSlot *slot) |
| Effect slot callback: a particle flies 120 pixels from the main object's screen position (8 pixels lower) in a direction within 1/8 turn of up the screen. | |
| void | FieldFx_RunRetreat (void) |
| Spins the main object and shrinks it while 24 particles fly out, one a frame. | |
| void | BattleFx_UpdateDescendingParticlePositiveArc (union FieldObject *fieldObject) |
| Per-frame update of a falling arc: grows toward full size as it falls 2 pixels a frame on the object it follows, 9 pixels in front of it and up to 5 pixels further while small; released 10 pixels above the ground (4 on the clear screen). | |
| void | BattleFx_UpdateDescendingParticleNegativeArc (union FieldObject *fieldObject) |
| As BattleFx_UpdateDescendingParticlePositiveArc for the arc drawn upside down, 16 pixels in front of the object and up to 5 pixels nearer. | |
| void | BattleFx_SpawnDescendingArcParticles (struct FieldActor *arc) |
| Spawns a pair of falling arcs (one upside down) on arc. | |
| void FieldFx_UpdateSpinAngle | ( | union FieldObject * | fieldObject | ) |
Per-frame update: spins by 0x1000 + timer * 0x50 a frame, speeding up (timer counts up) until timer * 0x50 reaches 0x1000.
Definition at line 11 of file retreat.c.
Referenced by Djinn_ResolvePendingEvent(), FieldFx_RunRetreat(), and FieldFx_UpdateSpinAngle().
| void BattleFx_UpdateDescendingObject | ( | union FieldObject * | fieldObject | ) |
Per-frame update: spins 1/8 turn a frame as it shrinks, rising a pixel a frame; released once its scale falls below 0x3000.
Definition at line 23 of file retreat.c.
Referenced by BattleFx_UpdateDescendingObject(), Djinn_ResolvePendingEvent(), and FieldFx_RunRetreat().
| void BattleFx_UpdateRadialLaunch | ( | struct EffectSlot * | slot | ) |
Effect slot callback: a particle flies 120 pixels from the main object's screen position (8 pixels lower) in a direction within 1/8 turn of up the screen.
In state 1 it flies again on arrival; in state 2 it is freed.
Definition at line 39 of file retreat.c.
Referenced by BattleFx_UpdateRadialLaunch(), Djinn_ResolvePendingEvent(), and FieldFx_RunRetreat().
| void FieldFx_RunRetreat | ( | void | ) |
Spins the main object and shrinks it while 24 particles fly out, one a frame.
Abilities: Retreat (field kind 15).
Definition at line 88 of file retreat.c.
Referenced by BattleFx_DispatchRequestKind(), BattleFx_Run(), Djinn_ResolvePendingEvent(), and FieldFx_RunRetreat().
| void BattleFx_UpdateDescendingParticlePositiveArc | ( | union FieldObject * | fieldObject | ) |
Per-frame update of a falling arc: grows toward full size as it falls 2 pixels a frame on the object it follows, 9 pixels in front of it and up to 5 pixels further while small; released 10 pixels above the ground (4 on the clear screen).
Definition at line 159 of file retreat.c.
Referenced by BattleFx_SpawnDescendingArcParticles(), BattleFx_UpdateDescendingParticlePositiveArc(), and Djinn_ResolvePendingEvent().
| void BattleFx_UpdateDescendingParticleNegativeArc | ( | union FieldObject * | fieldObject | ) |
As BattleFx_UpdateDescendingParticlePositiveArc for the arc drawn upside down, 16 pixels in front of the object and up to 5 pixels nearer.
Definition at line 192 of file retreat.c.
Referenced by BattleFx_SpawnDescendingArcParticles(), BattleFx_UpdateDescendingParticleNegativeArc(), and Djinn_ResolvePendingEvent().
| void BattleFx_SpawnDescendingArcParticles | ( | struct FieldActor * | arc | ) |
Spawns a pair of falling arcs (one upside down) on arc.
Definition at line 254 of file retreat.c.
Referenced by BattleFx_SpawnDescendingArcParticles(), BattleFx_UpdatePairedArcSpawner(), and Djinn_ResolvePendingEvent().