Alchemy

kalay_interiors.c

Kalay's homes, inn, dining rooms and sanctum.

games/tbs/src/scene/kalay_interiors.c on GitHub

Kalay's homes, inn, dining rooms and sanctum. The inn changes when the Colosso tour group leaves; room entrances select their shared actor tables.

Functions

KalayInteriors_GetEntrances

const struct SceneEntrance *KalayInteriors_GetEntrances(void)

Selects the entrance table for the rooms or sanctum in this scene.

Line 39

KalayInteriors_GetPlacements

const struct ScenePlacement *KalayInteriors_GetPlacements(void)

The inn rooms share a placement table, clipped to the current view.

Line 56

KalayInteriors_GetEvents

const struct SceneEvent *KalayInteriors_GetEvents(void)

Selects room dialogue with the same entrance grouping as the placements.

Line 88

KalayInteriors_TalkToTourGuide

static void KalayInteriors_TalkToTourGuide(void)

The tour guide in the inn's dining room: now the party has heard of the tour. "Please finish eating if you are taking the tour! We'll be leaving soon!"

Used by gKalayInteriors_InnEvents.

Line 117

KalayInteriors_AskAboutSouthernContinent

static void KalayInteriors_AskAboutSouthernContinent(void)

A resident asks whether the party knows the continent south of Tolbi, and answers either way.

Used by gKalayInteriors_HouseEvents.

Line 127

KalayInteriors_TalkToInnkeeper

static void KalayInteriors_TalkToInnkeeper(void)

Spoken to across the counter, the leader facing west, the innkeeper offers a room. From any other side he asks whether the party is going to Tolbi too, or, once the tour has left, says how empty the inn feels.

Used by gKalayInteriors_InnEvents.

Line 137

KalayInteriors_TalkToPriest

static void KalayInteriors_TalkToPriest(void)

Spoken to across the counter, the leader facing north, the priest offers the sanctum's services; from elsewhere he says Kalay is a peaceful place.

Used by gKalayInteriors_SanctumEvents.

Line 160

KalayInteriors_OpenDoorAndExit

static void KalayInteriors_OpenDoorAndExit(void)

Stops the room actors, opens the selected door and walks the leader out.

Used by gKalayInteriors_HouseEvents, gKalayInteriors_InnEvents.

Line 176

KalayInteriors_Initialize

s32 KalayInteriors_Initialize(void)

Sets the opening transition and restores room-specific actors and tiles.

Line 235

KalayInteriors_ApplyRoomState

static void KalayInteriors_ApplyRoomState(void)

Once the Colosso tour has left, its guests are gone from the inn, and two residents from the houses. Entrance 3 instead redraws a rectangle of cells.

Used by KalayInteriors_Initialize.

Line 245

Also, functions without a comment: KalayInteriors_GetRegions, KalayInteriors_GetExits.

Enumerations

KalayInteriorsActor

enum KalayInteriorsActor

The inn's rooms are entered through entrances 9 to 15 and 17.

Value=
ACTOR_INNKEEPER8in the inn
ACTOR_PRIEST8in the sanctum
ACTOR_TOUR_GUIDE12in the inn's dining room

Line 30

Globals

gKalayInteriors_HouseEvents

struct SceneEvent gKalayInteriors_HouseEvents[]

A bare flag as a condition holds while that flag is clear: these lines are spoken before the Colosso tour leaves, the next ones after.

Used by KalayInteriors_GetEvents.

Line 404

Also, globals without a comment: gKalayInteriors_NoEntrances, gKalayInteriors_HouseEntrances, gKalayInteriors_SanctumEntrances, gKalayInteriors_Exits, gKalayInteriors_NoPlacements, gKalayInteriors_HousePlacements, gKalayInteriors_InnPlacements, gKalayInteriors_SanctumPlacements, gKalayInteriors_NoEvents, gKalayInteriors_InnEvents, gKalayInteriors_SanctumEvents, gKalayInteriors_DoorCellSteps, gKalayInteriors_DoorCells.

On this page