Skip to Content
The Alchemy Project

src/debug/test_scenes.c

The debug rooms Test 0 to Test 7, all one room, where talking to Flint, Fizz, Forge or Gust gives that Djinni.

Enumerations

NameDescription
enumTEST_ACTOR_ID { ACTOR_FLINT, ACTOR_FIZZ, ACTOR_FORGE, ACTOR_GUST }The placed actors: the first Djinni of each element, each there while its flag is clear.

Functions

NameDescription
const SCENE_ENTRANCE *scGetEntrances (void)The six rooms share one entrance table.
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.
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)Nothing to set up.
const SCENE_EXIT_REGION *scGetExitRegions (void)The scene has no exit regions: its regions entry returns none.
static __inline__ voiddbTestGiveDjinni (Sint32 actorId, Sint32 element)Gives the first Djinni of an element, then clears its flag so it stays.
static voiddbTestReceiveFlint (void)Talking to Flint, Fizz, Forge or Gust gives that Djinni to the party.
static voiddbTestReceiveFizz (void)
static voiddbTestReceiveForge (void)
static voiddbTestReceiveGust (void)

Variables

NameDescription
extern SCENE_ENTRANCETestEntrances []
extern Uint32TestExits []No exits: the headers of Test 0 to Test 3's tables, with none under them.
extern ACTOR_PLACETestActorPlacements []
extern CUETestCues []

Description

The debug rooms Test 0 to Test 7, all one room, where talking to Flint, Fizz, Forge or Gust gives that Djinni.

Enumerations in detail

TEST_ACTOR_ID

enum TEST_ACTOR_ID

The placed actors: the first Djinni of each element, each there while its flag is clear.

EnumeratorValueDescription
ACTOR_FLINTACTOR_FIRST_PLACED
ACTOR_FIZZ
ACTOR_FORGE
ACTOR_GUST

Definition at line 21 of file test_scenes.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References TestEntrances.

Definition at lines 9 and 29 of file test_scenes.c.

scGetExits

const Uint32 *scGetExits(void)

References TestExits.

Definition at lines 10 and 40 of file test_scenes.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References TestActorPlacements.

Definition at lines 11 and 45 of file test_scenes.c.

scGetCues

const CUE *scGetCues(void)

References TestCues.

Definition at lines 12 and 78 of file test_scenes.c.

scInit

Sint32 scInit(void)

Nothing to set up.

References Sint32.

Definition at lines 13 and 84 of file test_scenes.c.

scGetExitRegions

const SCENE_EXIT_REGION *scGetExitRegions(void)

The scene has no exit regions: its regions entry returns none.

Definition at line 35 of file test_scenes.c.

dbTestGiveDjinni

static __inline__ void dbTestGiveDjinni(Sint32 actorId, Sint32 element)

Gives the first Djinni of an element, then clears its flag so it stays.

References fdDjinnJoinParty(), gmFlagClear() and Sint32.

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

Definition at line 51 of file test_scenes.c.

dbTestReceiveFlint

static void dbTestReceiveFlint(void)

Talking to Flint, Fizz, Forge or Gust gives that Djinni to the party.

References dbTestGiveDjinni().

Referenced by TestCues.

Definition at line 58 of file test_scenes.c.

dbTestReceiveFizz

static void dbTestReceiveFizz(void)

References dbTestGiveDjinni().

Referenced by TestCues.

Definition at line 63 of file test_scenes.c.

dbTestReceiveForge

static void dbTestReceiveForge(void)

References dbTestGiveDjinni().

Referenced by TestCues.

Definition at line 68 of file test_scenes.c.

dbTestReceiveGust

static void dbTestReceiveGust(void)

References dbTestGiveDjinni().

Referenced by TestCues.

Definition at line 73 of file test_scenes.c.

Variables in detail

TestEntrances

extern SCENE_ENTRANCE TestEntrances[]

SCENE_ENTRANCE TestEntrances[]

Referenced by scGetEntrances().

Definition at lines 14 and 91 of file test_scenes.c.

TestExits

extern Uint32 TestExits[]

Uint32 TestExits[]

No exits: the headers of Test 0 to Test 3's tables, with none under them.

Referenced by scGetExits().

Definition at lines 15 and 97 of file test_scenes.c.

TestActorPlacements

extern ACTOR_PLACE TestActorPlacements[]

ACTOR_PLACE TestActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 16 and 105 of file test_scenes.c.

TestCues

extern CUE TestCues[]

CUE TestCues[]

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

Referenced by scGetCues().

Definition at lines 17 and 145 of file test_scenes.c.