src/scene/osenia_cliffs.c
The Osenia Cliffs, across the Madra Drawbridge, where the wreck of a Champa ship lies on the shore and three people from Madra look it over until Piers has carried Gabomba's message. More…
#include "field/field_state.h"#include "field/field.h"#include "game/game.h"#include "field/script_inline.h"#include "scene/scene.h"#include "text/msg_ids.h"#include "shared/field_rope_place.c"#include "shared/scene_entrances_default.c"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdRopeLash | This unit declares its own form of fdRopeLash, below. |
#define | OWN_fdRopeTie | This unit declares its own form of fdRopeTie, below. |
#define | FLAG_OSENIA_CLIFFS_ROPE_LASHED FLAG_SCENE_TEMP(0x03) | Set once the party has lashed the second rope, which stays tied for the visit. |
#define | CYCLE_SOURCE_PALETTE 12 | The palette cycle: the eight colours of one background palette, and the four of another that show four of them in turn: the blues of the line where the sea meets the foot of the cliffs, and of glints on the sea. |
#define | CYCLE_SOURCE_COLORS 8 | |
#define | SHORELINE_PALETTE 6 |
Enumerations
| Name | Description | |
|---|---|---|
enum | OSENIA_CLIFFS_ACTOR_ID { ACTOR_VILLAGER_CHAMPA_BOAT, ACTOR_VILLAGER_NOT_CHAMPA, ACTOR … } | The actors, numbering the rows of ActorPlacements. |
Functions
| Name | Description | |
|---|---|---|
Sint32 | fdRopeTie () | The ROM's callers here are compiled with no declaration in scope, as against this form: no parameter list and an Sint32 result, where the definition takes the rope and two posts and returns nothing. |
Sint32 | fdRopeLash () | The ROM's callers here are compiled with no declaration in scope, as against this form: no parameter list and an Sint32 result, where the definition takes the rope and two posts and returns nothing. |
void | scOseniaCliffsCyclePalette (void) | The sea shimmers where it meets the foot of the cliffs: every 16 ticks, four of CYCLE_SOURCE_PALETTE's eight colours, starting one further each time, are copied to colours 1 to 4 of SHORELINE_PALETTE. |
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 | scOseniaCliffsLashRope (void) | Felix casts Lash at the lower of the two bare rope posts in the northeast of the Osenia Cliffs, the one on the wooden landing in the water, and a rope flies from it up to the post on the clifftop to the north-east and ties itself taut between them. |
const CUE * | scGetCues (void) | The scene's cues: the rooms of names' for any entrance above ENTRANCE_NAMES_ABOVE, else the debug room's. |
Sint32 | scInit (void) | Opens the room through the window transition, and in the debug room draws the cat 1.7 times its size. |
Sint32 | scPrepareMap (void) | Once Briggs is caught the pool has dried up: its colours take the dry ground's. |
Variables
| Name | Description | |
|---|---|---|
extern Uint32 | OseniaCliffsPaletteCycleStep [] | The sea's shimmer, its step through the source colours. |
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 Osenia Cliffs, across the Madra Drawbridge, where the wreck of a Champa ship lies on the shore and three people from Madra look it over until Piers has carried Gabomba's message.
The party hops across the wreckage to the exit on the east side. A rope already stretches between two posts near the villagers; in the northeast, two more posts stand bare until Felix ties a rope between them with Lash, on the way to the Pirate's Sword.
Macros in detail
OWN_fdRopeLash
#define OWN_fdRopeLash
This unit declares its own form of fdRopeLash, below.
Definition at line 11 of file osenia_cliffs.c.
OWN_fdRopeTie
#define OWN_fdRopeTie
This unit declares its own form of fdRopeTie, below.
Definition at line 13 of file osenia_cliffs.c.
FLAG_OSENIA_CLIFFS_ROPE_LASHED
#define FLAG_OSENIA_CLIFFS_ROPE_LASHED FLAG_SCENE_TEMP(0x03)
Set once the party has lashed the second rope, which stays tied for the visit.
Referenced by SceneCues, scInit() and scOseniaCliffsLashRope().
Definition at line 40 of file osenia_cliffs.c.
CYCLE_SOURCE_PALETTE
#define CYCLE_SOURCE_PALETTE 12
The palette cycle: the eight colours of one background palette, and the four of another that show four of them in turn: the blues of the line where the sea meets the foot of the cliffs, and of glints on the sea.
Referenced by scOseniaCliffsCyclePalette().
Definition at line 120 of file osenia_cliffs.c.
CYCLE_SOURCE_COLORS
#define CYCLE_SOURCE_COLORS 8
Referenced by scOseniaCliffsCyclePalette().
Definition at line 121 of file osenia_cliffs.c.
SHORELINE_PALETTE
#define SHORELINE_PALETTE 6
Referenced by scOseniaCliffsCyclePalette().
Definition at line 122 of file osenia_cliffs.c.
Enumerations in detail
OSENIA_CLIFFS_ACTOR_ID
enum OSENIA_CLIFFS_ACTOR_ID
The actors, numbering the rows of ActorPlacements.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_VILLAGER_CHAMPA_BOAT | ACTOR_FIRST_PLACED | |
ACTOR_VILLAGER_NOT_CHAMPA | ||
ACTOR_VILLAGER_WAVE_DAMAGE | ||
ACTOR_FIRST_ROPE_POST | The posts of the rope near the villagers, tied | |
ACTOR_SECOND_ROPE_POST | from the start. | |
ACTOR_THIRD_ROPE_POST | The posts in the northeast, low and high, that | |
ACTOR_FOURTH_ROPE_POST | Lash ties a rope between. |
Definition at line 43 of file osenia_cliffs.c.
Functions in detail
scOseniaCliffsCyclePalette
void scOseniaCliffsCyclePalette(void)
The sea shimmers where it meets the foot of the cliffs: every 16 ticks, four
of CYCLE_SOURCE_PALETTE's eight colours, starting one further each time,
are copied to colours 1 to 4 of SHORELINE_PALETTE.
References OseniaCliffsPaletteCycleStep, Sint32 and TickCount.
Referenced by scInit().
Definition at lines 36 and 127 of file osenia_cliffs.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 56 of file osenia_cliffs.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 61 of file osenia_cliffs.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 66 of file osenia_cliffs.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements.
Definition at line 71 of file osenia_cliffs.c.
scOseniaCliffsLashRope
void scOseniaCliffsLashRope(void)
Felix casts Lash at the lower of the two bare rope posts in the northeast of the Osenia Cliffs, the one on the wooden landing in the water, and a rope flies from it up to the post on the clifftop to the north-east and ties itself taut between them. Felix walks up it as a tightrope onto the clifftop, on the way to the Pirate's Sword. It stays tied until the party leaves.
References fdRopeLash() and fdScriptSetFlag().
Referenced by SceneCues.
Definition at line 81 of file osenia_cliffs.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 87 of file osenia_cliffs.c.
scInit
Sint32 scInit(void)
References fdActorGetById(), fdActorSetAnimation(), fdRopeInit(), fdRopeTie(), MainRoutineStateWork, OseniaCliffsPaletteCycleStep, scFieldRopePlace(), scOseniaCliffsCyclePalette(), Sint32 and sySetEvent().
Definition at line 92 of file osenia_cliffs.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 148 of file osenia_cliffs.c.
Variables in detail
OseniaCliffsPaletteCycleStep
extern Uint32 OseniaCliffsPaletteCycleStep[]
Uint32 OseniaCliffsPaletteCycleStep[]
The sea's shimmer, its step through the source colours.
Referenced by scInit() and scOseniaCliffsCyclePalette().
Definition at lines 32 and 154 of file osenia_cliffs.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 160 of file osenia_cliffs.c.
ActorPlacements
ACTOR_PLACE ActorPlacements[]
Referenced by scGetActorPlacements().
Definition at line 167 of file osenia_cliffs.c.
SceneCues
CUE SceneCues[]
References scOseniaCliffsLashRope().
Referenced by scGetCues().
Definition at line 234 of file osenia_cliffs.c.