src/scene/shared/stump_leap.c
The stump Move pushes off a ledge into the water, in Goma Cave Entrance and Goma Cave. More…
Included by goma_cave_entrance.c and goma_cave_stream.c.
Functions
| Name | Description | |
|---|---|---|
static void | scSpinStump (ACTOR *actor) | Spins the leaping stump a thirty-second of a turn each tick. |
static void | scLeapStump (Sint32 stumpId) | The stump tips over the ledge, leaps spinning into the water, lands with a shake and a ring of dust, bounces once and sinks with a splash. |
Description
The stump Move pushes off a ledge into the water, in Goma Cave Entrance and Goma Cave.
The including scene defines where it lands (STUMP_LANDING_X and _Z), where it
bounces on to and sinks (STUMP_RESTING_X and _Z), and the height of the
ground it comes down to (STUMP_FLOOR_HEIGHT, 16.16).
Functions in detail
scSpinStump
static void scSpinStump(ACTOR *actor)
Spins the leaping stump a thirty-second of a turn each tick.
Referenced by scLeapStump().
Definition at line 9 of file stump_leap.c.
scLeapStump
static void scLeapStump(Sint32 stumpId)
The stump tips over the ledge, leaps spinning into the water, lands with a shake and a ring of dust, bounces once and sinks with a splash.
References fdActorGet(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWaitForMoveById(), fdMapGridWaitForShakeToSettle(), scActorWaitBelowHeight(), scSpinStump(), Sint32, syCos(), sySin(), sySoundPlay() and sySynch().
Referenced by scGomaCaveEntranceMoveStump() and scGomaCaveStreamMoveStump().
Definition at line 20 of file stump_leap.c.