Move: a hand pushes the target, steered with the d-pad. More...
Go to the source code of this file.
Macros | |
| #define | MOVE_CELL_MASK 0xfff00000 |
| a 16-pixel tile | |
Functions | |
| s32 | Input_GetDpadAngle (u32 unused) |
| Returns the direction of the d-pad (0x10000 a full turn): right 0, down 0x4000, left 0x8000, up 0xc000; 0xffff when none or a diagonal is held. | |
| void | BattleFx_UpdateItemBreakFragment (union FieldObject *fieldObject) |
| Per-frame update of a broken item's main fragment: turns it toward the object it is linked to, at most 1/16 turn a frame, and sheds a particle (object 0x11d) round it. | |
| void | BattleFx_SteerPushedTarget (s32 targetId) |
| Puts the pushing hand beside the target and pushes the target 16 pixels the way the d-pad points, for as long as the player pushes; A, B, L or R end it. | |
| void | BattleFx_UpdateOrbitAndReturn (struct EffectSlot *slot) |
| Effect slot callback of a particle that flies 30 pixels out from where it started, comes back and is freed. | |
| void | FieldFx_RunMove (void) |
| Shows the broken item beside the caster for 30 frames, then turns it into particles. | |
| void * | BattleFx_StartItemBreak (void *object) |
| Spawns the broken item (object 215) 16 pixels above object and moves it 16 pixels the way object faces (to the nearest quarter turn), with 8 particles round it. | |
| void | BattleFx_SnapScaleToFull (struct MotionObject *obj) |
| Per-frame update: grows an object's scale by 1/16 a frame up to full size and fixes its position. | |
| void | UpdateRisingParticleBurst (void *object) |
| Per-frame update: the object spins as it rises for 31 frames, shrinks, and bursts into 8 particles. | |
Move: a hand pushes the target, steered with the d-pad.
Part of psynergy_effects.c, compiled only through it.
Definition in file move.c.
| #define MOVE_CELL_MASK 0xfff00000 |
Returns the direction of the d-pad (0x10000 a full turn): right 0, down 0x4000, left 0x8000, up 0xc000; 0xffff when none or a diagonal is held.
Definition at line 9 of file move.c.
Referenced by BattleFx_SteerLiftedTarget(), BattleFx_SteerPushedTarget(), Djinn_ResolvePendingEvent(), and Input_GetDpadAngle().
| void BattleFx_UpdateItemBreakFragment | ( | union FieldObject * | fieldObject | ) |
Per-frame update of a broken item's main fragment: turns it toward the object it is linked to, at most 1/16 turn a frame, and sheds a particle (object 0x11d) round it.
Definition at line 17 of file move.c.
Referenced by BattleFx_StartItemBreak(), BattleFx_UpdateItemBreakFragment(), and Djinn_ResolvePendingEvent().
| void BattleFx_SteerPushedTarget | ( | s32 | targetId | ) |
Puts the pushing hand beside the target and pushes the target 16 pixels the way the d-pad points, for as long as the player pushes; A, B, L or R end it.
Abilities: Move (field kind 1), cast on a target.
Where the target cannot go, an error sound plays every 16 frames. When the push would run into the caster, the caster blocks it or, when the tile beyond is free, is pushed along too.
Definition at line 65 of file move.c.
Referenced by BattleFx_DispatchRequestKind(), BattleFx_SteerPushedTarget(), and Djinn_ResolvePendingEvent().
| void BattleFx_UpdateOrbitAndReturn | ( | struct EffectSlot * | slot | ) |
Effect slot callback of a particle that flies 30 pixels out from where it started, comes back and is freed.
Definition at line 246 of file move.c.
Referenced by BattleFx_UpdateOrbitAndReturn(), and Djinn_ResolvePendingEvent().
| void FieldFx_RunMove | ( | void | ) |
Shows the broken item beside the caster for 30 frames, then turns it into particles.
Abilities: Move (field kind 1), cast with no target.
Definition at line 296 of file move.c.
Referenced by BattleFx_Run(), Djinn_ResolvePendingEvent(), and FieldFx_RunMove().
| void * BattleFx_StartItemBreak | ( | void * | object | ) |
Spawns the broken item (object 215) 16 pixels above object and moves it 16 pixels the way object faces (to the nearest quarter turn), with 8 particles round it.
Returns the item, or 0.
Definition at line 323 of file move.c.
Referenced by BattleFx_StartItemBreak(), BattleFx_SteerPushedTarget(), Djinn_ResolvePendingEvent(), and FieldFx_RunMove().
| void BattleFx_SnapScaleToFull | ( | struct MotionObject * | obj | ) |
Per-frame update: grows an object's scale by 1/16 a frame up to full size and fixes its position.
Definition at line 377 of file move.c.
Referenced by BattleFx_SnapScaleToFull(), BattleFx_SteerPushedTarget(), Djinn_ResolvePendingEvent(), and FieldFx_RunMove().
| void UpdateRisingParticleBurst | ( | void * | object | ) |
Per-frame update: the object spins as it rises for 31 frames, shrinks, and bursts into 8 particles.
Definition at line 397 of file move.c.
Referenced by BattleFx_SteerPushedTarget(), Djinn_ResolvePendingEvent(), FieldFx_RunLiftOnTarget(), FieldFx_RunMove(), and UpdateRisingParticleBurst().