src/scene/lemuria_entrance.c
The channels among the cliffs where the party's ship comes into Lemuria. More…
#include "field/field_engine.h"#include "field/field_sprite.h"#include "field/script_inline.h"#include "game/game.h"#include "field/field_engine_script.h"#include "field/call.h"#include "scene/scene.h"#include "window/window.h"#include "field/actor_script.h"#include "text/msg_ids.h"
Macros
| Name | Description | |
|---|---|---|
#define | FLAG_ROCK_GROUND_AWAY 0x909 | Grind has broken up the brown rock in the north-west channel. |
Enumerations
| Name | Description | |
|---|---|---|
enum | anonymous enum { ACTOR_SHIP, ACTOR_MOORED_BOAT_A, ACTOR_MOORED_BOAT_B, ACTOR_ … } | The way in's actors, by the rows of ActorPlacements. |
enum | anonymous enum { SPEAKER_KRADEN } | Who speaks a line of scLemuriaEntranceShebaAsksPiersAge: the party by their numbers, and Kraden as 8, who shows his own portrait. |
enum | anonymous enum { ENTRANCE_ABOARD_SHIP } | Unused: no exit leads here; it hands the ship to the player and enters again by entrance 1. |
enum | anonymous enum { CHANNEL_NORTH_END, CHANNEL_SOUTH_END } | The channel past the rock runs on in the map's south half: its north end (exit and entrance 2) leads to its south end (exit and entrance 4), and back. |
Functions
| Name | Description | |
|---|---|---|
void | scLemuriaEntranceShowLineWithPortrait (Sint32 speaker, Sint32 ticks) | Shows the next line of a conversation beside its speaker's portrait (Kraden's for SPEAKER_KRADEN), holds it the given ticks once typed, and closes it. |
void | scLemuriaEntranceShebaAsksPiersAge (void) | Coming back aboard after the audience with King Hydros, the ship sails out of the harbor and through the channels while Sheba asks Piers how old he really is, "Umm... |
Sint32 | scLemuriaEntranceResetAnimationFrame (ACTOR *actor) | Starts an actor's animation from its first tick. |
const SCENE_ENTRANCE * | scGetEntrances (void) | Where the party can enter: the cave under the spring has its own entrances. |
const SCENE_REGION * | scGetExitRegions (void) | The regions of the rooms whose exits are rectangles: the Chestbeaters' room and the stream room. |
const Uint32 * | scGetExits (void) | The dock's ways lead back the way the party came into Lemuria, which the harbour and the shore of Ancient Lemuria note in FLAG_LEMURIA_OTHER_WAY_IN. |
const ACTOR_PLACE * | scGetActorPlacements (void) | The scene's actor placements: a room of names for its entrance, else the debug room's. |
void | scLemuriaEntranceLandAtHarbor (Sint32 exit) | The ship sails up to the quay in the harbor of moored Lemurian ships, in the north-east, and the party goes ashore on Lemuria's dock, the way to the city. |
void | scLemuriaEntranceLandAtSouthQuay (Sint32 exit) | The ship sails up to the quay by the two moored boats, at the south end of the channel past the rock Grind breaks up, and the party goes ashore on Lemuria's dock. |
void | scLemuriaEntranceGrindRock (void) | Felix casts Grind on the brown rock in the north-west channel: it breaks up and is gone for good, opening the way south to the second quay. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
void | scLemuriaEntranceBoardShip (void) | Unused: once FLAG_TRANSFERRED_DJINN_FIRST is set, the party boards the ship and takes the helm; otherwise Felix walks on as before. |
Sint32 | scInit (void) | The scene's setup: places its actors, then plays what the entrance it was reached by calls for. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
Variables
| Name | Description | |
|---|---|---|
extern Sint32 | LemuriaEntranceShipSailsOut [] | The ship's course out of the harbor. |
extern Sint32 | LemuriaEntranceShipAtRest [] | The ship's animation as it rests in the harbor. |
SCENE_ENTRANCE | SceneEntrances [] | Besides the party's return to the pier after the ship is stolen, four unused spots about the mast: below the huge block, on the dock by its crate, on the deck, and at the top of the sail's east pole. |
Uint32 | SceneExits [] | The room has no exits of its own. |
ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
CUE | SceneCues [] | The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers. |
Description
The channels among the cliffs where the party's ship comes into Lemuria. In the north-east is the harbor of moored Lemurian ships, whose quay is the way ashore to the city. In the north-west a brown rock blocks the channel until Grind breaks it up; past it the channel runs south to a second quay, by two moored boats, the way ashore to another part of the ruins. Sailing out after the audience with King Hydros, Sheba asks Piers how old he is.
Macros in detail
FLAG_ROCK_GROUND_AWAY
#define FLAG_ROCK_GROUND_AWAY 0x909
Grind has broken up the brown rock in the north-west channel.
Referenced by scInit() and scLemuriaEntranceGrindRock().
Definition at line 64 of file lemuria_entrance.c.
Enumerations in detail
anonymous enum
enum { ACTOR_SHIP, ACTOR_MOORED_BOAT_A, ACTOR_MOORED_BOAT_B, ACTOR_MOORED_BOAT_C, … }
The way in's actors, by the rows of ActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_SHIP | ACTOR_FIRST_PLACED | The party's ship, placed blank; it sails out of the harbor (LemuriaEntranceShipSailsOut). |
ACTOR_MOORED_BOAT_A | Boats moored in the harbor: four SPRITE_MOORED_BOAT and six on the winged ship's sprite sheet (SPRITE_WINGED_SHIP). | |
ACTOR_MOORED_BOAT_B | ||
ACTOR_MOORED_BOAT_C | ||
ACTOR_MOORED_BOAT_D | ||
ACTOR_MOORED_SHIP_A | ||
ACTOR_MOORED_SHIP_B | ||
ACTOR_MOORED_SHIP_C | ||
ACTOR_MOORED_SHIP_D | ||
ACTOR_MOORED_SHIP_E | ||
ACTOR_MOORED_SHIP_F | ||
ACTOR_ROCK | the brown rock in the north-west channel, which Grind breaks up |
Definition at line 22 of file lemuria_entrance.c.
anonymous enum
enum { SPEAKER_KRADEN }
Who speaks a line of scLemuriaEntranceShebaAsksPiersAge: the party by their
numbers, and Kraden as 8, who shows his own portrait.
| Enumerator | Value | Description |
|---|---|---|
SPEAKER_KRADEN | 8 |
Definition at line 45 of file lemuria_entrance.c.
anonymous enum
enum { ENTRANCE_ABOARD_SHIP }
Unused: no exit leads here; it hands the ship to the player and enters again by entrance 1.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_ABOARD_SHIP | 90 |
Definition at line 52 of file lemuria_entrance.c.
anonymous enum
enum { CHANNEL_NORTH_END, CHANNEL_SOUTH_END }
The channel past the rock runs on in the map's south half: its north end (exit and entrance 2) leads to its south end (exit and entrance 4), and back.
| Enumerator | Value | Description |
|---|---|---|
CHANNEL_NORTH_END | 2 | |
CHANNEL_SOUTH_END | 4 |
Definition at line 68 of file lemuria_entrance.c.
Functions in detail
scLemuriaEntranceShowLineWithPortrait
void scLemuriaEntranceShowLineWithPortrait(Sint32 speaker, Sint32 ticks)
Shows the next line of a conversation beside its speaker's portrait (Kraden's
for SPEAKER_KRADEN), holds it the given ticks once typed, and closes it.
Piers's lines stand further right with his portrait at their right-hand end;
everyone else's portrait is at the left.
References Call4(), fdSpeakerGetVoice(), mnMessageAllTyped(), mnMessageCloseFinishedWindows(), mnMessageOpenWindow(), mnPortraitOpenWindow(), mnTextGetMessageSize(), mnWindowClose(), scFieldScriptWait(), Sint32 and sySynch().
Referenced by scLemuriaEntranceShebaAsksPiersAge().
Definition at lines 57 and 237 of file lemuria_entrance.c.
scLemuriaEntranceShebaAsksPiersAge
void scLemuriaEntranceShebaAsksPiersAge(void)
Coming back aboard after the audience with King Hydros, the ship sails out of the harbor and through the channels while Sheba asks Piers how old he really is, "Umm... Piers?", and Piers will not say. Then the ship is out on the sea.
References fdActorSetScript(), fdScriptEnd(), fdScriptFinishScreenTransition(), fdScriptStart(), fdScriptWaitTransitionTicks(), LemuriaEntranceShipSailsOut, MainRoutineStateWork, scFieldActorWaitForScriptEndById(), scFieldScriptEndLastingPsynergy(), scFieldScriptSetExitRequest(), scFieldScriptSetMessageId(), scFieldScriptWait(), scLemuriaEntranceShowLineWithPortrait() and Sint32.
Referenced by scInit().
Definition at lines 59 and 283 of file lemuria_entrance.c.
scLemuriaEntranceResetAnimationFrame
Sint32 scLemuriaEntranceResetAnimationFrame(ACTOR *actor)
Starts an actor's animation from its first tick.
References Sint32.
Referenced by LemuriaEntranceShipAtRest.
Definition at line 75 of file lemuria_entrance.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 81 of file lemuria_entrance.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 86 of file lemuria_entrance.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 91 of file lemuria_entrance.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 96 of file lemuria_entrance.c.
scLemuriaEntranceLandAtHarbor
void scLemuriaEntranceLandAtHarbor(Sint32 exit)
The ship sails up to the quay in the harbor of moored Lemurian ships, in the
north-east, and the party goes ashore on Lemuria's dock, the way to the city.
Clearing FLAG_LEMURIA_OTHER_WAY_IN makes the dock's ways lead back here and
on towards the city.
References fdScriptClearFlag(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptSetExitRequest() and Sint32.
Referenced by SceneCues.
Definition at line 105 of file lemuria_entrance.c.
scLemuriaEntranceLandAtSouthQuay
void scLemuriaEntranceLandAtSouthQuay(Sint32 exit)
The ship sails up to the quay by the two moored boats, at the south end of
the channel past the rock Grind breaks up, and the party goes ashore on
Lemuria's dock. Setting FLAG_LEMURIA_OTHER_WAY_IN makes the dock's ways lead
back to this quay and on to the other part of the ruins.
References fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptSetFlag(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scFieldScriptSetExitRequest() and Sint32.
Referenced by SceneCues.
Definition at line 123 of file lemuria_entrance.c.
scLemuriaEntranceGrindRock
void scLemuriaEntranceGrindRock(void)
Felix casts Grind on the brown rock in the north-west channel: it breaks up and is gone for good, opening the way south to the second quay.
References fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 139 of file lemuria_entrance.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 145 of file lemuria_entrance.c.
scLemuriaEntranceBoardShip
void scLemuriaEntranceBoardShip(void)
Unused: once FLAG_TRANSFERRED_DJINN_FIRST is set, the party boards the ship
and takes the helm; otherwise Felix walks on as before. Nothing calls it.
References fdActorSetAnimation(), fdScriptEnd(), fdScriptGetFlag(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork and scFieldScriptEndLastingPsynergy().
Definition at line 152 of file lemuria_entrance.c.
scInit
Sint32 scInit(void)
The scene's setup: places its actors, then plays what the entrance it was reached by calls for.
References fdActorGet(), fdActorSetSpriteFlags(), fdScriptClearFlag(), fdScriptGetFlag(), fdScriptSetDestination(), fdScriptSetFlag(), fdScriptStartScreenTransition(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, scLemuriaEntranceShebaAsksPiersAge() and Sint32.
Definition at line 181 of file lemuria_entrance.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 228 of file lemuria_entrance.c.
Variables in detail
LemuriaEntranceShipSailsOut
extern Sint32 LemuriaEntranceShipSailsOut[]
Sint32 LemuriaEntranceShipSailsOut[]
The ship's course out of the harbor.
References Sint32.
Referenced by scLemuriaEntranceShebaAsksPiersAge().
Definition at lines 19 and 331 of file lemuria_entrance.c.
LemuriaEntranceShipAtRest
extern Sint32 LemuriaEntranceShipAtRest[]
Sint32 LemuriaEntranceShipAtRest[]
The ship's animation as it rests in the harbor.
References scLemuriaEntranceResetAnimationFrame() and Sint32.
Referenced by ActorPlacements.
Definition at lines 61 and 369 of file lemuria_entrance.c.
SceneEntrances
SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 375 of file lemuria_entrance.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 380 of file lemuria_entrance.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
References LemuriaEntranceShipAtRest and Sint32.
Referenced by scGetActorPlacements().
Definition at line 401 of file lemuria_entrance.c.
SceneCues
CUE SceneCues[]
References scLemuriaEntranceGrindRock(), scLemuriaEntranceLandAtHarbor() and scLemuriaEntranceLandAtSouthQuay().
Referenced by scGetCues().
Definition at line 513 of file lemuria_entrance.c.