include/field/hanging_vine.h
The hanging vines the leader swings from: their links and their swing.
Included by script_commands_internal.h and gaia_rock.c.
Structures
| Name | Description | |
|---|---|---|
struct | HANGING_VINE_LINK | One link of a hanging vine: a point on the vine and its sprite. |
struct | HANGING_VINE_SLOT | One of the eight hanging vines: the actor it hangs from and its swing. |
struct | HANGING_VINE_WORK | The hanging vine's state (RamHeapSlots->hangingVine): the links' picture, eight vine slots and up to 128 links. |
Macros
| Name | Description | |
|---|---|---|
#define | HANGING_VINE_STATE ((HANGING_VINE_WORK *)RamHeapSlots->hangingVine) |
Functions
| Name | Description | |
|---|---|---|
HANGING_VINE_SLOT * | fdHangingVineFindSlot (Sint32 id) | Returns the vine slot among HANGING_VINE_STATE's eight that holds actor id, or NULL. |
void | fdHangingVineDraw (void) | The vines' drawing event: each link's picture at the midpoint between it and the link above, turned along the vine, for the links on screen. |
void | fdHangingVineUpdate (void) | The vines' event: sways each active vine's links below its anchor, the swing easing towards VINE_SWING_BESIDE while the leader stands beside the vine, else towards VINE_SWING_ALONE. |
Description
The hanging vines the leader swings from: their links and their swing.
Macros in detail
HANGING_VINE_STATE
#define HANGING_VINE_STATE ((HANGING_VINE_WORK *)RamHeapSlots->hangingVine)
Referenced by fdHangingVineAllocateLink(), fdHangingVineDraw(), fdHangingVineFindFreeSlot(), fdHangingVineFindSlot(), fdHangingVineUpdate() and scGaiaRockFindVineSlot().
Definition at line 49 of file hanging_vine.h.