Skip to Content
The Alchemy Project

src/scene/champa_rooms.c

The houses of Champa, the village of Briggs's people on the cliffs of the Eastern Sea, as SceneIdChampaRooms, with the inn and the artifact shop. More…

Macros

NameDescription
#defineIN_ISLET_ROOMS ()Whether the party is in the tent on SoutheastAngaraIslet or the hut on WestIndraIslet's pier, which this overlay also holds.

Enumerations

NameDescription
enumCHAMPA_ROOMS_ACTOR_ID { ACTOR_RAFT_FISHERMAN, ACTOR_RAFT_DWELLER, ACTOR_FISHERMANS_C … }The houses' actors, numbering the rows of ChampaRoomsActorPlacements.
enumCHAMPA_ISLET_ACTOR_ID { ACTOR_INDRA_NEIGHBOR }The islet rooms' one actor, in the hut on WestIndraIslet's pier.
enumanonymous enum { SHOP_CHAMPA }Champa's shops, as mnShopRun numbers them.
enumanonymous enum { INN_ID_CHAMPA }Champa's inn, as mnInnCheckIn numbers the inns.

Functions

NameDescription
voidscFadeInAndClearFlag (void)Sets the screen to open with the window transition, and the area's name not to show (FLAG_SHOW_AREA_NAME).
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.
voidscChampaRoomsTalkToArtifactMerchant (Sint32 actorId)Talking to the artifact merchant across his counter opens his shop.
voidscChampaRoomsTalkToInnkeeper (Sint32 actorId)Talking to the innkeeper across his counter opens the inn.
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)Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern ACTOR_PLACEChampaRoomsActorPlacements []
extern ACTOR_PLACEChampaRoomsIsletActorPlacements []
extern CUEChampaRoomsCues []
extern CUEChampaRoomsCuesOnceBriggsSailed []
extern CUEChampaRoomsIsletCues []
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.

Description

The houses of Champa, the village of Briggs's people on the cliffs of the Eastern Sea, as SceneIdChampaRooms, with the inn and the artifact shop. Entered from the islets, the same scene is the tent on SoutheastAngaraIslet or the hut on WestIndraIslet's pier.

Until Briggs sails from Alhafra in the boat he bought (FLAG_BRIGGS_SAILED_FROM_ALHAFRA) the village is hungry, its fish gone since the tidal wave; after, the people talk of the jewels he brought home.

Macros in detail

IN_ISLET_ROOMS

#define IN_ISLET_ROOMS()

Whether the party is in the tent on SoutheastAngaraIslet or the hut on WestIndraIslet's pier, which this overlay also holds.

Referenced by scGetActorPlacements(), scGetCues() and scInit().

Definition at line 48 of file champa_rooms.c.

Enumerations in detail

CHAMPA_ROOMS_ACTOR_ID

enum CHAMPA_ROOMS_ACTOR_ID

The houses' actors, numbering the rows of ChampaRoomsActorPlacements.

EnumeratorValueDescription
ACTOR_RAFT_FISHERMANACTOR_FIRST_PLACED
ACTOR_RAFT_DWELLER
ACTOR_FISHERMANS_CHILD
ACTOR_FISHERMANS_YOUNGER_CHILD
ACTOR_WAVE_SURVIVOR
ACTOR_SEA_OF_TIME_SAILOR
ACTOR_SAILOR_NOT_LIKING_THE_CAVES
ACTOR_ELDER_SEEKING_A_CHIEF
ACTOR_ELDER
ACTOR_MAN_ON_THE_WARMER_OCEAN
ACTOR_WOMAN_ON_TIDAL_WAVE_RUMORS
ACTOR_ARTIFACT_MERCHANT
ACTOR_MAN_ON_THE_ANKOHL_RUINS
ACTOR_INNKEEPER
ACTOR_WOMAN_ON_TRADE_WITH_THE_EAST

Definition at line 27 of file champa_rooms.c.

CHAMPA_ISLET_ACTOR_ID

enum CHAMPA_ISLET_ACTOR_ID

The islet rooms' one actor, in the hut on WestIndraIslet's pier.

EnumeratorValueDescription
ACTOR_INDRA_NEIGHBORACTOR_FIRST_PLACED

Definition at line 54 of file champa_rooms.c.

anonymous enum

enum { SHOP_CHAMPA }

Champa's shops, as mnShopRun numbers them.

EnumeratorValueDescription
SHOP_CHAMPA25

Definition at line 82 of file champa_rooms.c.

anonymous enum

enum { INN_ID_CHAMPA }

Champa's inn, as mnInnCheckIn numbers the inns.

EnumeratorValueDescription
INN_ID_CHAMPA10

Definition at line 88 of file champa_rooms.c.

Functions in detail

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 59 of file champa_rooms.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 64 of file champa_rooms.c.

scGetExits

const Uint32 *scGetExits(void)

References SceneExits.

Definition at line 69 of file champa_rooms.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ChampaRoomsActorPlacements and ChampaRoomsIsletActorPlacements.

Definition at line 74 of file champa_rooms.c.

scChampaRoomsTalkToArtifactMerchant

void scChampaRoomsTalkToArtifactMerchant(Sint32 actorId)

Talking to the artifact merchant across his counter opens his shop.

References mnShopRun() and Sint32.

Referenced by ChampaRoomsCues and ChampaRoomsCuesOnceBriggsSailed.

Definition at line 94 of file champa_rooms.c.

scChampaRoomsTalkToInnkeeper

void scChampaRoomsTalkToInnkeeper(Sint32 actorId)

Talking to the innkeeper across his counter opens the inn.

References mnInnCheckIn() and Sint32.

Referenced by ChampaRoomsCues and ChampaRoomsCuesOnceBriggsSailed.

Definition at line 100 of file champa_rooms.c.

scGetCues

const CUE *scGetCues(void)

References ChampaRoomsCues, ChampaRoomsCuesOnceBriggsSailed, ChampaRoomsIsletCues and syGameFlagGet().

Definition at line 105 of file champa_rooms.c.

scInit

Sint32 scInit(void)

References scFadeInAndClearFlag() and Sint32.

Definition at line 114 of file champa_rooms.c.

scPrepareMap

Sint32 scPrepareMap(void)

References Sint32.

Definition at line 130 of file champa_rooms.c.

Variables in detail

ChampaRoomsActorPlacements

extern ACTOR_PLACE ChampaRoomsActorPlacements[]

ACTOR_PLACE ChampaRoomsActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 18 and 192 of file champa_rooms.c.

ChampaRoomsIsletActorPlacements

extern ACTOR_PLACE ChampaRoomsIsletActorPlacements[]

ACTOR_PLACE ChampaRoomsIsletActorPlacements[]

Referenced by scGetActorPlacements().

Definition at lines 19 and 331 of file champa_rooms.c.

ChampaRoomsCues

extern CUE ChampaRoomsCues[]

CUE ChampaRoomsCues[]

References scChampaRoomsTalkToArtifactMerchant() and scChampaRoomsTalkToInnkeeper().

Referenced by scGetCues().

Definition at lines 20 and 344 of file champa_rooms.c.

ChampaRoomsCuesOnceBriggsSailed

extern CUE ChampaRoomsCuesOnceBriggsSailed[]

CUE ChampaRoomsCuesOnceBriggsSailed[]

References scChampaRoomsTalkToArtifactMerchant() and scChampaRoomsTalkToInnkeeper().

Referenced by scGetCues().

Definition at lines 21 and 452 of file champa_rooms.c.

ChampaRoomsIsletCues

extern CUE ChampaRoomsIsletCues[]

CUE ChampaRoomsIsletCues[]

Referenced by scGetCues().

Definition at lines 22 and 558 of file champa_rooms.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 138 of file champa_rooms.c.

SceneExits

Uint32 SceneExits[]

Referenced by scGetExits().

Definition at line 157 of file champa_rooms.c.