Skip to Content
The Alchemy Project

src/debug/test_scenes.c

The eight test scenes that share one room, whose talk scripts would give Flint, Fizz, Forge or Gust; the room places no actors to talk to.

Enumerations

NameDescription
enumTEST_ACTOR_ID { ACTOR_FLINT, ACTOR_FIZZ, ACTOR_FORGE, ACTOR_GUST }The actors the talk scripts answer: the first Djinni of each element.

Functions

NameDescription
voiddbTestReceiveFizz (void)
voiddbTestReceiveForge (void)
const SCENE_ENTRANCE *scGetEntrances (void)Where the party can enter: the cave under the spring has its own entrances.
const SCENE_REGION *scGetExitRegions (void)The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room.
const Uint32 *scGetExits (void)The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN.
const ACTOR_PLACE *scGetActorPlacements (void)The scene's actor placements: a room of names for its entrance, else the debug room's.
static __inline__ voiddbTestGiveDjinni (Sint32 actorId, Sint32 element)Gives the first Djinni of an element, then clears its found flag again, so talking to it can give it once more.
voiddbTestReceiveFlint (void)
voiddbTestReceiveGust (void)
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
Sint32scInit (void)Nothing to set up.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
SCENE_ENTRANCESceneEntrances []Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole.
Uint32SceneExits []The room has no exits of its own.
ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.
Sint16TestScenesUnusedRow []Unused: four halfwords and an end of -1s after the room's tables; nothing reads them.

Description

The eight test scenes that share one room, whose talk scripts would give Flint, Fizz, Forge or Gust; the room places no actors to talk to.

Enumerations in detail

TEST_ACTOR_ID

enum TEST_ACTOR_ID

The actors the talk scripts answer: the first Djinni of each element. The room's actor list is empty, so none of them is ever there.

EnumeratorValueDescription
ACTOR_FLINTACTOR_FIRST_PLACED
ACTOR_FIZZ
ACTOR_FORGE
ACTOR_GUST

Definition at line 12 of file test_scenes.c.

Functions in detail

dbTestReceiveFizz

void dbTestReceiveFizz(void)

References dbTestGiveDjinni().

Referenced by SceneCues.

Definition at lines 20 and 57 of file test_scenes.c.

dbTestReceiveForge

void dbTestReceiveForge(void)

References dbTestGiveDjinni().

Referenced by SceneCues.

Definition at lines 22 and 62 of file test_scenes.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 24 of file test_scenes.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 29 of file test_scenes.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 34 of file test_scenes.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 39 of file test_scenes.c.

dbTestGiveDjinni

static __inline__ void dbTestGiveDjinni(Sint32 actorId, Sint32 element)

Gives the first Djinni of an element, then clears its found flag again, so talking to it can give it once more.

References fdDjinnJoinParty(), Sint32 and syGameFlagClear().

Referenced by dbTestReceiveFizz(), dbTestReceiveFlint(), dbTestReceiveForge() and dbTestReceiveGust().

Definition at line 46 of file test_scenes.c.

dbTestReceiveFlint

void dbTestReceiveFlint(void)

References dbTestGiveDjinni().

Referenced by SceneCues.

Definition at line 52 of file test_scenes.c.

dbTestReceiveGust

void dbTestReceiveGust(void)

References dbTestGiveDjinni().

Referenced by SceneCues.

Definition at line 67 of file test_scenes.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 72 of file test_scenes.c.

scInit

Sint32 scInit(void)

Nothing to set up.

References Sint32.

Definition at line 78 of file test_scenes.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 83 of file test_scenes.c.

Variables in detail

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 88 of file test_scenes.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 93 of file test_scenes.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 101 of file test_scenes.c.

SceneCues

CUE SceneCues[]

References dbTestReceiveFizz(), dbTestReceiveFlint(), dbTestReceiveForge() and dbTestReceiveGust().

Referenced by scGetCues().

Definition at line 105 of file test_scenes.c.

TestScenesUnusedRow

Sint16 TestScenesUnusedRow[]

Unused: four halfwords and an end of -1s after the room's tables; nothing reads them.

Definition at line 115 of file test_scenes.c.