Alchemy
Loading...
Searching...
No Matches

suhalla_interiors.c File Reference

Suhalla's houses, shop, inn and sanctum. More...

Go to the source code of this file.

Enumerations

enum  { ENTRANCE_90 = 90 }
 Arriving by this entrance also marks Babi's audience as held. More...
enum  {
  SHOPKEEPER = 12 , INNKEEPER = 13 , PRIEST = 18 , IODEM = 19 ,
  SOLDIER_SOUTH = 20 , SOLDIER_NORTH = 21
}
 The actors this scene's code names, by their place in the placement tables. More...
enum  { SHOP_SUHALLA = 31 , INN_SUHALLA = 10 }

Functions

const struct SceneEntrance * Scene_GetEntrances (void)
const struct SceneRegion * Scene_GetRegions (void)
const u32 * Scene_GetExits (void)
 Both scenes share one exit table.
const struct ScenePlacement * Scene_GetPlacements (void)
 The townsfolk, joined after Babi's audience by Iodem, the wounded soldiers and the travelers the sandstorms brought.
static void Event_TalkToShopkeeper (s32 actorId)
 Spoken to facing north, across the counter, the shopkeeper opens the shop; otherwise the shopkeeper says Suhalla's is the only store, or, after Babi's audience, asks whether the party is surprised to find so few shops.
static void Event_TalkToInnkeeper (s32 actorId)
 Spoken to facing north, across the counter, the innkeeper offers a room; otherwise the innkeeper has nothing to do until Tolbi's festival ends, or, after Babi's audience, has been busy since the sandstorms began.
static void Event_TalkToPriest (s32 actorId)
 Spoken to facing north, across the counter, the priest offers the sanctum's services; otherwise the priest talks of Lalivero under Tolbi's rule, or, after Babi's audience, wonders why there are so many sandstorms.
static void Event_AskIfBlownHere (s32 actorId)
 A traveler asks whether the party was blown here on the way to Babi Lighthouse, and answers yes or no.
static void Event_LeaveByExit (void)
 The party leaves by the touched exit.
static void Event_IodemQuestionsWoundedSoldiers (void)
 After Babi's audience, on entering the inn: Iodem steps out of the party and questions the two wounded soldiers.
const struct SceneEvent * Scene_GetEvents (void)
 The doors, the townsfolk and the ovens, before or after Babi's audience.
s32 Scene_Initialize (void)
 Sets the houses up as the party enters: the shopkeeper and innkeeper behind their counters, and the two wounded soldiers lying in their beds.

Variables

struct SceneEntrance gSuhallaInteriorsEntrances []
s16 gSuhallaInteriorsRegions []
u32 gSuhallaInteriorsExits []
struct ScenePlacement gSuhallaInteriorsPlacements []
struct ScenePlacement gSuhallaInteriorsPlacementsAfterAudience []
struct SceneEvent gSuhallaInteriorsEvents []
struct SceneEvent gSuhallaInteriorsEventsAfterAudience []

Detailed Description

Suhalla's houses, shop, inn and sanctum.

After Babi's audience the inn holds two of Tolbi's soldiers, wounded in the sandstorms, and Iodem comes to question them about Sheba.

Definition in file suhalla_interiors.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum

Arriving by this entrance also marks Babi's audience as held.

Enumerator
ENTRANCE_90 

Definition at line 22 of file suhalla_interiors.c.

◆ anonymous enum

anonymous enum

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

Enumerator
SHOPKEEPER 
INNKEEPER 
PRIEST 

keeps the sanctum

IODEM 
SOLDIER_SOUTH 

the wounded soldiers in the inn's beds

SOLDIER_NORTH 

Definition at line 25 of file suhalla_interiors.c.

◆ anonymous enum

anonymous enum
Enumerator
SHOP_SUHALLA 
INN_SUHALLA 

Definition at line 34 of file suhalla_interiors.c.

Function Documentation

◆ Scene_GetEntrances()

const struct SceneEntrance * Scene_GetEntrances ( void )

Definition at line 36 of file suhalla_interiors.c.

◆ Scene_GetRegions()

const struct SceneRegion * Scene_GetRegions ( void )

Definition at line 40 of file suhalla_interiors.c.

◆ Scene_GetExits()

const u32 * Scene_GetExits ( void )

Both scenes share one exit table.

Definition at line 44 of file suhalla_interiors.c.

◆ Scene_GetPlacements()

const struct ScenePlacement * Scene_GetPlacements ( void )

The townsfolk, joined after Babi's audience by Iodem, the wounded soldiers and the travelers the sandstorms brought.

Definition at line 48 of file suhalla_interiors.c.

◆ Event_TalkToShopkeeper()

void Event_TalkToShopkeeper ( s32 actorId)
static

Spoken to facing north, across the counter, the shopkeeper opens the shop; otherwise the shopkeeper says Suhalla's is the only store, or, after Babi's audience, asks whether the party is surprised to find so few shops.

Definition at line 58 of file suhalla_interiors.c.

Referenced by Event_TalkToShopkeeper().

◆ Event_TalkToInnkeeper()

void Event_TalkToInnkeeper ( s32 actorId)
static

Spoken to facing north, across the counter, the innkeeper offers a room; otherwise the innkeeper has nothing to do until Tolbi's festival ends, or, after Babi's audience, has been busy since the sandstorms began.

Definition at line 82 of file suhalla_interiors.c.

◆ Event_TalkToPriest()

void Event_TalkToPriest ( s32 actorId)
static

Spoken to facing north, across the counter, the priest offers the sanctum's services; otherwise the priest talks of Lalivero under Tolbi's rule, or, after Babi's audience, wonders why there are so many sandstorms.

Definition at line 98 of file suhalla_interiors.c.

Referenced by Event_TalkToPriest().

◆ Event_AskIfBlownHere()

void Event_AskIfBlownHere ( s32 actorId)
static

A traveler asks whether the party was blown here on the way to Babi Lighthouse, and answers yes or no.

Definition at line 113 of file suhalla_interiors.c.

Referenced by Event_AskIfBlownHere().

◆ Event_LeaveByExit()

void Event_LeaveByExit ( void )
static

The party leaves by the touched exit.

Definition at line 127 of file suhalla_interiors.c.

Referenced by Event_LeaveByExit().

◆ Event_IodemQuestionsWoundedSoldiers()

void Event_IodemQuestionsWoundedSoldiers ( void )
static

After Babi's audience, on entering the inn: Iodem steps out of the party and questions the two wounded soldiers.

They were escorting Sheba to Lalivero when a sandstorm hit them, and tell of others who stopped the cyclones with water and slew the monsters causing them. Iodem resolves to search the desert for Sheba, and rejoins the party. Once the party has been to Babi Lighthouse (FLAG_IODEM_AT_BABI_LIGHTHOUSE), Iodem does not come.

Definition at line 141 of file suhalla_interiors.c.

Referenced by Event_IodemQuestionsWoundedSoldiers().

◆ Scene_GetEvents()

const struct SceneEvent * Scene_GetEvents ( void )

The doors, the townsfolk and the ovens, before or after Babi's audience.

Definition at line 409 of file suhalla_interiors.c.

◆ Scene_Initialize()

s32 Scene_Initialize ( void )

Sets the houses up as the party enters: the shopkeeper and innkeeper behind their counters, and the two wounded soldiers lying in their beds.

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

Definition at line 418 of file suhalla_interiors.c.

Variable Documentation

◆ gSuhallaInteriorsEntrances

struct SceneEntrance gSuhallaInteriorsEntrances[]
Initial value:
= {
{0, CONDITION_ALWAYS, 172, 0, 149, FACING_SOUTH, 0, -1, -1, -1, -1, 0},
{1, CONDITION_ALWAYS, 256, 0, 456, FACING_NORTH, 0, 0, 280, 336, 480, 0},
{2, CONDITION_ALWAYS, 432, 0, 728, FACING_NORTH, 0, 312, 528, 552, 752, 0},
{3, CONDITION_ALWAYS, 640, 0, 168, FACING_NORTH, 0, 496, 16, 736, 192, 0},
{4, CONDITION_ALWAYS, 112, 0, 168, FACING_NORTH, 0, 0, 16, 240, 208, 0},
{5, CONDITION_ALWAYS, 352, 0, 216, FACING_NORTH, 0, 256, 16, 496, 232, 0},
{6, CONDITION_ALWAYS, 432, 0, 630, FACING_NORTH, 0, 312, 528, 552, 752, 0},
{7, CONDITION_ALWAYS, 680, 0, 120, FACING_WEST, 0, 496, 16, 736, 192, 0},
{10, CONDITION_ALWAYS, 104, 0, 360, FACING_NORTH, 0, 0, 280, 336, 480, 0},
{11, CONDITION_ALWAYS, 152, 0, 360, FACING_NORTH, 0, 0, 280, 336, 480, 0},
{12, CONDITION_ALWAYS, 472, 0, 344, FACING_SOUTH, 0, 344, 280, 584, 440, 0},
{13, CONDITION_ALWAYS, 712, 0, 344, FACING_SOUTH, 0, 600, 280, 840, 440, 0},
{14, CONDITION_ALWAYS, 88, 0, 352, FACING_SOUTH, 0, 0, 280, 336, 480, 0},
{15, CONDITION_ALWAYS, 88, 0, 584, FACING_NORTH, 0, 16, 528, 256, 688, 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
@ FACING_WEST
Definition field_scene.h:30

Definition at line 444 of file suhalla_interiors.c.

Referenced by Scene_GetEntrances().

◆ gSuhallaInteriorsRegions

s16 gSuhallaInteriorsRegions[]
Initial value:
= {
83, 28, 356, 91, 36, 364, -1, 14,
83, -20, 596, 91, -12, 604, -1, 15,
-1, 0, 0, 0, 0, 0, 0, 0,
}

Definition at line 463 of file suhalla_interiors.c.

Referenced by Scene_GetRegions().

◆ gSuhallaInteriorsExits

u32 gSuhallaInteriorsExits[]
Initial value:
= {
SCENE_EXIT(1, 167, 1),
SCENE_EXIT(2, 167, 2),
SCENE_EXIT(3, 167, 3),
SCENE_EXIT(4, 167, 4),
SCENE_EXIT(5, 167, 5),
SCENE_EXIT(10, 168, 12),
SCENE_EXIT(11, 168, 13),
SCENE_EXIT(12, 168, 10),
SCENE_EXIT(13, 168, 11),
SCENE_EXIT(14, 168, 15),
SCENE_EXIT(15, 168, 14),
}
#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 469 of file suhalla_interiors.c.

Referenced by Scene_GetExits().

◆ gSuhallaInteriorsPlacements

struct ScenePlacement gSuhallaInteriorsPlacements[]
Initial value:
= {
PIXELS(368), 0, PIXELS(192), FACING_SOUTH, TALK_FACE_PARTY, 0 },
PIXELS(160), 0, PIXELS(104), FACING_SOUTH, TALK_FACE_PARTY, 0 },
PIXELS(272), 0, PIXELS(392), FACING_SOUTH, TALK_FACE_PARTY, 0 },
PIXELS(432), 0, PIXELS(600), FACING_SOUTH, TALK_FACE_PARTY, 0 },
}
@ TALK_FACE_PARTY
@ TALK_FACE_PARTY_AND_BACK
@ ACTOR_WANDER
@ ACTOR_STAND
@ FACING_NORTHEAST
Definition field_scene.h:33
@ FACING_EAST
Definition field_scene.h:26
#define PIXELS(value)

Definition at line 485 of file suhalla_interiors.c.

Referenced by Scene_GetPlacements().

◆ gSuhallaInteriorsPlacementsAfterAudience

struct ScenePlacement gSuhallaInteriorsPlacementsAfterAudience[]

Definition at line 511 of file suhalla_interiors.c.

Referenced by Scene_GetPlacements().

◆ gSuhallaInteriorsEvents

struct SceneEvent gSuhallaInteriorsEvents[]

Definition at line 543 of file suhalla_interiors.c.

Referenced by Scene_GetEvents().

◆ gSuhallaInteriorsEventsAfterAudience

struct SceneEvent gSuhallaInteriorsEventsAfterAudience[]

Definition at line 575 of file suhalla_interiors.c.

Referenced by Scene_GetEvents().