West Lunpa Cave: a gate puzzle of switches and puddles that Frost freezes into pillars, and Bunza, whose wagon carries the party out of Lunpa. More...
Go to the source code of this file.
Functions | |
| static void | Reunion_Converse (void) |
| Explains Bunza's arrival and offers his wagon as a way out of Lunpa. | |
| static void | WagonChoice_Run (void) |
| Reconciles the party's answers until they either ride or stay behind. | |
| static u8 | Leader_AnswersYes (void) |
| The scene menu encodes Yes as zero; expose it as a Boolean to the dialogue. | |
| static u8 | Garet_AsksIfNotRiding (void) |
| Asks whether the party really intends to refuse the ride. | |
| static u8 | Garet_AsksAboutUnfinishedBusiness (void) |
| Asks whether unfinished business explains the refusal to ride. | |
| static u8 | Party_ConfirmsStaying (void) |
| Reserved confirmation step; it always succeeds and displays no message. | |
| static u8 | Bunza_AsksAboutUnfinishedBusiness (void) |
| Lets Bunza check whether the party has unfinished business before leaving. | |
| static u8 | Garet_ChecksNothingLeftToDo (void) |
| Opens Garet's confirmation prompt; WagonChoice_Run collects the answer. | |
| static u8 | Mia_AsksIfRidingAfterAll (void) |
| Asks whether the party has changed its mind about taking the wagon. | |
| static u8 | Bunza_CannotWait (void) |
| Explains that Bunza cannot wait and asks again about the party's business. | |
| static u8 | Garet_AsksAboutThingsToDo (void) |
| Asks the leader to confirm that something still needs doing here. | |
| static void | Party_StaysBehind (void) |
| Sends Hammet and Bunza ahead, then returns the companions to the leader. | |
| static void | Party_RidesWagon (void) |
| Leads everyone down the passage and requests the wagon departure exit. | |
| const struct SceneEntrance * | Scene_GetEntrances (void) |
| const struct SceneRegion * | Scene_GetRegions (void) |
| const u32 * | Scene_GetExits (void) |
| Both passages and the wagon departure return through this exit table. | |
| const struct ScenePlacement * | Scene_GetPlacements (void) |
| Only the cave scene places puddles, Hammet, Bunza and the party members. | |
| const struct SceneEvent * | Scene_GetEvents (void) |
| Routes switches, Frost targets and the reunion trigger to their handlers. | |
| static void | Event_FreezeHiddenPuddle (void) |
| Frost on the hidden puddle: it freezes, and no flag remembers it. | |
| static void | Event_FreezeSouthPuddle (void) |
| Frost on the south puddle: it rises as an ice pillar the party can climb. | |
| static void | Gate_DrawPropped (void) |
| Animates the raised gate resting on the frozen pillar, then opens collision. | |
| static void | Event_FreezeGatePuddle (void) |
| Frost on the puddle under the gate: its pillar props the gate open, and if the gate was down the player sees it rise and hears the puzzle solved. | |
| static void | Event_FreezeNorthPuddle (void) |
| Frost on the north puddle: its pillar stays frozen when the party returns. | |
| static void | Gate_Lower (void) |
| Lowers the gate in four-frame steps and restores the blocked cell attributes. | |
| static void | Event_FlipLoweringSwitch (void) |
| Searching the lowering switch: the hero flips it and the gate comes down, unless it is down already or a frozen pillar props it open. | |
| static void | Gate_Raise (void) |
| Raises the unpropped gate and restores its passable cell attributes. | |
| static void | Event_FlipRaisingSwitch (void) |
| Searching the raising switch: the hero flips it and the gate goes up, unless it is up already or propped open. | |
| static void | Event_HammetFindsBunza (void) |
| Walking past Bunza's hiding place once Lunpa's trade has reopened: Bunza steps out, Hammet knows his voice, and the reunion and the wagon talk follow. | |
| s32 | Scene_Initialize (void) |
| Restores the gate and frozen puddles from the persistent puzzle flags. | |
Variables | |
| const struct SceneEntrance | gCaveEntrances [] |
| const u32 | gCaveExits [] |
| const struct ScenePlacement | gCaveNoPlacements [] |
| const struct ScenePlacement | gCavePlacements [] |
| const struct SceneEvent | gCaveNoEvents [] |
| const struct SceneEvent | gCaveEvents [] |
West Lunpa Cave: a gate puzzle of switches and puddles that Frost freezes into pillars, and Bunza, whose wagon carries the party out of Lunpa.
Definition in file west_lunpa_cave.c.
|
static |
Explains Bunza's arrival and offers his wagon as a way out of Lunpa.
Definition at line 316 of file west_lunpa_cave.c.
Referenced by Event_HammetFindsBunza(), and Reunion_Converse().
|
static |
Reconciles the party's answers until they either ride or stay behind.
Definition at line 611 of file west_lunpa_cave.c.
Referenced by Reunion_Converse(), and WagonChoice_Run().
|
static |
The scene menu encodes Yes as zero; expose it as a Boolean to the dialogue.
Definition at line 673 of file west_lunpa_cave.c.
Referenced by Leader_AnswersYes(), and WagonChoice_Run().
|
static |
Asks whether the party really intends to refuse the ride.
Definition at line 678 of file west_lunpa_cave.c.
Referenced by Garet_AsksIfNotRiding(), and WagonChoice_Run().
|
static |
Asks whether unfinished business explains the refusal to ride.
Definition at line 685 of file west_lunpa_cave.c.
Referenced by Garet_AsksAboutUnfinishedBusiness(), and WagonChoice_Run().
|
static |
Reserved confirmation step; it always succeeds and displays no message.
Definition at line 692 of file west_lunpa_cave.c.
Referenced by Party_ConfirmsStaying(), and WagonChoice_Run().
|
static |
Lets Bunza check whether the party has unfinished business before leaving.
Definition at line 695 of file west_lunpa_cave.c.
Referenced by Bunza_AsksAboutUnfinishedBusiness(), and WagonChoice_Run().
|
static |
Opens Garet's confirmation prompt; WagonChoice_Run collects the answer.
Definition at line 702 of file west_lunpa_cave.c.
Referenced by Garet_ChecksNothingLeftToDo(), and WagonChoice_Run().
|
static |
Asks whether the party has changed its mind about taking the wagon.
Definition at line 709 of file west_lunpa_cave.c.
Referenced by Mia_AsksIfRidingAfterAll(), and WagonChoice_Run().
|
static |
Explains that Bunza cannot wait and asks again about the party's business.
Definition at line 716 of file west_lunpa_cave.c.
Referenced by Bunza_CannotWait(), and WagonChoice_Run().
|
static |
Asks the leader to confirm that something still needs doing here.
Definition at line 736 of file west_lunpa_cave.c.
Referenced by Garet_AsksAboutThingsToDo(), and WagonChoice_Run().
|
static |
Sends Hammet and Bunza ahead, then returns the companions to the leader.
Definition at line 743 of file west_lunpa_cave.c.
Referenced by Party_StaysBehind(), and WagonChoice_Run().
|
static |
Leads everyone down the passage and requests the wagon departure exit.
Definition at line 851 of file west_lunpa_cave.c.
Referenced by Party_RidesWagon(), and WagonChoice_Run().
| const struct SceneEntrance * Scene_GetEntrances | ( | void | ) |
Definition at line 35 of file west_lunpa_cave.c.
| const struct SceneRegion * Scene_GetRegions | ( | void | ) |
Definition at line 37 of file west_lunpa_cave.c.
| const u32 * Scene_GetExits | ( | void | ) |
Both passages and the wagon departure return through this exit table.
Both scenes share one exit table.
Definition at line 40 of file west_lunpa_cave.c.
| const struct ScenePlacement * Scene_GetPlacements | ( | void | ) |
Only the cave scene places puddles, Hammet, Bunza and the party members.
Definition at line 43 of file west_lunpa_cave.c.
| const struct SceneEvent * Scene_GetEvents | ( | void | ) |
Routes switches, Frost targets and the reunion trigger to their handlers.
Definition at line 51 of file west_lunpa_cave.c.
|
static |
Frost on the hidden puddle: it freezes, and no flag remembers it.
Definition at line 54 of file west_lunpa_cave.c.
|
static |
Frost on the south puddle: it rises as an ice pillar the party can climb.
Definition at line 64 of file west_lunpa_cave.c.
Referenced by Event_FreezeSouthPuddle().
|
static |
Animates the raised gate resting on the frozen pillar, then opens collision.
Definition at line 77 of file west_lunpa_cave.c.
Referenced by Event_FreezeGatePuddle(), Gate_DrawPropped(), and Scene_Initialize().
|
static |
Frost on the puddle under the gate: its pillar props the gate open, and if the gate was down the player sees it rise and hears the puzzle solved.
Definition at line 102 of file west_lunpa_cave.c.
Referenced by Event_FreezeGatePuddle().
|
static |
Frost on the north puddle: its pillar stays frozen when the party returns.
Definition at line 120 of file west_lunpa_cave.c.
Referenced by Event_FreezeNorthPuddle().
|
static |
Lowers the gate in four-frame steps and restores the blocked cell attributes.
Definition at line 126 of file west_lunpa_cave.c.
Referenced by Event_FlipLoweringSwitch(), Gate_Lower(), and Scene_Initialize().
|
static |
Searching the lowering switch: the hero flips it and the gate comes down, unless it is down already or a frozen pillar props it open.
"flipped the switch."
Definition at line 152 of file west_lunpa_cave.c.
Referenced by Event_FlipLoweringSwitch().
|
static |
Raises the unpropped gate and restores its passable cell attributes.
Definition at line 165 of file west_lunpa_cave.c.
Referenced by Event_FlipRaisingSwitch(), Gate_Raise(), and Scene_Initialize().
|
static |
Searching the raising switch: the hero flips it and the gate goes up, unless it is up already or propped open.
"flipped the switch."
Definition at line 181 of file west_lunpa_cave.c.
Referenced by Event_FlipRaisingSwitch().
|
static |
Walking past Bunza's hiding place once Lunpa's trade has reopened: Bunza steps out, Hammet knows his voice, and the reunion and the wagon talk follow.
Definition at line 196 of file west_lunpa_cave.c.
Referenced by Event_HammetFindsBunza().
| s32 Scene_Initialize | ( | void | ) |
Restores the gate and frozen puddles from the persistent puzzle flags.
Sets up whichever scene is being entered and runs its arrival events.
Definition at line 942 of file west_lunpa_cave.c.
| const struct SceneEntrance gCaveEntrances[] |
Definition at line 970 of file west_lunpa_cave.c.
Referenced by Scene_GetEntrances().
| const u32 gCaveExits[] |
Definition at line 978 of file west_lunpa_cave.c.
Referenced by Scene_GetExits().
| const struct ScenePlacement gCaveNoPlacements[] |
Definition at line 986 of file west_lunpa_cave.c.
Referenced by Scene_GetPlacements().
| const struct ScenePlacement gCavePlacements[] |
Definition at line 990 of file west_lunpa_cave.c.
Referenced by Scene_GetPlacements().
| const struct SceneEvent gCaveNoEvents[] |
Definition at line 1006 of file west_lunpa_cave.c.
| const struct SceneEvent gCaveEvents[] |
Definition at line 1010 of file west_lunpa_cave.c.
Referenced by Scene_GetEvents().