Skip to Content
The Alchemy Project

src/scene/goma_cave_stream.c

The first and last rooms of Goma Cave, the cave in the Goma Range between Vault and Bilibin: SceneIdGomaCaveStream and SceneIdGomaCaveBridge, both under the area name Goma Cave. More…

Macros

NameDescription
#defineSTUMP_LANDING_X 376Where the stump lands from the ledge and where it bounces on to and sinks, in pixels, and the ground's height there.
#defineSTUMP_LANDING_Z 288
#defineSTUMP_RESTING_X 346
#defineSTUMP_RESTING_Z 292
#defineSTUMP_FLOOR_HEIGHT 0

Enumerations

NameDescription
enumGOMA_CAVE_STREAM_ACTOR_ID { ACTOR_STUMP }SceneIdGomaCaveStream's actors, numbering its actor placement rows from ACTOR_FIRST_PLACED.
enumanonymous enum { ENTRANCE_BESIDE_STUMP }SceneIdGomaCaveStream's entrance that no exit names, standing the leader just east of the stump, facing it.

Functions

NameDescription
static voidscLeapStump (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.
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
const Uint32 *scGetExits (void)Both scenes share one exit table.
const ACTOR_PLACE *scGetActorPlacements (void)Some villagers only turn back after talking once the flood is over or their family has gone home.
static voidscGomaCaveStreamMoveStump (void)Isaac casts Move on the stump by the stream: once it has been pushed onto column 24 it leaps into the water.
const CUE *scGetCues (void)The first water beast's cave changes its cues once the first drain has lowered its water: the beast is gone and its two puddles can be frozen.
Sint32scInit (void)Sets up SceneIdGomaCaveStream as the party enters (SceneIdGomaCaveBridge needs nothing).

Variables

NameDescription
extern SCENE_ENTRANCEGomaCaveStreamEntrances []
extern SCENE_ENTRANCEGomaCaveBridgeEntrances []
extern Uint32GomaCaveStreamAndBridgeExits []
extern ACTOR_PLACEGomaCaveStreamActorPlacements []
extern ACTOR_PLACEGomaCaveBridgeActorPlacements []
extern CUEGomaCaveStreamCues []
extern CUEGomaCaveBridgeCues []
const Sint32 *FieldEffectDurationScripts []The resident copy of the scripts EFFECT_SCRIPT_MASK picks, by enum EFFECT_DURATION.

Description

The first and last rooms of Goma Cave, the cave in the Goma Range between Vault and Bilibin: SceneIdGomaCaveStream and SceneIdGomaCaveBridge, both under the area name Goma Cave.

The getters give SceneIdGomaCaveBridge its own tables and any other scene SceneIdGomaCaveStream's. The two share one exit table.

Macros in detail

STUMP_LANDING_X

#define STUMP_LANDING_X 376

Where the stump lands from the ledge and where it bounces on to and sinks, in pixels, and the ground's height there.

Referenced by scLeapStump().

Definition at line 159 of file goma_cave_stream.c.

STUMP_LANDING_Z

#define STUMP_LANDING_Z 288

Referenced by scLeapStump().

Definition at line 160 of file goma_cave_stream.c.

STUMP_RESTING_X

#define STUMP_RESTING_X 346

Referenced by scLeapStump().

Definition at line 161 of file goma_cave_stream.c.

STUMP_RESTING_Z

#define STUMP_RESTING_Z 292

Referenced by scLeapStump().

Definition at line 162 of file goma_cave_stream.c.

STUMP_FLOOR_HEIGHT

#define STUMP_FLOOR_HEIGHT 0

Referenced by scLeapStump().

Definition at line 163 of file goma_cave_stream.c.

Enumerations in detail

GOMA_CAVE_STREAM_ACTOR_ID

enum GOMA_CAVE_STREAM_ACTOR_ID

SceneIdGomaCaveStream's actors, numbering its actor placement rows from ACTOR_FIRST_PLACED.

EnumeratorValueDescription
ACTOR_STUMPACTOR_FIRST_PLACEDThe stump Move pushes, as Garet calls the one at the Goma Cave Entrance.

Definition at line 53 of file goma_cave_stream.c.

anonymous enum

enum { ENTRANCE_BESIDE_STUMP }

SceneIdGomaCaveStream's entrance that no exit names, standing the leader just east of the stump, facing it.

Only the debug scene selector, which exits to any entrance by number, reaches it.

EnumeratorValueDescription
ENTRANCE_BESIDE_STUMP99

Definition at line 64 of file goma_cave_stream.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References GomaCaveBridgeEntrances, GomaCaveStreamEntrances and MainRoutineStateWork.

Definition at line 74 of file goma_cave_stream.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

Definition at line 83 of file goma_cave_stream.c.

scGetExits

const Uint32 *scGetExits(void)

References GomaCaveStreamAndBridgeExits.

Definition at line 88 of file goma_cave_stream.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References GomaCaveBridgeActorPlacements, GomaCaveStreamActorPlacements and MainRoutineStateWork.

Definition at line 93 of file goma_cave_stream.c.

scGomaCaveStreamMoveStump

static void scGomaCaveStreamMoveStump(void)

Isaac casts Move on the stump by the stream: once it has been pushed onto column 24 it leaps into the water. The walkable metatiles of the sunken stump are copied over the ground where it lies, from a spare block at (19, 74), off every room of the map.

References fdActorGet(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), gmFlagSet() and scLeapStump().

Referenced by GomaCaveStreamCues.

Definition at line 106 of file goma_cave_stream.c.

scGetCues

const CUE *scGetCues(void)

References GomaCaveBridgeCues, GomaCaveStreamCues and MainRoutineStateWork.

Definition at line 118 of file goma_cave_stream.c.

scInit

Sint32 scInit(void)

Sets up SceneIdGomaCaveStream as the party enters (SceneIdGomaCaveBridge needs nothing).

References fdActorGet(), fdActorSetAnimation(), fdActorSetSpriteFlags(), fdMapGridCopyMetatileAttributes(), gmFlagClear(), gmFlagGet(), MainRoutineStateWork and Sint32.

Definition at line 129 of file goma_cave_stream.c.

Variables in detail

GomaCaveStreamEntrances

extern SCENE_ENTRANCE GomaCaveStreamEntrances[]

SCENE_ENTRANCE GomaCaveStreamEntrances[]

Referenced by scGetEntrances().

Definition at lines 43 and 174 of file goma_cave_stream.c.

GomaCaveBridgeEntrances

extern SCENE_ENTRANCE GomaCaveBridgeEntrances[]

SCENE_ENTRANCE GomaCaveBridgeEntrances[]

Referenced by scGetEntrances().

Definition at lines 44 and 229 of file goma_cave_stream.c.

GomaCaveStreamAndBridgeExits

extern Uint32 GomaCaveStreamAndBridgeExits[]

Uint32 GomaCaveStreamAndBridgeExits[]

Referenced by scGetExits().

Definition at lines 45 and 247 of file goma_cave_stream.c.

GomaCaveStreamActorPlacements

extern ACTOR_PLACE GomaCaveStreamActorPlacements[]

ACTOR_PLACE GomaCaveStreamActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 46 and 274 of file goma_cave_stream.c.

GomaCaveBridgeActorPlacements

extern ACTOR_PLACE GomaCaveBridgeActorPlacements[]

ACTOR_PLACE GomaCaveBridgeActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 47 and 281 of file goma_cave_stream.c.

GomaCaveStreamCues

extern CUE GomaCaveStreamCues[]

CUE GomaCaveStreamCues[]

References scGomaCaveStreamMoveStump().

Referenced by scGetCues().

Definition at lines 48 and 285 of file goma_cave_stream.c.

GomaCaveBridgeCues

extern CUE GomaCaveBridgeCues[]

CUE GomaCaveBridgeCues[]

Referenced by scGetCues().

Definition at lines 49 and 304 of file goma_cave_stream.c.

FieldEffectDurationScripts

const Sint32 *FieldEffectDurationScripts[]

References FieldEffectLongScript, FieldEffectMediumScript, FieldEffectShortScript and Sint32.

Definition at line 168 of file goma_cave_stream.c.