Skip to Content
The Alchemy Project

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

NameDescription
structHANGING_VINE_LINKOne link of a hanging vine: a point on the vine and its sprite.
structHANGING_VINE_SLOTOne of the eight hanging vines: the actor it hangs from and its swing.
structHANGING_VINE_WORKThe hanging vine's state (RamHeapSlots->hangingVine): the links' picture, eight vine slots and up to 128 links.

Macros

NameDescription
#defineHANGING_VINE_STATE ((HANGING_VINE_WORK *)RamHeapSlots->hangingVine)

Functions

NameDescription
HANGING_VINE_SLOT *fdHangingVineFindSlot (Sint32 id)Returns the vine slot among HANGING_VINE_STATE's eight that holds actor id, or NULL.
voidfdHangingVineDraw (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.
voidfdHangingVineUpdate (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.