Alchemy
Loading...
Searching...
No Matches

lalivero_interiors.c File Reference

Lalivero's buildings, on two maps. More...

Go to the source code of this file.

Macros

#define ACTOR_BEHIND_COUNTER   4
 Behind a counter: the actor is drawn under the counter's top and the party talks across it.

Enumerations

enum  { ENTRANCE_SANCTUM = 12 , ENTRANCE_FARAN_HOUSE = 21 , ENTRANCE_FROM_AERIE = 90 , ENTRANCE_REPORT_TO_FARAN = 99 }
enum  {
  FARAN = 11 , IODEM = 12 , INNKEEPER = 13 , MAID = 14 ,
  SHOPKEEPER_32 = 18 , SHOPKEEPER_33 = 19 , SHOPKEEPER_34 = 20 , PRIEST = 21 ,
  ACTOR_15 = 15
}
 The actors this scene's code moves, by their place in the placement tables. More...
enum  { FLAG_MAID_APOLOGIZED = 0x300 }
 Flag 0x300, which several places use for a passing state as they use the scene flags from 0x200: the maid has apologized. More...

Functions

static void TellFaranAboutFelix (void)
 The party tells Faran and Iodem what became of Felix, when it did not see the ship from the lighthouse.
static s32 Maid_Sigh (struct ScriptInterpreter *interpreter)
 The maid sighs between chores.
const struct SceneEntrance * LaliveroInteriors_GetEntrances (void)
const struct SceneRegion * LaliveroInteriors_GetRegions (void)
const u32 * LaliveroInteriors_GetExits (void)
const struct ScenePlacement * LaliveroInteriors_GetPlacements (void)
 The people of each map; Faran's house fills up after Venus Lighthouse.
static u16 Leader_GetSide (void)
 The side the leader faces: the facing rounded to the nearest of east, south, west and north.
static void TalkToShopkeeper32 (s32 keeper)
 A shopkeeper across the counter opens shop 32; from elsewhere they talk about Sheba, asking whether the party will go after her.
static void TalkToShopkeeper33 (s32 keeper)
 Shop 33 across the counter; otherwise small talk.
static void TalkToShopkeeper34 (s32 keeper)
 Shop 34 across the counter; otherwise small talk.
static void TalkToPriest (s32 priest)
 The sanctum's services across the counter; otherwise small talk.
static void TalkToInnkeeper (s32 innkeeper)
 A room for the night across the counter (inn 11); otherwise small talk.
static void TalkToMaid (void)
 The maid stops her chores to apologize: worry for Sheba keeps her from concentrating.
static void IodemCallsOut (void)
 Trigger 51 in Faran's house after the report: the camera finds Iodem, who asks the party to wait for him outside.
static void TalkToIodem (void)
 Iodem, talked to before he has given the Black Orb, repeats his request.
static void LeaveBuilding (void)
 A doorway out: take the touched trigger's exit with the exit sound.
const struct SceneEvent * LaliveroInteriors_GetEvents (void)
 What the party can talk to, touch and search on each map, before and after Venus Lighthouse.
static void ReportToFaran (void)
 Back from Venus Lighthouse, the party reports to Faran with Iodem: no sign of Sheba or of Felix, Faran's faith that Sheba lived, what an Adept is, and a farewell as the party sets out after Felix.
s32 Scene_Initialize (void)
 Sets the maps up as the party enters: shopkeepers and the innkeeper behind their counters, the sanctum as the place to wake after a defeat, the maid back at her chores, and the report to Faran on coming back from Venus Lighthouse.

Variables

s32 gLaliveroMaidChores []
 The maid's chores once she has apologized: she paces between two spots, turning to each side, and sighs now and then.
struct SceneEntrance gLaliveroEntrances []
struct SceneRegion gLaliveroSanctumRegions []
struct SceneRegion gLaliveroRegions []
u32 gLaliveroExits []
struct ScenePlacement gLaliveroPlacements []
struct ScenePlacement gFaranHousePlacements []
struct ScenePlacement gFaranHousePlacementsAfterLighthouse []
struct SceneEvent gLaliveroEvents []
struct SceneEvent gLaliveroEventsAfterLighthouse []
struct SceneEvent gFaranHouseEvents []
struct SceneEvent gFaranHouseEventsAfterLighthouse []

Detailed Description

Lalivero's buildings, on two maps.

The first holds the shops, the sanctum and the houses along the streets; the second holds Faran's house and the inn, where the party reports to Faran after Venus Lighthouse and Iodem asks them to meet him outside.

Definition in file lalivero_interiors.c.

Macro Definition Documentation

◆ ACTOR_BEHIND_COUNTER

#define ACTOR_BEHIND_COUNTER   4

Behind a counter: the actor is drawn under the counter's top and the party talks across it.

Definition at line 67 of file lalivero_interiors.c.

Referenced by Scene_Initialize().

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
ENTRANCE_SANCTUM 

Stepping into the sanctum makes it where a defeated party wakes.

ENTRANCE_FARAN_HOUSE 
ENTRANCE_FROM_AERIE 
ENTRANCE_REPORT_TO_FARAN 

Back from Venus Lighthouse: the party is led straight to Faran.

Definition at line 37 of file lalivero_interiors.c.

◆ anonymous enum

anonymous enum

The actors this scene's code moves, by their place in the placement tables.

Enumerator
FARAN 

In Faran's house.

IODEM 
INNKEEPER 
MAID 
SHOPKEEPER_32 

runs shop 32

SHOPKEEPER_33 
SHOPKEEPER_34 
PRIEST 
ACTOR_15 

posed in animation 6

Definition at line 47 of file lalivero_interiors.c.

◆ anonymous enum

anonymous enum

Flag 0x300, which several places use for a passing state as they use the scene flags from 0x200: the maid has apologized.

Enumerator
FLAG_MAID_APOLOGIZED 

Definition at line 63 of file lalivero_interiors.c.

Function Documentation

◆ TellFaranAboutFelix()

void TellFaranAboutFelix ( void )
static

The party tells Faran and Iodem what became of Felix, when it did not see the ship from the lighthouse.

Definition at line 614 of file lalivero_interiors.c.

Referenced by ReportToFaran(), and TellFaranAboutFelix().

◆ Maid_Sigh()

s32 Maid_Sigh ( struct ScriptInterpreter * interpreter)
static

The maid sighs between chores.

Definition at line 70 of file lalivero_interiors.c.

Referenced by Maid_Sigh().

◆ LaliveroInteriors_GetEntrances()

const struct SceneEntrance * LaliveroInteriors_GetEntrances ( void )

Definition at line 75 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetEntrances().

◆ LaliveroInteriors_GetRegions()

const struct SceneRegion * LaliveroInteriors_GetRegions ( void )

Definition at line 79 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetRegions().

◆ LaliveroInteriors_GetExits()

const u32 * LaliveroInteriors_GetExits ( void )

Definition at line 86 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetExits().

◆ LaliveroInteriors_GetPlacements()

const struct ScenePlacement * LaliveroInteriors_GetPlacements ( void )

The people of each map; Faran's house fills up after Venus Lighthouse.

Definition at line 89 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetPlacements().

◆ Leader_GetSide()

u16 Leader_GetSide ( void )
inlinestatic

The side the leader faces: the facing rounded to the nearest of east, south, west and north.

Facing north, the leader is across the counter from a shopkeeper.

Definition at line 103 of file lalivero_interiors.c.

Referenced by Leader_GetSide(), TalkToInnkeeper(), TalkToMaid(), TalkToPriest(), TalkToShopkeeper33(), and TalkToShopkeeper34().

◆ TalkToShopkeeper32()

void TalkToShopkeeper32 ( s32 keeper)
static

A shopkeeper across the counter opens shop 32; from elsewhere they talk about Sheba, asking whether the party will go after her.

Definition at line 109 of file lalivero_interiors.c.

Referenced by TalkToShopkeeper32().

◆ TalkToShopkeeper33()

void TalkToShopkeeper33 ( s32 keeper)
static

Shop 33 across the counter; otherwise small talk.

Definition at line 136 of file lalivero_interiors.c.

Referenced by TalkToShopkeeper33().

◆ TalkToShopkeeper34()

void TalkToShopkeeper34 ( s32 keeper)
static

Shop 34 across the counter; otherwise small talk.

Definition at line 149 of file lalivero_interiors.c.

Referenced by TalkToShopkeeper34().

◆ TalkToPriest()

void TalkToPriest ( s32 priest)
static

The sanctum's services across the counter; otherwise small talk.

Definition at line 162 of file lalivero_interiors.c.

Referenced by TalkToPriest().

◆ TalkToInnkeeper()

void TalkToInnkeeper ( s32 innkeeper)
static

A room for the night across the counter (inn 11); otherwise small talk.

Definition at line 175 of file lalivero_interiors.c.

Referenced by TalkToInnkeeper().

◆ TalkToMaid()

void TalkToMaid ( void )
static

The maid stops her chores to apologize: worry for Sheba keeps her from concentrating.

A leader standing west of her steps aside to the south before she starts again.

Definition at line 190 of file lalivero_interiors.c.

Referenced by TalkToMaid().

◆ IodemCallsOut()

void IodemCallsOut ( void )
static

Trigger 51 in Faran's house after the report: the camera finds Iodem, who asks the party to wait for him outside.

Definition at line 225 of file lalivero_interiors.c.

Referenced by IodemCallsOut().

◆ TalkToIodem()

void TalkToIodem ( void )
static

Iodem, talked to before he has given the Black Orb, repeats his request.

Definition at line 245 of file lalivero_interiors.c.

Referenced by TalkToIodem().

◆ LeaveBuilding()

void LeaveBuilding ( void )
static

A doorway out: take the touched trigger's exit with the exit sound.

Definition at line 253 of file lalivero_interiors.c.

Referenced by LeaveBuilding().

◆ LaliveroInteriors_GetEvents()

const struct SceneEvent * LaliveroInteriors_GetEvents ( void )

What the party can talk to, touch and search on each map, before and after Venus Lighthouse.

Definition at line 263 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetEvents().

◆ ReportToFaran()

void ReportToFaran ( void )
static

Back from Venus Lighthouse, the party reports to Faran with Iodem: no sign of Sheba or of Felix, Faran's faith that Sheba lived, what an Adept is, and a farewell as the party sets out after Felix.

Definition at line 279 of file lalivero_interiors.c.

Referenced by ReportToFaran(), and Scene_Initialize().

◆ Scene_Initialize()

s32 Scene_Initialize ( void )

Sets the maps up as the party enters: shopkeepers and the innkeeper behind their counters, the sanctum as the place to wake after a defeat, the maid back at her chores, and the report to Faran on coming back from Venus Lighthouse.

Sets up whichever scene is being entered and runs its arrival events.

Definition at line 678 of file lalivero_interiors.c.

Variable Documentation

◆ gLaliveroMaidChores

s32 gLaliveroMaidChores[]

The maid's chores once she has apologized: she paces between two spots, turning to each side, and sighs now and then.

Definition at line 730 of file lalivero_interiors.c.

Referenced by Scene_Initialize(), and TalkToMaid().

◆ gLaliveroEntrances

struct SceneEntrance gLaliveroEntrances[]
Initial value:
= {
{1, CONDITION_ALWAYS, 144, 0, 168, FACING_NORTH, 0, 0, 8, 240, 192, 0},
{2, CONDITION_ALWAYS, 400, 0, 168, FACING_NORTH, 0, 256, 8, 496, 192, 0},
{3, CONDITION_ALWAYS, 648, 0, 72, FACING_NORTH, 0, 488, 8, 728, 184, 0},
{4, CONDITION_ALWAYS, 128, 0, 472, FACING_NORTH, 0, 0, 216, 240, 488, 0},
{5, CONDITION_ALWAYS, 136, 0, 296, FACING_SOUTH, 0, 0, 216, 240, 488, 0},
{6, CONDITION_ALWAYS, 368, 0, 472, FACING_NORTH, 0, 240, 216, 480, 488, 0},
{7, CONDITION_ALWAYS, 392, 0, 296, FACING_SOUTH, 0, 240, 216, 480, 488, 0},
{8, CONDITION_ALWAYS, 648, 0, 280, FACING_NORTH, 0, 480, 216, 720, 488, 0},
{9, CONDITION_ALWAYS, 96, 0, 680, FACING_NORTH, 0, 8, 520, 312, 696, 0},
{10, CONDITION_ALWAYS, 200, 0, 600, FACING_SOUTH, 0, 8, 520, 312, 696, 0},
{11, CONDITION_ALWAYS, 432, 0, 728, FACING_NORTH, 0, 312, 520, 552, 744, 0},
{12, CONDITION_ALWAYS, 432, 0, 630, FACING_NORTH, 0, 312, 520, 552, 744, 0},
{21, CONDITION_ALWAYS, 96, 0, 168, FACING_NORTH, 0, 8, 8, 312, 192, 0},
{22, CONDITION_ALWAYS, 216, 0, 88, FACING_SOUTH, 0, 8, 8, 312, 192, 0},
{23, CONDITION_ALWAYS, 224, 0, 392, FACING_NORTH, 0, 8, 232, 312, 416, 0},
{24, CONDITION_ALWAYS, 88, 0, 312, FACING_SOUTH, 0, 8, 232, 312, 416, 0},
{25, CONDITION_ALWAYS, 384, 0, 368, FACING_NORTH, 0, 320, 240, 632, 400, 0},
{26, CONDITION_ALWAYS, 456, 0, 376, FACING_NORTH, 0, 320, 240, 632, 400, 0},
{27, CONDITION_ALWAYS, 504, 0, 376, FACING_NORTH, 0, 320, 240, 632, 400, 0},
{28, CONDITION_ALWAYS, 472, 0, 72, FACING_SOUTH, 0, 344, 8, 584, 168, 0},
{29, CONDITION_ALWAYS, 744, 0, 72, FACING_SOUTH, 0, 632, 8, 872, 168, 0},
{30, CONDITION_ALWAYS, 832, 0, 872, FACING_NORTH, 0, 280, 504, 912, 896, 0},
{31, CONDITION_ALWAYS, 464, 0, 832, FACING_SOUTH, 0, 280, 504, 912, 896, 0},
{99, CONDITION_ALWAYS, 96, 0, 168, FACING_NORTH, 0, 8, 8, 312, 192, 0},
}
@ SCENE_TABLE_END
Definition field_scene.h:43
@ CONDITION_ALWAYS
Definition field_scene.h:44
@ FACING_NORTH
Definition field_scene.h:32
@ FACING_SOUTH
Definition field_scene.h:28

Definition at line 764 of file lalivero_interiors.c.

◆ gLaliveroSanctumRegions

struct SceneRegion gLaliveroSanctumRegions[]
Initial value:
= {
{196, 28, 595, 204, 36, 603, CONDITION_ALWAYS, 10},
}

Definition at line 793 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetRegions().

◆ gLaliveroRegions

struct SceneRegion gLaliveroRegions[]
Initial value:
= {
{212, 28, 83, 220, 36, 91, CONDITION_ALWAYS, 22},
}

Definition at line 798 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetRegions().

◆ gLaliveroExits

u32 gLaliveroExits[]
Initial value:
= {
SCENE_EXIT(1, 178, 2),
SCENE_EXIT(2, 178, 10),
SCENE_EXIT(3, 179, 5),
SCENE_EXIT(4, 178, 5),
SCENE_EXIT(5, 179, 3),
SCENE_EXIT(6, 178, 4),
SCENE_EXIT(7, 179, 8),
SCENE_EXIT(8, 179, 7),
SCENE_EXIT(9, 178, 9),
SCENE_EXIT(10, 178, 11),
SCENE_EXIT(11, 178, 6),
SCENE_EXIT(0, 180, 0),
SCENE_EXIT(21, 178, 7),
SCENE_EXIT(22, 178, 8),
SCENE_EXIT(23, 178, 3),
SCENE_EXIT(24, 180, 25),
SCENE_EXIT(25, 180, 24),
SCENE_EXIT(26, 180, 28),
SCENE_EXIT(27, 180, 29),
SCENE_EXIT(28, 180, 26),
SCENE_EXIT(29, 180, 27),
SCENE_EXIT(30, 178, 1),
SCENE_EXIT(31, 188, 1),
}
#define SCENE_EXITS(scene)
Definition field_scene.h:72
#define SCENE_EXIT(exit, scene, entrance)
Definition field_scene.h:73
#define SCENE_EXITS_END
Definition field_scene.h:77

Definition at line 803 of file lalivero_interiors.c.

◆ gLaliveroPlacements

struct ScenePlacement gLaliveroPlacements[]

Definition at line 831 of file lalivero_interiors.c.

◆ gFaranHousePlacements

struct ScenePlacement gFaranHousePlacements[]
Initial value:

Definition at line 863 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetPlacements().

◆ gFaranHousePlacementsAfterLighthouse

struct ScenePlacement gFaranHousePlacementsAfterLighthouse[]
Initial value:

Definition at line 883 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetPlacements().

◆ gLaliveroEvents

struct SceneEvent gLaliveroEvents[]

Definition at line 909 of file lalivero_interiors.c.

◆ gLaliveroEventsAfterLighthouse

struct SceneEvent gLaliveroEventsAfterLighthouse[]

Definition at line 956 of file lalivero_interiors.c.

◆ gFaranHouseEvents

struct SceneEvent gFaranHouseEvents[]

Definition at line 1003 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetEvents().

◆ gFaranHouseEventsAfterLighthouse

struct SceneEvent gFaranHouseEventsAfterLighthouse[]

Definition at line 1035 of file lalivero_interiors.c.

Referenced by LaliveroInteriors_GetEvents().