src/scene/alhafra_manor.c
The mayor of Alhafra's manor, where the party stays as his guests once Briggs is caught and hears in the night that Briggs has escaped (scAlhafraManorBriggsEscapes), with other people about once the boat's mast is cleared (FLAG_ALHAFRA_MAST_CLEARED).
#include "text/msg_ids.h"#include "field/field_engine.h"#include "game/game.h"#include "field/field_engine_script.h"#include "field/script_inline.h"#include "graphics/palette_buffers.h"
Macros
| Name | Description | |
|---|---|---|
#define | OWN_fdActorTakeLeaderLayer | This unit declares its own form of fdActorTakeLeaderLayer, below. |
#define | FLAG_COMPLAINED_ABOUT_THE_MAYOR 0x8ba | Talks each person gives once, the first time spoken to: Madra's mayor complains of Alhafra's, Jiya defends him, and Alhafra's mayor tells of the Eastern Sea. |
#define | FLAG_DEFENDED_THE_MAYOR 0x8bb | |
#define | FLAG_TOLD_OF_THE_EASTERN_SEA 0x8bc | |
#define | WALK_TO_LEADER (id) | Walks actor id to the controlled character's metatile, when it has one. |
Enumerations
| Name | Description | |
|---|---|---|
enum | ALHAFRA_MANOR_ENTRANCE { ENTRANCE_MAYORS_ROOM, ENTRANCE_WATCHTOWER, ENTRANCE_BRIGGS_E … } | The manor's entrances its set-up tests or sets. |
enum | ALHAFRA_MANOR_ACTOR_ID { ACTOR_JIYA, ACTOR_MAYOR, ACTOR_BOY_ON_THE_WATCHTOWER, ACTOR_ … } | The household and guests of ActorPlacements, while the mast lies fallen. |
enum | ALHAFRA_MANOR_ONCE_THE_MAST_IS_CLEARED_ACTOR_ID { ACTOR_JAIL_GUARD, ACTOR_WORKER, ACTOR_KRADEN } | Who is in the manor the night Briggs escapes, once the mast is cleared (AlhafraManorActorPlacementsOnceTheMastIsCleared, Jiya and the mayor first as before). |
Functions
| Name | Description | |
|---|---|---|
void | scAlhafraManorBriggsEscapes (void) | The night at the mayor's manor: the party thanks the mayor for his house, Jenna and Sheba doubt he will hand the boat over to Madra, the mayor asks Jiya after the repairs, and a guard runs in with news: Briggs has escaped. |
void | scAlhafraManorKeepToTheLeadersLayer (void) | The old man's update: he takes the party leader's display layer. |
void | scAlhafraManorComplainAboutTheMayor (void) | Talking to the mayor of Madra, or reading his mind, once: he complains that Alhafra's mayor never meant to fix the mast. |
void | scAlhafraManorDefendTheMayor (void) | Talking to Jiya, or reading his mind, once: he explains why the mayor keeps the pirates' money for Alhafra's own repairs. |
void | scAlhafraManorTellOfTheEasternSea (void) | Talking to Alhafra's mayor, or reading his mind, once: he tells of the towns Briggs speaks of across the eastern sea. |
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 | scAlhafraManorAskAboutAlhafra (Sint32 actor) | The woman who asks what the party thinks of Alhafra, and answers yes or no. |
void | scAlhafraManorPointOutAirsRock (Sint32 actor) | The man gazing south asks whether the party can see Air's Rock; on a yes the leader steps up beside him and the world map shows it. |
void | scAlhafraManorAskIfTheHeroes (Sint32 actor) | The woman who asks whether the party are the heroes who beat the pirates, and answers yes or no. |
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. |
void | scAlhafraManorCountAnswer (void) | Counts one more weird answer Felix gives (fdScriptCountAnswer, through the overlay's own import row). |
void | fdActorTakeLeaderLayer (void) | The ROM's caller here is compiled against this form, which takes nothing and returns nothing where the definition takes the actor and returns an Sint32. |
Variables
| Name | Description | |
|---|---|---|
extern ACTOR_PLACE | ActorPlacements [] | The room's people: the party's four rows, then PSYNERGY_TEST_ACTOR_ID's. |
extern ACTOR_PLACE | AlhafraManorActorPlacementsOnceTheMastIsCleared [] | |
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. |
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 mayor of Alhafra's manor, where the party stays as his guests once Briggs
is caught and hears in the night that Briggs has escaped
(scAlhafraManorBriggsEscapes), with other people about once the boat's mast
is cleared (FLAG_ALHAFRA_MAST_CLEARED).
Macros in detail
OWN_fdActorTakeLeaderLayer
#define OWN_fdActorTakeLeaderLayer
This unit declares its own form of fdActorTakeLeaderLayer, below.
Definition at line 7 of file alhafra_manor.c.
FLAG_COMPLAINED_ABOUT_THE_MAYOR
#define FLAG_COMPLAINED_ABOUT_THE_MAYOR 0x8ba
Talks each person gives once, the first time spoken to: Madra's mayor complains of Alhafra's, Jiya defends him, and Alhafra's mayor tells of the Eastern Sea.
Referenced by scAlhafraManorComplainAboutTheMayor() and SceneCues.
Definition at line 19 of file alhafra_manor.c.
FLAG_DEFENDED_THE_MAYOR
#define FLAG_DEFENDED_THE_MAYOR 0x8bb
Referenced by scAlhafraManorDefendTheMayor() and SceneCues.
Definition at line 20 of file alhafra_manor.c.
FLAG_TOLD_OF_THE_EASTERN_SEA
#define FLAG_TOLD_OF_THE_EASTERN_SEA 0x8bc
Referenced by scAlhafraManorTellOfTheEasternSea() and SceneCues.
Definition at line 21 of file alhafra_manor.c.
WALK_TO_LEADER
#define WALK_TO_LEADER(id)
Walks actor id to the controlled character's metatile, when it has one.
Referenced by scAlhafraManorBriggsEscapes().
Definition at line 417 of file alhafra_manor.c.
Enumerations in detail
ALHAFRA_MANOR_ENTRANCE
enum ALHAFRA_MANOR_ENTRANCE
The manor's entrances its set-up tests or sets.
| Enumerator | Value | Description |
|---|---|---|
ENTRANCE_MAYORS_ROOM | 8 | The mayor's room, by its south door, where the party is left after Briggs escapes. |
ENTRANCE_WATCHTOWER | 14 | The watchtower, where the man gazing at Air's Rock stands. |
ENTRANCE_BRIGGS_ESCAPES | 81 | Where Eastern Alhafra sends the party to see Briggs escape from the manor (scAlhafraManorBriggsEscapes). |
ENTRANCE_PAN_WEST | 99 | Unused: no exit leads here. The camera pans west across the room and waits for a key, then the party enters again by ALHAFRA_MANOR_FROM_WORLD_MAP_VIEW. |
Definition at line 24 of file alhafra_manor.c.
ALHAFRA_MANOR_ACTOR_ID
enum ALHAFRA_MANOR_ACTOR_ID
The household and guests of ActorPlacements, while the mast lies fallen.
| Enumerator | Value | Description |
|---|---|---|
ACTOR_JIYA | ACTOR_FIRST_PLACED | Jiya, the mayor's aide: "Milord, these things take time..." |
ACTOR_MAYOR | Alhafra's mayor, who plans a sailing ship to trade across the sea. | |
ACTOR_BOY_ON_THE_WATCHTOWER | ACTOR_FIRST_PLACED + 2 | "You should go to the watchtower and gaze southward." |
ACTOR_WOMAN_ON_SOUTH_OSENIA | Who asks what the party thinks of Alhafra; her thought: "Why do they always tell me to send adventure-seekers to South Osenia?" | |
ACTOR_WOMAN_ON_THE_PIRATES | "Our town was rife with pirates until just recently." | |
ACTOR_OLD_WOMAN_ON_THE_BALLOO_RANGE | "The mountains to the east of | |
ACTOR_MAN_GAZING_AT_AIRS_ROCK | ACTOR_FIRST_PLACED + 6 | Alhafra are the Balloo Range." "Lookee here! Can't you see Air's Rock..." (scAlhafraManorPointOutAirsRock) |
ACTOR_OLD_MAN_ON_INDRA | "I'd been saying Indra wasn't in the right place for some time now." | |
ACTOR_WOMAN_ON_THE_CURSED_VILLAGE | Who asks whether the party are the heroes; her thought: "I wish someone would go do something about that cursed village south of us." | |
ACTOR_GIRL_ON_THE_WARRIORS | "I heard the pirates talking about the warriors who beat them." | |
ACTOR_MADRAS_MAYOR | ||
ACTOR_MADRAS_ELDER |
Definition at line 40 of file alhafra_manor.c.
ALHAFRA_MANOR_ONCE_THE_MAST_IS_CLEARED_ACTOR_ID
enum ALHAFRA_MANOR_ONCE_THE_MAST_IS_CLEARED_ACTOR_ID
Who is in the manor the night Briggs escapes, once the mast is cleared
(AlhafraManorActorPlacementsOnceTheMastIsCleared, Jiya and the mayor first as
before).
| Enumerator | Value | Description |
|---|---|---|
ACTOR_JAIL_GUARD | ACTOR_FIRST_PLACED + 3 | "Briggs destroyed the prison and escaped with his pirates!" |
ACTOR_WORKER | "Mayor! The mast has been | |
ACTOR_KRADEN | raised!" |
Definition at line 76 of file alhafra_manor.c.
Functions in detail
scAlhafraManorBriggsEscapes
void scAlhafraManorBriggsEscapes(void)
The night at the mayor's manor: the party thanks the mayor for his house, Jenna and Sheba doubt he will hand the boat over to Madra, the mayor asks Jiya after the repairs, and a guard runs in with news: Briggs has escaped. Felix saying yes to going after Briggs for the mayor counts among his weird answers.
References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorJump(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorSetAnimationById(), fdActorSetAttachedEffect(), fdActorShowEmote(), fdActorShowEmoteById(), fdActorStartRepeatedMotion(), fdActorStop(), fdActorWaitForMoveById(), fdActorWalkByAndWait(), fdActorWalkByAndWaitById(), fdActorWalkByById(), fdActorWatchAndSetScript(), fdCameraFollowActor(), fdMessageShowAtActor(), fdPaletteFadeApplyTarget(), fdPaletteFadeSetSource(), fdPaletteFadeSetTarget(), fdPaletteFadeStartInterpolation(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), gmPlayMusic(), MainRoutineStateWork, scAlhafraManorCountAnswer(), scFieldScriptShowMessageThenWait(), Sint32, syGameFlagClear() and sySoundPlay().
Referenced by scInit().
Definition at lines 85 and 435 of file alhafra_manor.c.
scAlhafraManorKeepToTheLeadersLayer
void scAlhafraManorKeepToTheLeadersLayer(void)
The old man's update: he takes the party leader's display layer.
References fdActorTakeLeaderLayer().
Referenced by scInit().
Definition at lines 86 and 857 of file alhafra_manor.c.
scAlhafraManorComplainAboutTheMayor
void scAlhafraManorComplainAboutTheMayor(void)
Talking to the mayor of Madra, or reading his mind, once: he complains that Alhafra's mayor never meant to fix the mast.
References fdActorFaceActorById(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, Sint32 and syGameFlagSet().
Referenced by SceneCues.
Definition at lines 88 and 202 of file alhafra_manor.c.
scAlhafraManorDefendTheMayor
void scAlhafraManorDefendTheMayor(void)
Talking to Jiya, or reading his mind, once: he explains why the mayor keeps the pirates' money for Alhafra's own repairs.
References fdActorFaceDirectionById(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, scFieldScriptShowMessageThenWait(), Sint32 and syGameFlagSet().
Referenced by SceneCues.
Definition at lines 90 and 230 of file alhafra_manor.c.
scAlhafraManorTellOfTheEasternSea
void scAlhafraManorTellOfTheEasternSea(void)
Talking to Alhafra's mayor, or reading his mind, once: he tells of the towns Briggs speaks of across the eastern sea.
References fdActorFaceActorById(), fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorRunRepeatedMotion(), fdActorSetAnimationAndWait(), fdActorShowEmote(), fdMessageShowAtActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetMessageId(), fdScriptShowMessageThenWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork, Sint32 and syGameFlagSet().
Referenced by SceneCues.
Definition at lines 91 and 276 of file alhafra_manor.c.
scGetEntrances
const SCENE_ENTRANCE *scGetEntrances(void)
References SceneEntrances.
Definition at line 93 of file alhafra_manor.c.
scGetExitRegions
const SCENE_REGION *scGetExitRegions(void)
Definition at line 98 of file alhafra_manor.c.
scGetExits
const Uint32 *scGetExits(void)
References SceneExits.
Definition at line 103 of file alhafra_manor.c.
scGetActorPlacements
const ACTOR_PLACE *scGetActorPlacements(void)
References ActorPlacements, AlhafraManorActorPlacementsOnceTheMastIsCleared and syGameFlagGet().
Definition at line 111 of file alhafra_manor.c.
scAlhafraManorAskAboutAlhafra
void scAlhafraManorAskAboutAlhafra(Sint32 actor)
The woman who asks what the party thinks of Alhafra, and answers yes or no.
References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptWait() and Sint32.
Referenced by SceneCues.
Definition at line 119 of file alhafra_manor.c.
scAlhafraManorPointOutAirsRock
void scAlhafraManorPointOutAirsRock(Sint32 actor)
The man gazing south asks whether the party can see Air's Rock; on a yes the leader steps up beside him and the world map shows it.
References fdActorFaceDirection(), fdActorFaceDirectionById(), fdActorWalkToAndWaitById(), fdActorWatchAndSetScript(), fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptEnd(), fdScriptEndLastingPsynergy(), fdScriptSetDestination(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStart(), fdScriptWait(), MainRoutineStateWork and Sint32.
Referenced by SceneCues.
Definition at line 144 of file alhafra_manor.c.
scAlhafraManorAskIfTheHeroes
void scAlhafraManorAskIfTheHeroes(Sint32 actor)
The woman who asks whether the party are the heroes who beat the pirates, and answers yes or no.
References fdMessageShowAtActor(), fdPartyGetLeaderActor(), fdScriptAskYesNoWithActorAnimation(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptWait() and Sint32.
Referenced by SceneCues.
Definition at line 176 of file alhafra_manor.c.
scGetCues
const CUE *scGetCues(void)
References SceneCues.
Definition at line 346 of file alhafra_manor.c.
scInit
Sint32 scInit(void)
References fdActorFaceDirectionById(), fdActorGetById(), fdCameraMoveWithinMapBounds(), fdScriptSetDestination(), fdScriptSetMessageId(), fdScriptShowMessageAndWait(), fdScriptStartScreenTransition(), fdScriptWait(), fdScriptWaitTransitionTicks(), MainRoutineStateWork, PerWork, scAlhafraManorBriggsEscapes(), scAlhafraManorKeepToTheLeadersLayer(), Sint32, syGameFlagClear(), syGameFlagGet() and sySynch().
Definition at line 351 of file alhafra_manor.c.
scPrepareMap
Sint32 scPrepareMap(void)
References Sint32.
Definition at line 407 of file alhafra_manor.c.
scAlhafraManorCountAnswer
void scAlhafraManorCountAnswer(void)
Counts one more weird answer Felix gives (fdScriptCountAnswer, through the
overlay's own import row).
Referenced by scAlhafraManorBriggsEscapes().
Definition at line 414 of file alhafra_manor.c.
Variables in detail
ActorPlacements
extern ACTOR_PLACE ActorPlacements[]
ACTOR_PLACE ActorPlacements[]
Referenced by scGetActorPlacements().
Definition at lines 108 and 915 of file alhafra_manor.c.
AlhafraManorActorPlacementsOnceTheMastIsCleared
extern ACTOR_PLACE AlhafraManorActorPlacementsOnceTheMastIsCleared[]
ACTOR_PLACE AlhafraManorActorPlacementsOnceTheMastIsCleared[]
Referenced by scGetActorPlacements().
Definition at lines 109 and 1027 of file alhafra_manor.c.
SceneEntrances
SCENE_ENTRANCE SceneEntrances[]
Referenced by scGetEntrances().
Definition at line 862 of file alhafra_manor.c.
SceneExits
Uint32 SceneExits[]
Referenced by scGetExits().
Definition at line 892 of file alhafra_manor.c.
SceneCues
CUE SceneCues[]
References scAlhafraManorAskAboutAlhafra(), scAlhafraManorAskIfTheHeroes(), scAlhafraManorComplainAboutTheMayor(), scAlhafraManorDefendTheMayor(), scAlhafraManorPointOutAirsRock() and scAlhafraManorTellOfTheEasternSea().
Referenced by scGetCues().
Definition at line 1112 of file alhafra_manor.c.