Alpine Crossing and Lama Temple, two scenes that share this overlay: More...
Go to the source code of this file.
Macros | |
| #define | FLAG_LAMA_TEMPLE_PSYNERGY_STONE 0x350 |
| the temple's Psynergy Stone | |
| #define | SCENE_ALPINE_CROSSING ((s32)&SceneId_AlpineCrossingLamaTemple1) |
| #define | SCENE_LAMA_TEMPLE ((s32)&SceneId_AlpineCrossingLamaTemple2) |
| #define | SEARCH_FACING(facing) |
| A search made while facing the given way. | |
Functions | |
| static s32 | Actor_DrawBehindScenery (struct ScriptInterpreter *interpreter) |
| Draws the actor behind the background, on sprite priority 3 with automatic priority off. | |
| static s32 | Leader_FaceFeizhi (union FieldObject *object) |
| 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 void | LamaTemple_TalkToEastwardMonk (void) |
| The eastward monk asks whether the party came from the east, across Lamakan Desert, and otherwise whether it stopped in Xian. | |
| static void | LamaTemple_TalkToMeditatingMonk (void) |
| The meditating monk explains meditation. | |
| static void | LamaTemple_TalkToChiMonk (void) |
| The monk who praises Master Hama as the greatest master of Chi. | |
| static void | LamaTemple_EnterHamasRoom (void) |
| Walking north into the door of Hama's room slides it open and walks the party leader through, into the room. | |
| static void | LamaTemple_RunHamasFarewell (void) |
| Hama's farewell, once the party has freed Hsu: she thanks the Adepts, Garet and Mia squabble over whose idea helping was, and Hama goes back to her room. | |
| static void | LamaTemple_ReadWallWriting (void) |
| Searching the temple wall reads its writing, the hint toward Reveal. | |
| static void | LamaTemple_ShowFalseWall (void) |
| Puts the false wall back when Reveal's light ends (and on entry): the wall's cell blocks the way again, the passage's map object is hidden and the wall actor stands in front of it. | |
| static void | LamaTemple_RevealPassage (void) |
| Reveal shows the passage behind the false wall: the cell's original attributes (saved at (21, 73) on entry) come back, the passage's map object returns to its place and the wall actor is put away. | |
| static void | LamaTemple_TalkToHealer (void) |
| The traveling healer offers the sanctum's services when spoken to across his counter, from the south; from any other side he only greets the party. | |
| static void | AlpineCrossing_FeizhiArrives (void) |
| When the party steps onto the road by the rockslide, once Feizhi has set out after Hsu, she runs up behind it: she finds the boulders blocking the Silk Road, cries out for Hsu and runs ahead along the path to look for him, the party leader following part of the way. | |
| static void | AlpineCrossing_TalkToFeizhi (void) |
| Feizhi, before Xian hears of the accident, asks whether she should return to Xian; either way she decides to keep looking for Hsu. | |
| static void | AlpineCrossing_HamaReachesHsu (void) |
| Master Hama, kneeling by Hsu, asks if he is hurt; he is unhurt but cannot move, and none of them knows how to free him. | |
| static void | AlpineCrossing_LiftBoulder (void) |
| Lift on the boulder: it floats, and Hama and Feizhi pull Hsu free in two heaves of two tugs each, asking the leader in between to hold on. | |
| static void | AlpineCrossing_ReadSignpost (void) |
| Searching the signpost. "North: Altin Mine. West: Lama Temple.". | |
| static void | AlpineCrossing_RevealPath (void) |
| Reveal shows the path hidden at (5, 13): the revealed cells, kept at (5, 28), are copied there with their attributes. | |
| static void | AlpineCrossing_HidePath (void) |
| When Reveal's light ends, the plain cells kept at (6, 28) cover the path again. | |
| static s32 | Pillar_SortAgainstLeader (union FieldObject *object) |
| static void | AlpineCrossing_PrepareFrost (void) |
| As Frost reaches the puddle, a leader standing north of it sees the pillar rise in front of the background. | |
| static void | AlpineCrossing_FreezePuddle (void) |
| Frost freezes the puddle into a pillar the party can climb: it stops blocking movement and moving, sorts itself against the leader each frame, and the cells beside it (and their copy at (20, 18)) become walkable. | |
| static void | AlpineCrossing_GrowSprout (void) |
| Growth grows the sprout into a vine the party can climb: the two cells above it take the climbable attributes kept at (14, 6). | |
| const struct SceneEvent * | Scene_GetEvents (void) |
| s32 | Scene_Initialize (void) |
| Sets up whichever scene is being entered and runs its arrival events. | |
Variables | |
| s32 | gAlpineCrossing_WorkerPlacementScript [] |
| The first worker's placement script: draw him behind the background. | |
| s32 | gAlpineCrossing_FeizhiPath [] |
| Feizhi's run down the path toward Hsu, walking, then standing. | |
| s32 | gAlpineCrossing_LeaderPath [] |
| The party leader follows Feizhi most of the way. | |
| s32 | gAlpineCrossing_HsuStruggle [] |
| Hsu, pinned under the boulder, struggles now and then. | |
| u16 | gLamaTemple_DoorOpenCells [] |
| The door of Hama's room sliding open, and shut again. | |
| u16 | gLamaTemple_DoorCloseCells [] |
| struct SceneEntrance | gLamaTemple_Entrances [] |
| struct SceneEntrance | gAlpineCrossing_Entrances [] |
| u32 | gAlpineCrossingLamaTemple_Exits [] |
| struct ScenePlacement | gLamaTemple_Placements [] |
| struct ScenePlacement | gAlpineCrossing_Placements [] |
| struct SceneEvent | gLamaTemple_Events [] |
| struct SceneEvent | gAlpineCrossing_Events [] |
Alpine Crossing and Lama Temple, two scenes that share this overlay:
Definition in file alpine_crossing_lama_temple.c.
| #define FLAG_LAMA_TEMPLE_PSYNERGY_STONE 0x350 |
the temple's Psynergy Stone
Definition at line 40 of file alpine_crossing_lama_temple.c.
| #define SCENE_ALPINE_CROSSING ((s32)&SceneId_AlpineCrossingLamaTemple1) |
Definition at line 42 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEntrances(), Scene_GetEvents(), Scene_GetPlacements(), and Scene_Initialize().
| #define SCENE_LAMA_TEMPLE ((s32)&SceneId_AlpineCrossingLamaTemple2) |
Definition at line 43 of file alpine_crossing_lama_temple.c.
Referenced by Scene_Initialize().
| #define SEARCH_FACING | ( | facing | ) |
A search made while facing the given way.
Definition at line 115 of file alpine_crossing_lama_temple.c.
| enum LamaTempleActor |
Lama Temple's actors.
Garet, Ivan and Mia are placed in their own party slots for Hama's farewell; the others count from ACTOR_FIRST_PLACED.
| Enumerator | |
|---|---|
| ACTOR_TEMPLE_HAMA | |
| ACTOR_GREETING_MONK | |
| ACTOR_EASTWARD_MONK | |
| ACTOR_MEDITATING_MONK | |
| ACTOR_ANXIOUS_MONK | |
| ACTOR_CHI_MONK | |
| ACTOR_FALSE_WALL | |
| ACTOR_TRAVELING_HEALER | |
Definition at line 47 of file alpine_crossing_lama_temple.c.
| enum AlpineCrossingActor |
Alpine Crossing's actors.
| Enumerator | |
|---|---|
| ACTOR_HAMA | |
| ACTOR_HSU | |
| ACTOR_FEIZHI | |
| ACTOR_BOULDER | |
| ACTOR_FIRST_WORKER | |
| ACTOR_SECOND_WORKER | |
| ACTOR_PUDDLE | |
| ACTOR_SPROUT | |
Definition at line 59 of file alpine_crossing_lama_temple.c.
| enum LamaTempleEntrance |
| Enumerator | |
|---|---|
| TEMPLE_ENTRANCE_FROM_HAMAS_ROOM | |
| TEMPLE_ENTRANCE_FAREWELL | |
Definition at line 70 of file alpine_crossing_lama_temple.c.
| Enumerator | |
|---|---|
| CROSSING_ENTRANCE_FROM_LAMA_TEMPLE | |
| CROSSING_ENTRANCE_4 | |
| CROSSING_ENTRANCE_5 | |
Definition at line 75 of file alpine_crossing_lama_temple.c.
| anonymous enum |
The exit that takes the party from the rescue to Hama's farewell, at Lama Temple's entrance 3.
| Enumerator | |
|---|---|
| CROSSING_EXIT_TO_FAREWELL | |
Definition at line 83 of file alpine_crossing_lama_temple.c.
| anonymous enum |
Alpine Crossing's Psynergy puzzles, kept while the party stays.
| Enumerator | |
|---|---|
| FLAG_PUDDLE_FROZEN | |
| FLAG_SPROUT_GROWN | |
Definition at line 86 of file alpine_crossing_lama_temple.c.
| anonymous enum |
| Enumerator | |
|---|---|
| ANIM_HAMA_PULL | |
| ANIM_FEIZHI_PULL | |
| ANIM_HSU_STRUGGLE | |
| ANIM_MONK_MEDITATE | |
| ANIM_FROZEN | |
| ANIM_GROWN | |
Definition at line 91 of file alpine_crossing_lama_temple.c.
| anonymous enum |
Map triggers that the events below refer to.
| Enumerator | |
|---|---|
| TRIGGER_TEMPLE_DOOR | |
| TRIGGER_TEMPLE_WALL_WRITING | |
| TRIGGER_SIGNPOST | |
| TRIGGER_CHEST | |
| TRIGGER_FEIZHI_ARRIVAL | |
| TRIGGER_STONE | |
Definition at line 101 of file alpine_crossing_lama_temple.c.
| anonymous enum |
The door of Hama's room, three cells wide and two high: each step copies the next door picture onto it for five frames.
| Enumerator | |
|---|---|
| DOOR_X | |
| DOOR_Y | |
Definition at line 112 of file alpine_crossing_lama_temple.c.
| anonymous enum |
The map object that draws the passage behind the false wall.
| Enumerator | |
|---|---|
| MAP_OBJECT_PASSAGE | |
Definition at line 118 of file alpine_crossing_lama_temple.c.
|
static |
Draws the actor behind the background, on sprite priority 3 with automatic priority off.
The first worker from Xian runs it from his placement.
Definition at line 122 of file alpine_crossing_lama_temple.c.
Referenced by Actor_DrawBehindScenery().
|
static |
Definition at line 137 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FeizhiArrives(), and Leader_FaceFeizhi().
| const struct SceneEntrance * Scene_GetEntrances | ( | void | ) |
Definition at line 150 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEntrances(), and STATIC_ASSERT().
| const struct SceneRegion * Scene_GetRegions | ( | void | ) |
Definition at line 157 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetRegions(), and STATIC_ASSERT().
| const u32 * Scene_GetExits | ( | void | ) |
Both scenes share one exit table.
Definition at line 160 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetExits(), and STATIC_ASSERT().
| const struct ScenePlacement * Scene_GetPlacements | ( | void | ) |
Definition at line 162 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetPlacements(), and STATIC_ASSERT().
|
static |
The eastward monk asks whether the party came from the east, across Lamakan Desert, and otherwise whether it stopped in Xian.
Definition at line 171 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_TalkToEastwardMonk().
|
static |
The meditating monk explains meditation.
Definition at line 189 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_TalkToMeditatingMonk().
|
static |
The monk who praises Master Hama as the greatest master of Chi.
Definition at line 197 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_TalkToChiMonk().
|
static |
Walking north into the door of Hama's room slides it open and walks the party leader through, into the room.
Definition at line 206 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_EnterHamasRoom().
|
static |
Hama's farewell, once the party has freed Hsu: she thanks the Adepts, Garet and Mia squabble over whose idea helping was, and Hama goes back to her room.
Ivan wonders aloud about what Hama told him, and the others walk out ahead of the party leader. Mia's question is a yes or no choice.
Definition at line 222 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_RunHamasFarewell(), and Scene_Initialize().
|
static |
Searching the temple wall reads its writing, the hint toward Reveal.
Definition at line 417 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_ReadWallWriting().
|
static |
Puts the false wall back when Reveal's light ends (and on entry): the wall's cell blocks the way again, the passage's map object is hidden and the wall actor stands in front of it.
Definition at line 428 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_ShowFalseWall(), and Scene_Initialize().
|
static |
Reveal shows the passage behind the false wall: the cell's original attributes (saved at (21, 73) on entry) come back, the passage's map object returns to its place and the wall actor is put away.
Definition at line 438 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_RevealPassage().
|
static |
The traveling healer offers the sanctum's services when spoken to across his counter, from the south; from any other side he only greets the party.
Definition at line 446 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_TalkToHealer().
|
static |
When the party steps onto the road by the rockslide, once Feizhi has set out after Hsu, she runs up behind it: she finds the boulders blocking the Silk Road, cries out for Hsu and runs ahead along the path to look for him, the party leader following part of the way.
Definition at line 464 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FeizhiArrives().
|
static |
Feizhi, before Xian hears of the accident, asks whether she should return to Xian; either way she decides to keep looking for Hsu.
Definition at line 529 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_TalkToFeizhi().
|
static |
Master Hama, kneeling by Hsu, asks if he is hurt; he is unhurt but cannot move, and none of them knows how to free him.
Definition at line 546 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_HamaReachesHsu(), and Scene_Initialize().
|
static |
Lift on the boulder: it floats, and Hama and Feizhi pull Hsu free in two heaves of two tugs each, asking the leader in between to hold on.
Hsu is free; they will ask Master Feh to tend him and clear the road, and the scene fades out to Hama's farewell at Lama Temple.
Definition at line 586 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_LiftBoulder().
|
static |
Searching the signpost. "North: Altin Mine. West: Lama Temple.".
Definition at line 706 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_ReadSignpost().
|
static |
Reveal shows the path hidden at (5, 13): the revealed cells, kept at (5, 28), are copied there with their attributes.
Definition at line 715 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_RevealPath().
|
static |
When Reveal's light ends, the plain cells kept at (6, 28) cover the path again.
Definition at line 723 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_HidePath().
|
static |
Definition at line 737 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FreezePuddle(), and Pillar_SortAgainstLeader().
|
static |
As Frost reaches the puddle, a leader standing north of it sees the pillar rise in front of the background.
Definition at line 749 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_PrepareFrost().
|
static |
Frost freezes the puddle into a pillar the party can climb: it stops blocking movement and moving, sorts itself against the leader each frame, and the cells beside it (and their copy at (20, 18)) become walkable.
Also run on entry while the pillar is already frozen.
Definition at line 762 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FreezePuddle(), and Scene_Initialize().
|
static |
Growth grows the sprout into a vine the party can climb: the two cells above it take the climbable attributes kept at (14, 6).
Also run on entry while the vine is already grown.
Definition at line 788 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_GrowSprout(), and Scene_Initialize().
| const struct SceneEvent * Scene_GetEvents | ( | void | ) |
Definition at line 796 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEvents(), and STATIC_ASSERT().
| s32 Scene_Initialize | ( | void | ) |
Sets up whichever scene is being entered and runs its arrival events.
Definition at line 804 of file alpine_crossing_lama_temple.c.
Referenced by Scene_Initialize(), and STATIC_ASSERT().
| s32 gAlpineCrossing_WorkerPlacementScript[] |
The first worker's placement script: draw him behind the background.
Definition at line 902 of file alpine_crossing_lama_temple.c.
| s32 gAlpineCrossing_FeizhiPath[] |
Feizhi's run down the path toward Hsu, walking, then standing.
Definition at line 908 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FeizhiArrives().
| s32 gAlpineCrossing_LeaderPath[] |
The party leader follows Feizhi most of the way.
Definition at line 927 of file alpine_crossing_lama_temple.c.
Referenced by AlpineCrossing_FeizhiArrives().
| s32 gAlpineCrossing_HsuStruggle[] |
Hsu, pinned under the boulder, struggles now and then.
Definition at line 944 of file alpine_crossing_lama_temple.c.
Referenced by Scene_Initialize().
| u16 gLamaTemple_DoorOpenCells[] |
The door of Hama's room sliding open, and shut again.
Definition at line 959 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_EnterHamasRoom(), and LamaTemple_RunHamasFarewell().
| u16 gLamaTemple_DoorCloseCells[] |
Definition at line 965 of file alpine_crossing_lama_temple.c.
Referenced by LamaTemple_RunHamasFarewell().
| struct SceneEntrance gLamaTemple_Entrances[] |
Definition at line 971 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEntrances().
| struct SceneEntrance gAlpineCrossing_Entrances[] |
Definition at line 980 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEntrances().
| u32 gAlpineCrossingLamaTemple_Exits[] |
Definition at line 990 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetExits().
| struct ScenePlacement gLamaTemple_Placements[] |
Definition at line 998 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetPlacements().
| struct ScenePlacement gAlpineCrossing_Placements[] |
Definition at line 1024 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetPlacements().
| struct SceneEvent gLamaTemple_Events[] |
Definition at line 1044 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEvents().
| struct SceneEvent gAlpineCrossing_Events[] |
Definition at line 1080 of file alpine_crossing_lama_temple.c.
Referenced by Scene_GetEvents().