src/field/field_psynergy_catch.c
Catch: throwing a hand at a distant item to pull it back. More…
Included by field_psynergy.c.
Macros
| Name | Description | |
|---|---|---|
#define | CATCH_PRESS_TICKS 10 | The ticks Catch's hand presses down, 2 pixels a tick, and rises again, 1.5 pixels a tick. |
#define | CATCH_RISE_TICKS 13 |
Functions
| Name | Description | |
|---|---|---|
void | fdPsynergyCatchOnTarget (Sint32 unused) | Catch cast on a target: runs fdPsynergyCatch. |
static __inline__ Sint32 | fdCatchInterpolate (Sint32 from, Sint32 to, Sint32 step) | The value step tenths of the way from from to to. |
void | fdPsynergyCatch (void) | Catch: carries the hand (SPRITE_MOVE_HAND) from 16 pixels above the caster to the goal in 10 steps, growing from a quarter to full size, presses down 20 pixels and puts what it caught away off the map, at (-9, -9), then rises 19.5 pixels and shrinks back to the caster. |
Description
Catch: throwing a hand at a distant item to pull it back. Part of
field_psynergy.c.
Macros in detail
CATCH_PRESS_TICKS
#define CATCH_PRESS_TICKS 10
The ticks Catch's hand presses down, 2 pixels a tick, and rises again, 1.5 pixels a tick.
Referenced by fdPsynergyCatch().
Definition at line 18 of file field_psynergy_catch.c.
CATCH_RISE_TICKS
#define CATCH_RISE_TICKS 13
Referenced by fdPsynergyCatch().
Definition at line 19 of file field_psynergy_catch.c.
Functions in detail
fdPsynergyCatchOnTarget
void fdPsynergyCatchOnTarget(Sint32 unused)
Catch cast on a target: runs fdPsynergyCatch.
References fdPsynergyCatch() and Sint32.
Referenced by fdPsynergyDispatch().
Definition at line 5 of file field_psynergy_catch.c.
fdCatchInterpolate
static __inline__ Sint32 fdCatchInterpolate(Sint32 from, Sint32 to, Sint32 step)
The value step tenths of the way from from to to.
References Sint32.
Referenced by fdPsynergyCatch().
Definition at line 11 of file field_psynergy_catch.c.
fdPsynergyCatch
void fdPsynergyCatch(void)
Catch: carries the hand (SPRITE_MOVE_HAND) from 16 pixels above the caster to
the goal in 10 steps, growing from a quarter to full size, presses down 20
pixels and puts what it caught away off the map, at (-9, -9), then rises 19.5
pixels and shrinks back to the caster.
References fdActorReleaseStub(), fdActorSelectAnimationStub(), fdActorSetPosAndResetMotionStub(), fdActorSetSpriteColorModeStub(), fdActorSpawn(), fdCatchInterpolate(), fdPsynergyFadeFromCastColor(), fdPsynergyFadeToCastColor(), Sint32, sySoundPlayStub(), sySynch() and syVectorAddPolarOffset().
Referenced by fdPsynergyCatchOnTarget() and fdPsynergyRun().
Definition at line 25 of file field_psynergy_catch.c.