Kalay, in six maps: the town, the palace gate, the cave by the palace's secret passage, two more maps and the tunnel with the two blocks. More...
Go to the source code of this file.
Macros | |
| #define | TILE_STEP(dx, dz) |
Functions | |
| static void | Kalay_PrepareTown (void) |
| Once Lunpa's trade has reopened, Hammet's palace flags (0x321 and 0x912 to 0x915) are set. | |
| static void | Kalay_PreparePalaceGate (void) |
| The palace flags as in the town; walking up to the gate the first time, Ivan introduces himself to the guards. | |
| static void | Kalay_PrepareCave (void) |
| The cave's Nut floats until caught, the guard turns after flag 0x915, and arriving through entrance 10 brings Hammet back by wagon. | |
| static void | Kalay_StartWindowTransition (void) |
| The fifth map opens with a window transition. | |
| static void | Kalay_PrepareTunnel (void) |
| The tunnel: the fade overlay follows the leader unless he came in by entrance 4; pushed blocks, frozen target and opened passages are restored. | |
| static void | Kalay_StartTouristsFidgeting (void) |
| All eight tourists start fidgeting. | |
| static void | Kalay_StartTouristFidgeting (s32 actorId) |
| A tourist starts fidgeting after a random pause. | |
| static void | Kalay_StartGuidesPacing (void) |
| The guides speed up and start pacing in turn. | |
| static void | Kalay_AlternateGuidesPacing (void) |
| Each guide paces in turn, starting when the other finishes. | |
| static void | Kalay_IvanMeetsPalaceGuards (void) |
| At the palace gate the guards turn the party away until they recognize Ivan, tanned and grown, and learn that he does not know Hammet is a prisoner. | |
| static void | Kalay_HammetReturnsToPalace (void) |
| Arriving through the cave's entrance 10, Hammet comes home by Bunza's wagon with the party. | |
| static void | Kalay_UpdateTunnelPassages (void) |
| Once a block is pushed far enough west, its passage opens step by step and the frost target appears for the first. | |
| static void | Kalay_UpdateTunnelEmitters (void) |
| Particles stream from each block while its passage is closed. | |
| static void | Kalay_SpawnTunnelParticle (s32 x, s32 height, s32 z) |
| Creates a short-lived particle with random position and velocity offsets. | |
| static void | Kalay_UpdateNutOrbit (void) |
| The town Nut circles its spot and rocks as it goes. | |
| static __inline__ void | Kalay_ClearScriptDone (struct FieldActor *actor) |
| Clears the flag a guide's script sets when it is done. | |
| static void | Kalay_RecruitDjinn (void) |
| Talking to the Mars Djinni in the tunnel adds it to the party. | |
| static s32 | Kalay_UpdateTouristFidget (struct ScriptInterpreter *interpreter) |
| While the tour waits, a tourist now and then nods, shakes his head or turns. | |
| const struct SceneEntrance * | Kalay_GetEntrances (void) |
| const struct SceneRegion * | Kalay_GetRegions (void) |
| const u32 * | Kalay_GetExits (void) |
| The numbered exits of all six maps. | |
| const struct ScenePlacement * | Kalay_GetPlacements (void) |
| The people of the town, palace gate, cave and tunnel. | |
| static void | Kalay_SearchWell (void) |
| Searching the town well: the party peers in, and it is very clean. | |
| static void | Kalay_CatchCaveNut (void) |
| Catch pulls in the Nut floating in the cave. | |
| const struct SceneEvent * | Kalay_GetEvents (void) |
| The conversations, exits and Psynergy targets of each map. | |
| static void | Kalay_TalkAboutLeavingHome (void) |
| A man tells why he moved to Kalay: he left Tolbi, afraid of Babi. | |
| static void | Kalay_AskAboutCaveAccess (void) |
| Spoken to from any side but the north, the cave guard asks whether the party wants to go into the cave, and turns it away either way. | |
| static void | Kalay_TalkAboutLayana (void) |
| In the tunnel, a man asks whether Layana was too hard on the party. | |
| static void | Kalay_TalkToWeaponMerchant (void) |
| Across the counter, the leader facing north, the weapon shop opens; from elsewhere the merchant grumbles that Hammet sells his best weapons away. | |
| static void | Kalay_TalkToArmorMerchant (void) |
| Across the counter, the leader facing west to north, the armor shop opens; from elsewhere the merchant asks whether the party found its weapons. | |
| static void | Kalay_TalkToItemMerchant (void) |
| Across the counter, the leader facing east, the item shop opens; from elsewhere the merchant praises Lady Layana. | |
| static void | Kalay_OpenDoorAndExit (void) |
| Walking north into a house door, everyone stops, the door opens and the leader walks in. | |
| static __inline__ void | Kalay_AnimatePalaceDoor (void) |
| The palace door opens in two frames. | |
| static void | Kalay_EnterPalace (void) |
| Walking north into the palace door, it opens and the leader walks in. | |
| static void | Kalay_WatchTourGroupDeparture (void) |
| Leaving town (triggers 9 and 10) after hearing of the Colosso tour, the party watches the tour group stop: the guides count everyone, pace back and forth while the tourists grumble, give up on the missing man and lead the group off. | |
| static void | Kalay_StopTrackingLeader (void) |
| Touching trigger 10 in the tunnel stops the fade overlay following the leader. | |
| static void | Kalay_StartTrackingLeader (void) |
| Touching trigger 11 in the tunnel makes the fade overlay follow the leader. | |
| static void | Kalay_EnableLeaderAutomaticPriority (void) |
| Trigger 19 in the tunnel: the leader's depth priority follows his position. | |
| static void | Kalay_DisableLeaderAutomaticPriority (void) |
| Trigger 18 in the tunnel: the leader's depth priority stays fixed. | |
| static void | Kalay_CatchTownNut (void) |
| Catch pulls in the Nut circling in the town. | |
| s32 | Kalay_Initialize (void) |
| Every map of Kalay sets flag 0x87a, then prepares its own people and cells. | |
| static void | Kalay_PushTunnelBlock (void) |
| In the tunnel, walking into a block pushes it one tile when there is room. | |
| static void | Kalay_UpdateTunnelParticle (struct ScriptInterpreter *interpreter) |
| static void | Kalay_FreezeFrostTarget (void) |
| Frost on the target sinks it into the floor, clearing its cells. | |
Kalay, in six maps: the town, the palace gate, the cave by the palace's secret passage, two more maps and the tunnel with the two blocks.
Leaving town after hearing of the Colosso tour, the party watches the tour group stop and set off without its missing man.
Definition in file kalay.c.
| #define TILE_STEP | ( | dx, | |
| dz ) |
| enum KalayActor |
Kalay's maps share actor numbers; each is named on the map it is proved.
| enum KalayTunnelFlag |
The tunnel's own flags, kept while the party is there.
|
static |
Once Lunpa's trade has reopened, Hammet's palace flags (0x321 and 0x912 to 0x915) are set.
Until it is caught, the Nut circles above the town.
Definition at line 939 of file kalay.c.
Referenced by Kalay_Initialize(), and Kalay_PrepareTown().
|
static |
The palace flags as in the town; walking up to the gate the first time, Ivan introduces himself to the guards.
Definition at line 986 of file kalay.c.
Referenced by Kalay_Initialize(), and Kalay_PreparePalaceGate().
|
static |
The cave's Nut floats until caught, the guard turns after flag 0x915, and arriving through entrance 10 brings Hammet back by wagon.
Definition at line 1005 of file kalay.c.
Referenced by Kalay_Initialize(), and Kalay_PrepareCave().
|
static |
The fifth map opens with a window transition.
After flag 0x915 its passage cells are open; entrances 1 to 3 start sound 170.
Definition at line 1022 of file kalay.c.
Referenced by Kalay_Initialize(), and Kalay_StartWindowTransition().
|
static |
The tunnel: the fade overlay follows the leader unless he came in by entrance 4; pushed blocks, frozen target and opened passages are restored.
Definition at line 1040 of file kalay.c.
Referenced by Kalay_Initialize(), and Kalay_PrepareTunnel().
|
static |
All eight tourists start fidgeting.
Definition at line 1215 of file kalay.c.
Referenced by Kalay_StartTouristsFidgeting(), and Kalay_WatchTourGroupDeparture().
|
static |
A tourist starts fidgeting after a random pause.
Definition at line 1227 of file kalay.c.
Referenced by Kalay_StartTouristFidgeting(), Kalay_StartTouristsFidgeting(), and Kalay_WatchTourGroupDeparture().
|
static |
The guides speed up and start pacing in turn.
Definition at line 1239 of file kalay.c.
Referenced by Kalay_StartGuidesPacing(), and Kalay_WatchTourGroupDeparture().
|
static |
Each guide paces in turn, starting when the other finishes.
Definition at line 1248 of file kalay.c.
Referenced by Kalay_AlternateGuidesPacing(), Kalay_StartGuidesPacing(), and Kalay_WatchTourGroupDeparture().
|
static |
At the palace gate the guards turn the party away until they recognize Ivan, tanned and grown, and learn that he does not know Hammet is a prisoner.
Ivan insists his friends hear everything, and the guards open the door for the party.
Definition at line 1288 of file kalay.c.
Referenced by Kalay_IvanMeetsPalaceGuards(), and Kalay_PreparePalaceGate().
|
static |
Arriving through the cave's entrance 10, Hammet comes home by Bunza's wagon with the party.
Hammet explains the secret passage to the palace and asks Bunza to take the party round through the town, so the passage stays secret; the cave guard opens it, Hammet goes in and the party rides off.
Definition at line 1471 of file kalay.c.
Referenced by Kalay_HammetReturnsToPalace(), and Kalay_PrepareCave().
|
static |
Once a block is pushed far enough west, its passage opens step by step and the frost target appears for the first.
Definition at line 1816 of file kalay.c.
Referenced by Kalay_PushTunnelBlock(), and Kalay_UpdateTunnelPassages().
|
static |
Particles stream from each block while its passage is closed.
Definition at line 1981 of file kalay.c.
Referenced by Kalay_PrepareTunnel(), and Kalay_UpdateTunnelEmitters().
Creates a short-lived particle with random position and velocity offsets.
Definition at line 2014 of file kalay.c.
Referenced by Kalay_SpawnTunnelParticle(), and Kalay_UpdateTunnelEmitters().
|
static |
The town Nut circles its spot and rocks as it goes.
Definition at line 2052 of file kalay.c.
Referenced by Kalay_CatchTownNut(), Kalay_PrepareTown(), and Kalay_UpdateNutOrbit().
|
static |
Clears the flag a guide's script sets when it is done.
Definition at line 109 of file kalay.c.
Referenced by Kalay_AlternateGuidesPacing(), and Kalay_ClearScriptDone().
|
static |
Talking to the Mars Djinni in the tunnel adds it to the party.
Definition at line 116 of file kalay.c.
Referenced by Kalay_RecruitDjinn().
|
static |
While the tour waits, a tourist now and then nods, shakes his head or turns.
Definition at line 121 of file kalay.c.
Referenced by Kalay_UpdateTouristFidget().
| const struct SceneEntrance * Kalay_GetEntrances | ( | void | ) |
Definition at line 152 of file kalay.c.
Referenced by Kalay_GetEntrances().
| const struct SceneRegion * Kalay_GetRegions | ( | void | ) |
Definition at line 176 of file kalay.c.
Referenced by Kalay_GetRegions().
| const u32 * Kalay_GetExits | ( | void | ) |
The numbered exits of all six maps.
Definition at line 179 of file kalay.c.
Referenced by Kalay_GetExits().
| const struct ScenePlacement * Kalay_GetPlacements | ( | void | ) |
The people of the town, palace gate, cave and tunnel.
Definition at line 182 of file kalay.c.
Referenced by Kalay_GetPlacements().
|
static |
Searching the town well: the party peers in, and it is very clean.
Definition at line 201 of file kalay.c.
Referenced by Kalay_SearchWell().
|
static |
Catch pulls in the Nut floating in the cave.
Definition at line 209 of file kalay.c.
Referenced by Kalay_CatchCaveNut().
| const struct SceneEvent * Kalay_GetEvents | ( | void | ) |
The conversations, exits and Psynergy targets of each map.
Definition at line 219 of file kalay.c.
Referenced by Kalay_GetEvents().
|
static |
A man tells why he moved to Kalay: he left Tolbi, afraid of Babi.
Definition at line 244 of file kalay.c.
Referenced by Kalay_TalkAboutLeavingHome().
|
static |
Spoken to from any side but the north, the cave guard asks whether the party wants to go into the cave, and turns it away either way.
Definition at line 253 of file kalay.c.
Referenced by Kalay_AskAboutCaveAccess().
|
static |
In the tunnel, a man asks whether Layana was too hard on the party.
Definition at line 280 of file kalay.c.
Referenced by Kalay_TalkAboutLayana().
|
static |
Across the counter, the leader facing north, the weapon shop opens; from elsewhere the merchant grumbles that Hammet sells his best weapons away.
Definition at line 289 of file kalay.c.
Referenced by Kalay_TalkToWeaponMerchant().
|
static |
Across the counter, the leader facing west to north, the armor shop opens; from elsewhere the merchant asks whether the party found its weapons.
Definition at line 307 of file kalay.c.
Referenced by Kalay_TalkToArmorMerchant().
|
static |
Across the counter, the leader facing east, the item shop opens; from elsewhere the merchant praises Lady Layana.
Definition at line 325 of file kalay.c.
Referenced by Kalay_TalkToItemMerchant().
|
static |
Walking north into a house door, everyone stops, the door opens and the leader walks in.
Definition at line 343 of file kalay.c.
Referenced by Kalay_OpenDoorAndExit().
|
static |
The palace door opens in two frames.
Definition at line 379 of file kalay.c.
Referenced by Kalay_AnimatePalaceDoor(), Kalay_EnterPalace(), and Kalay_IvanMeetsPalaceGuards().
|
static |
Walking north into the palace door, it opens and the leader walks in.
Definition at line 388 of file kalay.c.
Referenced by Kalay_EnterPalace().
|
static |
Leaving town (triggers 9 and 10) after hearing of the Colosso tour, the party watches the tour group stop: the guides count everyone, pace back and forth while the tourists grumble, give up on the missing man and lead the group off.
The late tourist then runs after it. Otherwise the party leaves.
Definition at line 406 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
|
static |
Touching trigger 10 in the tunnel stops the fade overlay following the leader.
Definition at line 867 of file kalay.c.
Referenced by Kalay_StopTrackingLeader().
|
static |
Touching trigger 11 in the tunnel makes the fade overlay follow the leader.
Definition at line 875 of file kalay.c.
Referenced by Kalay_StartTrackingLeader(), and Kalay_UpdateTunnelPassages().
|
static |
Trigger 19 in the tunnel: the leader's depth priority follows his position.
Definition at line 886 of file kalay.c.
Referenced by Kalay_EnableLeaderAutomaticPriority().
|
static |
Trigger 18 in the tunnel: the leader's depth priority stays fixed.
Definition at line 897 of file kalay.c.
Referenced by Kalay_DisableLeaderAutomaticPriority().
|
static |
Catch pulls in the Nut circling in the town.
Definition at line 908 of file kalay.c.
Referenced by Kalay_CatchTownNut().
| s32 Kalay_Initialize | ( | void | ) |
Every map of Kalay sets flag 0x87a, then prepares its own people and cells.
Definition at line 918 of file kalay.c.
Referenced by Kalay_Initialize().
|
static |
In the tunnel, walking into a block pushes it one tile when there is room.
Definition at line 1765 of file kalay.c.
Referenced by Kalay_PushTunnelBlock().
|
static |
Definition at line 1943 of file kalay.c.
Referenced by Kalay_UpdateTunnelParticle().
|
static |
Frost on the target sinks it into the floor, clearing its cells.
Definition at line 2071 of file kalay.c.
Referenced by Kalay_FreezeFrostTarget().
| s32 gKalay_TileStepByFacing[] |
Definition at line 2095 of file kalay.c.
Referenced by Kalay_PushTunnelBlock().
| s32 gKalay_TourGroupWalkScript[] |
Definition at line 2102 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
| s32 gKalay_TourGroupLeaveScript[] |
Definition at line 2109 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
| s32 gKalay_TouristFidgetScript[] |
Definition at line 2121 of file kalay.c.
Referenced by Kalay_StartTouristFidgeting().
| s32 gKalay_GuideCountScript[] |
| s32 gKalay_GuidePaceScript[] |
Definition at line 2155 of file kalay.c.
Referenced by Kalay_AlternateGuidesPacing(), and Kalay_WatchTourGroupDeparture().
| s32 gKalay_HeadGuideStopScript[] |
Definition at line 2172 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
| s32 gKalay_SecondGuideStopScript[] |
Definition at line 2190 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
| s32 gKalay_HeadGuideReturnScript[] |
| s32 gKalay_SecondGuideReturnScript[] |
| s32 gKalay_PartyFidgetScript[] |
Definition at line 2234 of file kalay.c.
Referenced by Kalay_HammetReturnsToPalace().
| s32 gKalay_PartyGatherScript[] |
| s32 gKalay_FrostGrowScript[] |
Definition at line 2245 of file kalay.c.
Referenced by Kalay_UpdateTunnelPassages().
| struct SceneEntrance gKalay_NoEntrances[] |
Definition at line 2253 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_TownEntrances[] |
Definition at line 2258 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_PalaceGateEntrances[] |
Definition at line 2277 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_CaveEntrances[] |
Definition at line 2284 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_Entrances4[] |
Definition at line 2292 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_Entrances5[] |
Definition at line 2299 of file kalay.c.
Referenced by Kalay_GetEntrances().
| struct SceneEntrance gKalay_TunnelEntrances[] |
Definition at line 2309 of file kalay.c.
Referenced by Kalay_GetEntrances().
| u32 gKalay_Exits[] |
Definition at line 2318 of file kalay.c.
Referenced by Kalay_GetExits().
| struct ScenePlacement gKalay_NoPlacements[] |
Definition at line 2334 of file kalay.c.
Referenced by Kalay_GetPlacements().
| struct ScenePlacement gKalay_TownPlacements[] |
Definition at line 2339 of file kalay.c.
Referenced by Kalay_GetPlacements().
| struct ScenePlacement gKalay_TourGroupPlacements[] |
Definition at line 2381 of file kalay.c.
Referenced by Kalay_WatchTourGroupDeparture().
| struct ScenePlacement gKalay_PalaceGatePlacements[] |
Definition at line 2401 of file kalay.c.
Referenced by Kalay_GetPlacements().
| struct ScenePlacement gKalay_CavePlacements[] |
Definition at line 2411 of file kalay.c.
Referenced by Kalay_GetPlacements().
| struct ScenePlacement gKalay_TunnelPlacements[] |
Definition at line 2431 of file kalay.c.
Referenced by Kalay_GetPlacements().
| struct SceneEvent gKalay_NoEvents[] |
Definition at line 2445 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_TownEvents[] |
Definition at line 2449 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_PalaceGateEvents[] |
Definition at line 2507 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_CaveEvents[] |
Definition at line 2517 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_Events4[] |
Definition at line 2526 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_Events5[] |
Definition at line 2533 of file kalay.c.
Referenced by Kalay_GetEvents().
| struct SceneEvent gKalay_TunnelEvents[] |
Definition at line 2542 of file kalay.c.
Referenced by Kalay_GetEvents().
| u16 gKalay_DoorCellSteps[] |
| struct MapCellAnim gKalay_DoorCells[] |
Definition at line 2577 of file kalay.c.
Referenced by Kalay_OpenDoorAndExit().
| s32 gKalay_TunnelParticleScript[] |
Definition at line 2584 of file kalay.c.
Referenced by Kalay_SpawnTunnelParticle().