include/field/view_move.h
The view's swing as Tremor and Grind shake the ground. More…
Included by field_psynergy_ring.c.
Structures
| Name | Description | |
|---|---|---|
struct | VIEW_MOVE_STATE | A view move's state: where the view and the map's view bounds stood when the move began, which edges it lies beside, and the actors it carries. |
Macros
| Name | Description | |
|---|---|---|
#define | VIEW_MOVE_X 1 | Directions a view move swings in. |
#define | VIEW_MOVE_Z 2 |
Functions
| Name | Description | |
|---|---|---|
void | fdViewMoveStart (Sint32 direction) | Opens the whole map to the view: keeps the view centre's position and the map's view bounds for fdViewMoveEnd to restore, notes which edges the view is beside, and sets the bounds to the map's own. |
void | fdViewMoveSwing (Sint32 direction, Sint32 phase, FIXED amplitude) | Swings the view centre away from where fdViewMoveStart found it, along the asked directions, by amplitude times the sine of the phase. |
void | fdViewMoveEnd (void) | Ends a view move: gives the map back the view bounds fdViewMoveStart kept and lets the view follow the caster again. |
void | fdViewMoveSaveNearbySprites (void) | Gathers up to eight actors near enough to the caster to shake (fdMeasurePsynergyReach), with each one's sprite rotation, for Tremor's sway to rock. |
void | fdViewMoveRestoreNearbySprites (void) | Gives each gathered actor's sprite its saved rotation back. |
Description
The view's swing as Tremor and Grind shake the ground. Its state sits in
HEAP_SLOT_BATTLE_EFFECT: fdViewMoveStart opens the map's view bounds and
keeps the old ones, fdViewMoveSwing swings the view centre each tick, and
fdViewMoveEnd puts the bounds back. fdViewMoveSaveNearbySprites gathers the
nearby actors whose sprites rock with the view, and
fdViewMoveRestoreNearbySprites sets them back.
Macros in detail
VIEW_MOVE_X
#define VIEW_MOVE_X 1
Directions a view move swings in.
Referenced by fdPsynergyTremor(), fdPsynergyTremorOnTarget(), fdViewMoveStart() and fdViewMoveSwing().
Definition at line 18 of file view_move.h.
VIEW_MOVE_Z
#define VIEW_MOVE_Z 2
Referenced by fdPsynergyGrind(), fdPsynergyGrindOnTarget(), fdViewMoveStart() and fdViewMoveSwing().
Definition at line 19 of file view_move.h.