Vault after the eruption, while Hammet's Shaman's Rod is missing and after the party has jailed the thieves. More...
Go to the source code of this file.
Enumerations | |
| enum | { VAULT_DRIFT_RATE = PIXELS(1) / 10 } |
| enum | { ACTOR_GREETER = 8 , ACTOR_ERUPTION_WITNESS = 9 , ACTOR_THEFT_GOSSIP = 11 , ACTOR_HAMMET_GOSSIP = 10 , ACTOR_IVAN_GOSSIP = 12 , ACTOR_TRAVELER_WATCHER = 13 , ACTOR_FIRST_WALKER = 14 , ACTOR_SECOND_WALKER = 15 , ACTOR_WATCHMAN = 16 , ACTOR_LOITERING_THIEF = 17 , ACTOR_STRANDED_TRAVELER = 18 , ACTOR_VAULT_DOG = 19 , ACTOR_ROOFER = 20 , ACTOR_ROOF_COMPLAINER = 21 , ACTOR_VAULT_VENUS_DJINNI = 23 , VAULT_VENUS_DJINNI_INDEX = 4 } |
| The townspeople, named by what they say. More... | |
Functions | |
| static void | Vault_ShowStandingActorMessage (s32 actor) |
| Stops an actor, faces the leader and shows the current message. | |
| static void | Vault_ShowMessageAndWait (s32 actor, s32 delay) |
| static void | Vault_FaceActorAndWait (s32 actor, s32 cue, s32 delay) |
| static s32 | Vault_UpdateRoofComplainerProximity (union FieldObject *fieldObject) |
| const struct SceneEntrance * | Scene_GetEntrances (void) |
| const struct SceneRegion * | Scene_GetRegions (void) |
| const u32 * | Scene_GetExits (void) |
| Both scenes share one exit table. | |
| const struct ScenePlacement * | Scene_GetPlacements (void) |
| static int | Vault_GetIvanVenusDjinnCount (void) |
| Counts the Venus Djinn that must leave Ivan before he leaves the party. | |
| static void | Event_IvanStaysBehind (void) |
| Exits 1 and 2 (triggers 20 and 21): while Ivan is helping search for the rod and the thieves are free, he walks out to the gate, says he is still worried about the rod and will wait in Vault, leaves any Venus Djinni with Isaac and leaves the party. | |
| static void | Event_PeerIntoWell (void) |
| Isaac peers into the well and hears water rumbling down there. | |
| const struct SceneEvent * | Scene_GetEvents (void) |
| static void | Vault_AskYesNoAndShowReply (s32 speaker) |
| Asks the current question and selects its ordinary or alternate reply. | |
| static void | Event_AskAboutEruption (void) |
| Asks about the eruption. | |
| static void | Event_AskAboutFleeingTravelers (void) |
| Travelers left town in a big hurry: did the party see them? | |
| static void | Event_ThiefDeniesTheft (void) |
| One of the thieves asks whether the party accuses them; either answer gets a denial. | |
| static void | Event_AskAboutAdventure (void) |
| Asks whether the party is off on an adventure. | |
| static void | Event_TalkOfEruptionThefts (void) |
| Some folks got robbed during the chaos of the eruption. | |
| static void | Event_WatchmanSuspectsOutsiders (void) |
| The watchman: nobody steals on his watch, the thieves must be from out of town. | |
| static void | Event_TalkToDog (void) |
| The dog stops and barks. | |
| static void | Event_PityIvan (void) |
| The first walker stops: poor Ivan was left at the mayor's to look for the stolen rod. | |
| static void | Event_TalkOfHammetsCaravan (void) |
| The second walker stops: Hammet's caravan left as soon as the eruption stopped. | |
| static void | Event_LookForRoofer (void) |
| The roofer should be fixing the roof, but is probably in back slacking off. | |
| static void | Event_AskAboutLeavingAgain (void) |
| After the thieves are jailed, asks whether the party is leaving again. | |
| static void | Event_PraiseThievesCapture (void) |
| Praises the thieves' capture. "It's great that you caught those thieves!". | |
| static void | Event_TalkAboutIvan (void) |
| Ivan went out to Lunpa, or, with Ivan in the party, rescuing Hammet must have been impossible. | |
| static void | Event_TalkOfDamagedRoads (void) |
| The eruption devastated the roads; once the southern bridge is repaired, you can head toward Kalay. | |
| static void | Event_AskWhetherIvanWentToLunpa (void) |
| The first walker hopes Ivan didn't go to Lunpa alone, or, with Ivan in the party, asks when he joined up with Isaac. | |
| static void | Event_ThankForCapturingThieves (void) |
| The second walker: everyone is grateful the party captured the thieves. | |
| static void | Event_AskAboutPrisoners (void) |
| Asks about the prisoners. | |
| static void | Event_AskWhoCapturedThieves (void) |
| Asks who captured the thieves; either answer is praised. | |
| static void | Event_TalkToDogAfterCapture (void) |
| The dog barks; carrying a Bone before it has shown the passage lets the party give it one. | |
| static void | Event_ThankBeforeDeparture (void) |
| Thanks the party before it leaves. | |
| static void | Event_ReadMindOnTheft (void) |
| Mind Read: stealing during an eruption is unforgivable, or how should the prisoners be punished? | |
| static void | Event_ReadMindOnTravelers (void) |
| Mind Read: the strange travelers headed for the northeast of the Goma Range, or the only way out is the cave in the Goma Range. | |
| static void | Event_ReadMindOnIvan (void) |
| Mind Read on the first walker: the three creeps at the inn stole the rod, or where did Ivan go (when did they join him, with Ivan in the party)? | |
| static void | Event_ReadMindOnWealth (void) |
| Mind Read on the second walker: riches can't save you from a volcano, or the party must be stronger than they look. | |
| static void | Event_ReadMindOnSuspects (void) |
| Mind Read on the watchman: everyone knows the three at the inn stole the rod, or he feels much better with them behind bars. | |
| static void | Event_ReadDogMind (void) |
| Mind Read on the dog: humans value money over their lives; after the thieves are jailed, bring a bone for something useful, and once fed, a careful search will reveal a passage. | |
| static void | Event_ReadMindOnRoofer (void) |
| Mind Read: that sneak is wasting time instead of fixing the roof. | |
| static void | Vault_WalkThroughExit (s32 x, s32 y, s32 continuation) |
| Walks to the exit threshold and requests the room's transition. | |
| static void | Event_EnterSoutheastHouse (void) |
| Opens and enters the southeastern house. | |
| static void | Event_EnterCentralEastHouse (void) |
| Opens and enters the house east of the town's center. | |
| static void | Event_EnterCentralHouse (void) |
| Opens and enters the central house. | |
| static void | Event_EnterNortheastHouse (void) |
| Enters the northeastern doorway behind its foreground tiles. | |
| static void | Event_EnterNorthHouse (void) |
| Enters the northern doorway behind its foreground tiles. | |
| static void | Event_EnterNorthwestHouse (void) |
| Opens and enters the northwestern house. | |
| static void | Event_EnterJail (void) |
| The jail door opens and the party walks in, drawn behind the doorway. | |
| static void | Event_EnterPassage (void) |
| The party walks through the doorless entrance into the interiors (exit 13). | |
| static void | Vault_JumpActorToAndWait (s32 actorId, s32 x, s32 z, s32 verticalSpeed) |
| Moves an actor through a jump and waits up to sixty frames for it to settle. | |
| static void | Event_RingBell (void) |
| Isaac rings the bell; the first time, the Venus Djinni hiding nearby jumps out and comes to the bell. | |
| static void | Event_GiveBoneToDog (void) |
| Given a Bone, the dog runs to the hidden passage and jumps there three times. | |
| s32 | Scene_Initialize (void) |
| On arrival: restores the dog's and the Djinni's places, sets the walkers and the roof complainer stopping near the leader, and, while Ivan waits in Vault for the party, has him greet the two and rejoin. | |
| static void | Vault_UpdateDriftingEffect (union FieldObject *fieldObject) |
| Applies drift and gradually damps both rates toward zero. | |
| static UNUSED void | Vault_SpawnDriftingEffect (s32 flags) |
| Spawns a drifting sprite near the dog, sharing its drawing priority. | |
Variables | |
| s32 | gEffectScript0 [] |
| s32 | gEffectScript1 [] |
| s32 | gEffectScript2 [] |
| const s32 * | gEffectScripts [] |
| s32 | gVault_Actor2 [] |
| s32 | gVault_Actor0 [] |
| s32 | gVault_Actor1 [] |
| struct SceneEntrance | gVault_Entrances [] |
| u32 | gVault_Exits [] |
| struct ScenePlacement | gVault_Placements [] |
| struct ScenePlacement | gVault_PlacementsAfterThieves [] |
| struct SceneEvent | gVault_Events [] |
| struct SceneEvent | gVault_EventsAfterThieves [] |
| u16 | gVault_Scene5Cells [] |
| u16 | gVault_Scene6Cells [] |
| u16 | gVault_Scene7Cells [] |
| u16 | gVault_Scene8Cells [] |
| u16 | gVault_Scene9Cells [] |
| u16 | gVault_Scene10Cells [] |
| u16 | gVault_Scene12Cells [] |
| s32 | gVault_DriftScriptA [] |
| s32 | gVault_DriftScriptB [] |
Vault after the eruption, while Hammet's Shaman's Rod is missing and after the party has jailed the thieves.
Definition in file vault.c.
| anonymous enum |
The townspeople, named by what they say.
|
static |
Stops an actor, faces the leader and shows the current message.
Definition at line 338 of file vault.c.
Referenced by Event_PraiseThievesCapture(), Event_TalkAboutIvan(), Event_TalkOfDamagedRoads(), Event_TalkOfEruptionThefts(), Event_WatchmanSuspectsOutsiders(), and Vault_ShowStandingActorMessage().
Definition at line 865 of file vault.c.
Referenced by Event_AskWhetherIvanWentToLunpa(), Event_PityIvan(), Event_TalkOfHammetsCaravan(), Event_ThankForCapturingThieves(), and Vault_ShowMessageAndWait().
Definition at line 870 of file vault.c.
Referenced by Event_AskAboutAdventure(), Event_AskAboutEruption(), Event_AskAboutFleeingTravelers(), Event_AskAboutLeavingAgain(), Event_AskAboutPrisoners(), Event_AskWhetherIvanWentToLunpa(), Event_AskWhoCapturedThieves(), Event_LookForRoofer(), Event_PityIvan(), Event_TalkOfHammetsCaravan(), Event_TalkToDog(), Event_TalkToDogAfterCapture(), Event_ThankBeforeDeparture(), Event_ThankForCapturingThieves(), Event_ThiefDeniesTheft(), Vault_FaceActorAndWait(), and Vault_ShowStandingActorMessage().
|
static |
Definition at line 90 of file vault.c.
Referenced by Scene_Initialize(), and Vault_UpdateRoofComplainerProximity().
| const struct SceneEntrance * Scene_GetEntrances | ( | void | ) |
| const struct SceneRegion * Scene_GetRegions | ( | void | ) |
| const u32 * Scene_GetExits | ( | void | ) |
| const struct ScenePlacement * Scene_GetPlacements | ( | void | ) |
|
static |
Counts the Venus Djinn that must leave Ivan before he leaves the party.
Definition at line 134 of file vault.c.
Referenced by Event_IvanStaysBehind(), and Vault_GetIvanVenusDjinnCount().
|
static |
Exits 1 and 2 (triggers 20 and 21): while Ivan is helping search for the rod and the thieves are free, he walks out to the gate, says he is still worried about the rod and will wait in Vault, leaves any Venus Djinni with Isaac and leaves the party.
Definition at line 144 of file vault.c.
Referenced by Event_IvanStaysBehind().
|
static |
Isaac peers into the well and hears water rumbling down there.
Definition at line 189 of file vault.c.
Referenced by Event_PeerIntoWell(), and Event_PeerIntoWell().
| const struct SceneEvent * Scene_GetEvents | ( | void | ) |
|
inlinestatic |
Asks the current question and selects its ordinary or alternate reply.
Definition at line 203 of file vault.c.
Referenced by Event_AskAboutAdventure(), Event_AskAboutFleeingTravelers(), Event_AskAboutLeavingAgain(), Event_AskAboutPrisoners(), Event_AskWhoCapturedThieves(), Event_ThiefDeniesTheft(), and Vault_AskYesNoAndShowReply().
|
static |
Asks about the eruption.
"Wasn't the eruption of Mt. Aleph incredible?" Yes: too terrified to sleep for days. No: aren't you courageous!
Definition at line 215 of file vault.c.
Referenced by Event_AskAboutEruption().
|
static |
Travelers left town in a big hurry: did the party see them?
Yes: two women and four men, the girl and old man unhappy to be there. No: maybe they left earlier.
Definition at line 231 of file vault.c.
Referenced by Event_AskAboutFleeingTravelers().
|
static |
One of the thieves asks whether the party accuses them; either answer gets a denial.
"Are you accusing us of stealing Hammet's treasured Shaman's Rod?"
Definition at line 243 of file vault.c.
Referenced by Event_ThiefDeniesTheft().
|
static |
Asks whether the party is off on an adventure.
"Off on an adventure, are you?" Yes: impressive for youngsters. No: see the Sanctum while you're here.
Definition at line 254 of file vault.c.
Referenced by Event_AskAboutAdventure().
|
static |
Some folks got robbed during the chaos of the eruption.
Definition at line 264 of file vault.c.
Referenced by Event_TalkOfEruptionThefts().
|
static |
The watchman: nobody steals on his watch, the thieves must be from out of town.
Definition at line 273 of file vault.c.
Referenced by Event_WatchmanSuspectsOutsiders().
|
static |
The dog stops and barks.
Definition at line 281 of file vault.c.
Referenced by Event_TalkToDog(), and Event_TalkToDog().
|
static |
The first walker stops: poor Ivan was left at the mayor's to look for the stolen rod.
Definition at line 292 of file vault.c.
Referenced by Event_PityIvan().
|
static |
The second walker stops: Hammet's caravan left as soon as the eruption stopped.
Definition at line 310 of file vault.c.
Referenced by Event_TalkOfHammetsCaravan().
|
static |
The roofer should be fixing the roof, but is probably in back slacking off.
Definition at line 327 of file vault.c.
Referenced by Event_LookForRoofer().
|
static |
After the thieves are jailed, asks whether the party is leaving again.
"So, you're hitting the road again?"
Definition at line 350 of file vault.c.
Referenced by Event_AskAboutLeavingAgain().
|
static |
Praises the thieves' capture. "It's great that you caught those thieves!".
Definition at line 359 of file vault.c.
Referenced by Event_PraiseThievesCapture().
|
static |
Ivan went out to Lunpa, or, with Ivan in the party, rescuing Hammet must have been impossible.
Definition at line 368 of file vault.c.
Referenced by Event_TalkAboutIvan().
|
static |
The eruption devastated the roads; once the southern bridge is repaired, you can head toward Kalay.
Definition at line 383 of file vault.c.
Referenced by Event_TalkOfDamagedRoads().
|
static |
The first walker hopes Ivan didn't go to Lunpa alone, or, with Ivan in the party, asks when he joined up with Isaac.
Definition at line 392 of file vault.c.
Referenced by Event_AskWhetherIvanWentToLunpa().
|
static |
The second walker: everyone is grateful the party captured the thieves.
Definition at line 411 of file vault.c.
Referenced by Event_ThankForCapturingThieves().
|
static |
Asks about the prisoners.
"Those men you captured... They're in jail now?" Yes: the prison hadn't been used in a long time. No: they're upset; maybe go see them.
Definition at line 430 of file vault.c.
Referenced by Event_AskAboutPrisoners().
|
static |
Asks who captured the thieves; either answer is praised.
"Are you the ones who captured the thieves?"
Definition at line 441 of file vault.c.
Referenced by Event_AskWhoCapturedThieves().
|
static |
The dog barks; carrying a Bone before it has shown the passage lets the party give it one.
Definition at line 451 of file vault.c.
Referenced by Event_TalkToDogAfterCapture().
|
static |
Thanks the party before it leaves.
"Thank you for the other day. Are you leaving town already?"
Definition at line 470 of file vault.c.
Referenced by Event_ThankBeforeDeparture().
|
static |
Mind Read: stealing during an eruption is unforgivable, or how should the prisoners be punished?
Definition at line 482 of file vault.c.
Referenced by Event_ReadMindOnTheft().
|
static |
Mind Read: the strange travelers headed for the northeast of the Goma Range, or the only way out is the cave in the Goma Range.
Definition at line 494 of file vault.c.
Referenced by Event_ReadMindOnTravelers().
|
static |
Mind Read on the first walker: the three creeps at the inn stole the rod, or where did Ivan go (when did they join him, with Ivan in the party)?
Definition at line 507 of file vault.c.
Referenced by Event_ReadMindOnIvan().
|
static |
Mind Read on the second walker: riches can't save you from a volcano, or the party must be stronger than they look.
Definition at line 524 of file vault.c.
Referenced by Event_ReadMindOnWealth().
|
static |
Mind Read on the watchman: everyone knows the three at the inn stole the rod, or he feels much better with them behind bars.
Definition at line 538 of file vault.c.
Referenced by Event_ReadMindOnSuspects().
|
static |
Mind Read on the dog: humans value money over their lives; after the thieves are jailed, bring a bone for something useful, and once fed, a careful search will reveal a passage.
Definition at line 551 of file vault.c.
Referenced by Event_ReadDogMind().
|
static |
Mind Read: that sneak is wasting time instead of fixing the roof.
Definition at line 570 of file vault.c.
Referenced by Event_ReadMindOnRoofer().
Walks to the exit threshold and requests the room's transition.
Definition at line 580 of file vault.c.
Referenced by Event_EnterCentralEastHouse(), Event_EnterCentralHouse(), Event_EnterJail(), Event_EnterNortheastHouse(), Event_EnterNorthHouse(), Event_EnterNorthwestHouse(), Event_EnterPassage(), and Event_EnterSoutheastHouse().
|
static |
|
static |
Opens and enters the house east of the town's center.
Definition at line 595 of file vault.c.
Referenced by Event_EnterCentralEastHouse(), and Event_EnterCentralEastHouse().
|
static |
|
static |
Enters the northeastern doorway behind its foreground tiles.
Definition at line 609 of file vault.c.
Referenced by Event_EnterNortheastHouse(), and Event_EnterNortheastHouse().
|
static |
Enters the northern doorway behind its foreground tiles.
Definition at line 622 of file vault.c.
Referenced by Event_EnterNorthHouse(), and Event_EnterNorthHouse().
|
static |
Opens and enters the northwestern house.
Definition at line 635 of file vault.c.
Referenced by Event_EnterNorthwestHouse(), and Event_EnterNorthwestHouse().
|
static |
The jail door opens and the party walks in, drawn behind the doorway.
Definition at line 644 of file vault.c.
Referenced by Event_EnterJail(), and Event_EnterJail().
|
static |
The party walks through the doorless entrance into the interiors (exit 13).
Definition at line 657 of file vault.c.
Referenced by Event_EnterPassage().
Moves an actor through a jump and waits up to sixty frames for it to settle.
Definition at line 663 of file vault.c.
Referenced by Event_RingBell(), and Vault_JumpActorToAndWait().
|
static |
Isaac rings the bell; the first time, the Venus Djinni hiding nearby jumps out and comes to the bell.
Definition at line 685 of file vault.c.
Referenced by Event_RingBell(), and Event_RingBell().
|
static |
Given a Bone, the dog runs to the hidden passage and jumps there three times.
Definition at line 706 of file vault.c.
Referenced by Event_GiveBoneToDog(), and Event_GiveBoneToDog().
| s32 Scene_Initialize | ( | void | ) |
On arrival: restores the dog's and the Djinni's places, sets the walkers and the roof complainer stopping near the leader, and, while Ivan waits in Vault for the party, has him greet the two and rejoin.
Sets up whichever scene is being entered and runs its arrival events.
|
static |
Applies drift and gradually damps both rates toward zero.
This custom update uses speed/acceleration as its two drift rates and mirrors the resulting position into the actor's target coordinates.
Definition at line 878 of file vault.c.
Referenced by Vault_SpawnDriftingEffect(), and Vault_UpdateDriftingEffect().
Spawns a drifting sprite near the dog, sharing its drawing priority.
Definition at line 903 of file vault.c.
Referenced by Vault_SpawnDriftingEffect().
| s32 gEffectScript0[] |
| s32 gEffectScript1[] |
| s32 gEffectScript2[] |
| const s32* gEffectScripts[] |
| struct SceneEntrance gVault_Entrances[] |
Definition at line 1127 of file vault.c.
Referenced by Scene_GetEntrances().
| u32 gVault_Exits[] |
Definition at line 1143 of file vault.c.
Referenced by Scene_GetExits().
| struct ScenePlacement gVault_Placements[] |
Definition at line 1161 of file vault.c.
Referenced by Scene_GetPlacements().
| struct ScenePlacement gVault_PlacementsAfterThieves[] |
Definition at line 1199 of file vault.c.
Referenced by Scene_GetPlacements().
| struct SceneEvent gVault_Events[] |
Definition at line 1235 of file vault.c.
Referenced by Scene_GetEvents().
| struct SceneEvent gVault_EventsAfterThieves[] |
Definition at line 1283 of file vault.c.
Referenced by Scene_GetEvents().
| u16 gVault_Scene5Cells[] |
Definition at line 1329 of file vault.c.
Referenced by Event_EnterSoutheastHouse().
| u16 gVault_Scene6Cells[] |
Definition at line 1335 of file vault.c.
Referenced by Event_EnterCentralEastHouse().
| u16 gVault_Scene7Cells[] |
Definition at line 1341 of file vault.c.
Referenced by Event_EnterCentralHouse().
| u16 gVault_Scene8Cells[] |
Definition at line 1347 of file vault.c.
Referenced by Event_EnterNortheastHouse().
| u16 gVault_Scene9Cells[] |
Definition at line 1353 of file vault.c.
Referenced by Event_EnterNorthHouse().
| u16 gVault_Scene10Cells[] |
Definition at line 1359 of file vault.c.
Referenced by Event_EnterNorthwestHouse().
| u16 gVault_Scene12Cells[] |
Definition at line 1365 of file vault.c.
Referenced by Event_EnterJail().
| s32 gVault_DriftScriptA[] |