tolbi_interiors.c
Tolbi's interiors: the houses, inns, shops and sanctum of the festival town.
games/tbs/src/scene/tolbi_interiors.c on GitHub
Tolbi's interiors: the houses, inns, shops and sanctum of the festival town. Like the town outside, the rooms change with the Colosso story flags: the festival, finals day and the quiet after Colosso.
Functions
TolbiInteriors_AskYesNo
static inline void TolbiInteriors_AskYesNo(s32 question, s32 speaker)
Asks a yes/no question, then answers with the message after the question for yes or the one after that for no.
Used by TolbiInteriors_AskWhetherBabiWasMissing, TolbiInteriors_TalkToChef, TolbiInteriors_TalkToHost, TolbiInteriors_TalkToItemShopkeeper, TolbiInteriors_TalkToMedalWoman, TolbiInteriors_TalkToWeaponShopkeeper, TolbiInteriors_TalkToWouldBeWarrior.
TolbiInteriors_SelectPlacements
const struct ScenePlacement *TolbiInteriors_SelectPlacements(void)
After Colosso the rooms hold a different crowd.
TolbiInteriors_AskWhetherBabiWasMissing
static void TolbiInteriors_AskWhetherBabiWasMissing(s32 speaker)
The Spanish and Italian editions add a question on finals day: was Babi missing at all, since he showed himself at the finals?
Used by gTolbiInteriorsEventsFinalsDay.
TolbiInteriors_SelectEvents
const struct SceneEvent *TolbiInteriors_SelectEvents(void)
Picks the event table for the current point in the Colosso story.
TolbiInteriors_ExitThroughWindow
UNUSED static void TolbiInteriors_ExitThroughWindow(void)
Leaves through a window transition of 24 frames. No event uses it.
TolbiInteriors_EnterDoor
static void TolbiInteriors_EnterDoor(void)
Walking into one of the four doors at triggers 14 to 17: every placed actor stops, the door opens and the leader walks through it.
Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.
TolbiInteriors_WatchWomanHideMedal
static void TolbiInteriors_WatchWomanHideMedal(void)
After Colosso, entering by entrance 19: a woman finds something on the floor, is startled to see the party and hides it in the barrel behind the trash pile. "Hey, what's this?" The thing is a Lucky Medal, found later in that barrel.
Used by TolbiInteriors_ApplyEntryState.
TolbiInteriors_WatchSailorsArgue
static void TolbiInteriors_WatchSailorsArgue(void)
After Colosso, entering by entrance 16: three sailors argue about their captain, who won't sail the ship.
Used by TolbiInteriors_ApplyEntryState.
TolbiInteriors_ApplyEntryState
s32 TolbiInteriors_ApplyEntryState(void)
Sets up the rooms on entry. After Colosso: a row of three map cells takes new attributes, two of the sailors are drawn at a fixed priority, the medal woman stands where she hid the medal, the two short scenes play once each on their entrances, and the would-be warrior and actor 36 have left once the docks refunded the tickets.
TolbiInteriors_TalkToItemShopkeeper
static void TolbiInteriors_TalkToItemShopkeeper(s32 speaker)
The item shopkeeper: from across the counter (the leader facing west) opens shop 28; from elsewhere talks about the finals.
Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.
TolbiInteriors_TalkToWeaponShopkeeper
static void TolbiInteriors_TalkToWeaponShopkeeper(s32 speaker)
The weapon shopkeeper: across the counter (the leader facing north) opens the shop; otherwise talks about Colosso.
Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.
TolbiInteriors_TalkToArmorShopkeeper
static void TolbiInteriors_TalkToArmorShopkeeper(s32 speaker)
The armor shopkeeper: across the counter (the leader facing north) opens the shop; otherwise talks about the finals.
Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.
TolbiInteriors_TalkToChef
static void TolbiInteriors_TalkToChef(s32 speaker)
The chef asks whether the party watched Colosso, which he missed.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_TalkToWaiter
static void TolbiInteriors_TalkToWaiter(s32 speaker)
After Colosso, a waiter grumbles about the chef's bad mood.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_TalkToHost
static void TolbiInteriors_TalkToHost(s32 speaker)
During the festival, a resident offers the party a bed.
Used by gTolbiInteriorsEventsFestival.
TolbiInteriors_TalkToMedalWoman
static void TolbiInteriors_TalkToMedalWoman(s32 speaker)
The woman who hid the Lucky Medal. Until the party takes it from the barrel she teases; once it is gone she greets them, startled, the first time, and then claims she is fine.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_ReadMedalWomanMind
static void TolbiInteriors_ReadMedalWomanMind(void)
Mind Read on the medal woman gives the hiding place away.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_TalkToAngrySailor
static void TolbiInteriors_TalkToAngrySailor(s32 speaker)
The angry sailor complains the ships won't sail after Colosso.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_TalkToWouldBeWarrior
static void TolbiInteriors_TalkToWouldBeWarrior(s32 speaker)
After Colosso, the would-be warrior asks whether the party remembers him.
Used by gTolbiInteriorsEventsAfterColosso.
TolbiInteriors_TalkToPriest
static void TolbiInteriors_TalkToPriest(s32 speaker)
The priest: across the counter (the leader facing north) opens the sanctum; otherwise talks about the festival.
Used by gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay.
Also, functions without a comment: TolbiInteriors_GetEntrances, TolbiInteriors_GetRegions, TolbiInteriors_GetExits.
Macros, without a comment: FLAG_TOLBI_INTERIORS_SAILORS_SEEN, TOLBI_INTERIORS_INN_CAMERA_MAX_Z, TOLBI_INTERIORS_EAST_ROOM_CAMERA_MAX_X, TOLBI_INTERIORS_SOUTH_ROOM_CAMERA_MAX_Z, TOLBI_INTERIORS_INN_CAMERA_MAX_Z, TOLBI_INTERIORS_EAST_ROOM_CAMERA_MAX_X, TOLBI_INTERIORS_SOUTH_ROOM_CAMERA_MAX_Z.
Globals
gTolbiInteriorsSquashStretch
s32 gTolbiInteriorsSquashStretch[]
An actor that squashes and stretches twice, then rests 40 frames.
Used by gTolbiInteriorsPlacementsAfterColosso.
Also, globals without a comment: gTolbiInteriorsEntrances, gTolbiInteriorsExits, gTolbiInteriorsPlacements, gTolbiInteriorsPlacementsAfterColosso, gTolbiInteriorsEventsFestival, gTolbiInteriorsEventsFinalsDay, gTolbiInteriorsEventsAfterColosso, gTolbiInteriorsDoorOpening, gTolbiInteriorsDoors.