Skip to Content
The Alchemy Project

src/scene/lemuria_dock.c

Lemuria's dock, where the Lemurian ship ties up: Kraden steps off to wait by the ship and asks whether the party is ready to sail, and a door on the deck leads down into the ship's cabins.

Enumerations

NameDescription
enumanonymous enum { ACTOR_KRADEN, ACTOR_CANNON }The dock's actors, by the rows of ActorPlacements.
enumanonymous enum { METATILE_BEHAVIOR_GANGPLANK }The gangplank's metatile, (27, 28), between the pier and the ship's deck.

Functions

NameDescription
voidscLemuriaDockEnterDoor (const MAP_EDIT *door, Sint32 exit, Sint32 mode)The door opens and the leader walks in through it, lined up with it first (mode 0) or straight ahead (mode 1), leaving by exit.
voidscLemuriaDockCyclePalette (void)A palette event: every eighth tick it turns both runs of LEMURIAN_SHIP_PALETTE's colours round by one, as the Lemurian Ship's deck turns its own: the blues of the band along the ship's hull, and the surf.
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.
Sint32 *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.
voidscLemuriaDockMoveKraden (void)Felix steps onto the gangplank.
voidscLemuriaDockAskSettingOff (void)Kraden asks whether the party is ready to sail (to Mind Read he starts and turns to the leader first).
voidscLemuriaDockEnterCabins (Sint32 exit)Felix walks north into the door on the ship's deck: it opens and he goes down into the cabins.
const CUE *scGetCues (void)The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's.
Sint32scInit (void)Sets up the dock: the ship's colours cycling, no area name, and in every edition but the Japanese Loho's cannon on deck once the ship carries it.
Sint32scPrepareMap (void)Once Briggs is caught the pool has dried up: its colours take the dry ground's.

Variables

NameDescription
extern Uint8MsgAreWeSetting []
extern Sint32LemuriaDockExits []The dock's ways out: back to Lemuria's harbour, up to the shore of Ancient Lemuria, and down into the ship's cabins.
extern Sint32LemuriaDockExitsToOtherWayIn []The same ways out once the party came by Lemuria's other way in, which bring it back to the harbour's and the shore's other sides.
extern MAP_EDITLemuriaDockCabinDoorThe cabin door's opening, at its place on the map grid.
extern Uint16LemuriaDockCabinDoorOpening []The cabin door's opening, one tick of metatiles copied over the shut door.
SCENE_ENTRANCESceneEntrances []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.
ACTOR_PLACEActorPlacements []The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's.
CUESceneCues []The room's scripts: talking to its people, Mind Read on them, the metatiles examined, and the field Psynergy each spot answers.

Description

Lemuria's dock, where the Lemurian ship ties up: Kraden steps off to wait by the ship and asks whether the party is ready to sail, and a door on the deck leads down into the ship's cabins.

Enumerations in detail

anonymous enum

enum { ACTOR_KRADEN, ACTOR_CANNON }

The dock's actors, by the rows of ActorPlacements.

EnumeratorValueDescription
ACTOR_KRADENACTOR_FIRST_PLACED
ACTOR_CANNONLoho's cannon, on the ship's deck once the ship carries it (placed only with LEMURIA_DOCK_CANNON_ON_DECK).

Definition at line 13 of file lemuria_dock.c.

anonymous enum

enum { METATILE_BEHAVIOR_GANGPLANK }

The gangplank's metatile, (27, 28), between the pier and the ship's deck.

EnumeratorValueDescription
METATILE_BEHAVIOR_GANGPLANK21

Definition at line 21 of file lemuria_dock.c.

Functions in detail

scLemuriaDockEnterDoor

void scLemuriaDockEnterDoor(const MAP_EDIT *door, Sint32 exit, Sint32 mode)

The door opens and the leader walks in through it, lined up with it first (mode 0) or straight ahead (mode 1), leaving by exit.

References fdActorCenterAndWalk(), fdActorGetById(), fdActorSetAnimation(), fdActorSetDestinationOffset(), fdMapGridAnimateMetatiles(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptFinishScreenTransition(), fdScriptPlaySound(), fdScriptStart(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, Sint32 and syImportScriptSetExitRequest().

Referenced by scLemuriaDockEnterCabins().

Definition at lines 32 and 157 of file lemuria_dock.c.

scLemuriaDockCyclePalette

void scLemuriaDockCyclePalette(void)

A palette event: every eighth tick it turns both runs of LEMURIAN_SHIP_PALETTE's colours round by one, as the Lemurian Ship's deck turns its own: the blues of the band along the ship's hull, and the surf.

References Sint32 and TickCount.

Referenced by scInit().

Definition at lines 33 and 196 of file lemuria_dock.c.

scGetEntrances

const SCENE_ENTRANCE *scGetEntrances(void)

References SceneEntrances.

Definition at line 35 of file lemuria_dock.c.

scGetExitRegions

const SCENE_REGION *scGetExitRegions(void)

Definition at line 40 of file lemuria_dock.c.

scGetExits

Sint32 *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.

References fdScriptGetFlag(), LemuriaDockExits, LemuriaDockExitsToOtherWayIn and Sint32.

Definition at line 47 of file lemuria_dock.c.

scGetActorPlacements

const ACTOR_PLACE *scGetActorPlacements(void)

References ActorPlacements.

Definition at line 54 of file lemuria_dock.c.

scLemuriaDockMoveKraden

void scLemuriaDockMoveKraden(void)

Felix steps onto the gangplank. Coming up the pier from the shore of Ancient Lemuria, where Kraden is not already on the dock he steps out from the leader and walks to his place by the ship; where he is, he walks back into the leader.

References fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorSetAnimation(), fdActorSetDestination(), fdActorWaitForMoveById(), fdActorWalkByAndWait(), fdActorWalkToAndWait(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptStart(), MainRoutineStateWork and scFieldActorLaunchFromLeader().

Referenced by SceneCues.

Definition at line 63 of file lemuria_dock.c.

scLemuriaDockAskSettingOff

void scLemuriaDockAskSettingOff(void)

Kraden asks whether the party is ready to sail (to Mind Read he starts and turns to the leader first). At yes the leader walks up beside him and the party sets sail.

References fdActorFaceActor(), fdActorFaceDirectionAndWait(), fdActorGetById(), fdActorJump(), fdActorShowEmote(), fdActorWalkToAndWait(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptOpenMessage(), fdScriptSetMessageId(), fdScriptShowMessage(), fdScriptWait(), MainRoutineStateWork, MsgAreWeSetting, Sint32 and syImportScriptSetExitRequest().

Referenced by SceneCues.

Definition at line 105 of file lemuria_dock.c.

scLemuriaDockEnterCabins

void scLemuriaDockEnterCabins(Sint32 exit)

Felix walks north into the door on the ship's deck: it opens and he goes down into the cabins.

References LemuriaDockCabinDoor, scLemuriaDockEnterDoor() and Sint32.

Referenced by SceneCues.

Definition at line 183 of file lemuria_dock.c.

scGetCues

const CUE *scGetCues(void)

References SceneCues.

Definition at line 188 of file lemuria_dock.c.

scInit

Sint32 scInit(void)

Sets up the dock: the ship's colours cycling, no area name, and in every edition but the Japanese Loho's cannon on deck once the ship carries it.

References fdActorGetById(), fdActorSetSpritePriority(), fdScriptClearFlag(), fdScriptGetFlag(), MainRoutineStateWork, scLemuriaDockCyclePalette(), Sint32 and sySetEvent().

Definition at line 218 of file lemuria_dock.c.

scPrepareMap

Sint32 scPrepareMap(void)

References fdMapGridCopyMetatilesTo(), fdScriptGetFlag() and Sint32.

Definition at line 234 of file lemuria_dock.c.

Variables in detail

MsgAreWeSetting

extern Uint8 MsgAreWeSetting[]

Referenced by scAttekaInletAskKradenToSetSail(), scAttekaInletKradenAsksToSetSail() and scLemuriaDockAskSettingOff().

Definition at line 26 of file lemuria_dock.c.

LemuriaDockExits

extern Sint32 LemuriaDockExits[]

Sint32 LemuriaDockExits[]

The dock's ways out: back to Lemuria's harbour, up to the shore of Ancient Lemuria, and down into the ship's cabins.

References Sint32.

Referenced by scGetExits().

Definition at lines 27 and 257 of file lemuria_dock.c.

LemuriaDockExitsToOtherWayIn

extern Sint32 LemuriaDockExitsToOtherWayIn[]

Sint32 LemuriaDockExitsToOtherWayIn[]

The same ways out once the party came by Lemuria's other way in, which bring it back to the harbour's and the shore's other sides.

References Sint32.

Referenced by scGetExits().

Definition at lines 28 and 270 of file lemuria_dock.c.

LemuriaDockCabinDoor

extern MAP_EDIT LemuriaDockCabinDoor

MAP_EDIT LemuriaDockCabinDoor

The cabin door's opening, at its place on the map grid.

References LemuriaDockCabinDoorOpening.

Referenced by scLemuriaDockEnterCabins().

Definition at lines 29 and 299 of file lemuria_dock.c.

LemuriaDockCabinDoorOpening

extern Uint16 LemuriaDockCabinDoorOpening[]

Uint16 LemuriaDockCabinDoorOpening[]

The cabin door's opening, one tick of metatiles copied over the shut door.

Referenced by LemuriaDockCabinDoor.

Definition at lines 30 and 292 of file lemuria_dock.c.

SceneEntrances

SCENE_ENTRANCE SceneEntrances[]

Referenced by scGetEntrances().

Definition at line 249 of file lemuria_dock.c.

ActorPlacements

ACTOR_PLACE ActorPlacements[]

Referenced by scGetActorPlacements().

Definition at line 281 of file lemuria_dock.c.

SceneCues

CUE SceneCues[]

References scLemuriaDockAskSettingOff(), scLemuriaDockEnterCabins() and scLemuriaDockMoveKraden().

Referenced by scGetCues().

Definition at line 301 of file lemuria_dock.c.