The houses and shops of Vale. More...
Go to the source code of this file.
Enumerations | |
| enum | ValeInteriorsActor { ACTOR_GARETS_GRANDFATHER = 8 , ACTOR_GARETS_GRANDMOTHER = 9 , ACTOR_GARETS_FATHER = 10 , ACTOR_GARETS_MOTHER = 11 , ACTOR_JENNAS_GRANDMOTHER = 13 , ACTOR_ITEM_SHOPKEEPER = 20 , ACTOR_WEAPON_SHOPKEEPER = 21 , ACTOR_ARMOR_SHOPKEEPER = 22 , ACTOR_FIRST_DRIFTING_SPRITE = 23 } |
Functions | |
| static void | Event_GaretComesHome (void) |
| Back from Kalay, Garet comes home: his grandfather dozes, his parents argue over whether to look for him, and his grandmother spots him first. | |
| static void | ValeInteriors_SpawnDriftingSprite (void) |
| Sends a sprite drifting up from Garet's sleeping grandfather, one of the three at frames 10, 20 and 30 of every 180. | |
| static s32 | ValeInteriors_AdvanceDriftingSprite (struct ScriptInterpreter *interpreter) |
| Moves and grows a sprite drifting up from Garet's sleeping grandfather. | |
| const struct SceneEntrance * | ValeInteriors_GetEntrances (void) |
| const struct SceneRegion * | ValeInteriors_GetRegions (void) |
| const u32 * | ValeInteriors_GetExits (void) |
| On the stormy night, the doors lead out into the storm. | |
| const struct ScenePlacement * | ValeInteriors_GetPlacements (void) |
| Selects the placements for the day the story begins, after the party has left Vale (FLAG_PARTY_LEFT_VALE), or after Kalay (FLAG_REACHED_KALAY), and marks which of their actors are in view. | |
| const struct SceneEvent * | ValeInteriors_GetEvents (void) |
| Selects the events for the current visit to Vale: the stormy night's (FLAG_VALE_STORM), after Kalay, after the party has left, or the day the story begins. | |
| static void | Event_AskAboutKradensStudies (void) |
| A villager asks whether Isaac knew why Kraden came to Vale. | |
| static void | Event_AskToScareVisitors (void) |
| A villager asks Isaac to help scare Kraden's visitors. | |
| static void | ValeInteriors_GiveFarewellHerb (void) |
| After the party has left Vale, the item shopkeeper gives Isaac a Herb as a farewell gift, and afterwards urges him to save Jenna. | |
| static void | Event_AskAboutCulpritsPowers (void) |
| A villager tells of the culprits' strange powers and asks about them. | |
| static void | Event_AskAboutDora (void) |
| Back from Kalay, Garet's father asks whether Isaac heard them talking about Dora. | |
| static void | Event_WorryAboutTravelersHealth (void) |
| Garet's mother hopes the travelers did not get sick on the way. | |
| static void | ValeInteriors_RequestWindowExit (s32 exitId) |
| Leaves a house through its door: the exit sound plays and the screen closes, stopping the lightning first on the stormy night. | |
| static void | Event_LeaveByDoor1 (void) |
| static void | Event_LeaveByDoor2 (void) |
| static void | Event_LeaveByDoor3 (void) |
| static void | Event_LeaveByDoor4 (void) |
| static void | Event_LeaveByDoor5 (void) |
| static void | Event_LeaveByDoor6 (void) |
| static void | Event_LeaveByDoor7 (void) |
| static void | Event_LeaveByDoor8 (void) |
| s32 | ValeInteriors_Initialize (void) |
| Arriving in a house: on the stormy night the residents are gone and lightning flashes outside; back from Kalay, entering Garet's house the first time plays his homecoming. | |
| static void | Event_TalkToWeaponShopkeeper (void) |
| Opens the weapon shop across the counter, or the shopkeeper speaks. | |
| static void | Event_TalkToArmorShopkeeper (void) |
| Opens the armor shop across the counter, or the shopkeeper speaks. | |
| static void | Event_TalkToItemShopkeeper (void) |
| Opens the item shop across the counter, or the shopkeeper speaks. | |
| static void | ValeInteriors_FamilyNods (void) |
| Garet's grandparents and father nod. | |
| static void | ValeInteriors_PlayRepeatedAnimationAndWait (s32 actorId, s32 animation) |
| Starts the repeated motion before waiting for the requested animation. | |
Variables | |
| s32 | gValeInteriors_FaceTargetScript [] |
| s32 | gValeInteriors_FatherPacingScript [] |
| s32 | gValeInteriors_PartyLeavesScript [] |
| s32 | gValeInteriors_DriftingSpriteScript [] |
| struct SceneEntrance | gValeInteriors_Entrances [] |
| u32 | gValeInteriors_Exits [] |
| u32 | gValeInteriors_StormExits [] |
| struct ScenePlacement | gValeInteriors_Placements [] |
| struct ScenePlacement | gValeInteriors_PlacementsAfterLeaving [] |
| struct ScenePlacement | gValeInteriors_PlacementsAfterKalay [] |
| struct SceneEvent | gValeInteriors_StormEvents [] |
| struct SceneEvent | gValeInteriors_Events [] |
| struct SceneEvent | gValeInteriors_EventsAfterLeaving [] |
| struct SceneEvent | gValeInteriors_EventsAfterKalay [] |
The houses and shops of Vale.
Garet's family lives in the house at entrance 6: his grandfather, his grandmother, and his parents ("Mom, Dad... I'm home...").
Definition in file vale_interiors.c.
| enum ValeInteriorsActor |
Definition at line 33 of file vale_interiors.c.
|
static |
Back from Kalay, Garet comes home: his grandfather dozes, his parents argue over whether to look for him, and his grandmother spots him first.
Garet introduces Ivan and Mia, the family sees them off, and his father paces.
Called by ValeInteriors_Initialize from entrance 6 after Kalay, until FLAG_GARET_CAME_HOME is set; sets it. Adds and removes the callback ValeInteriors_SpawnDriftingSprite, and leaves the father pacing.
Definition at line 402 of file vale_interiors.c.
Referenced by Event_GaretComesHome(), and ValeInteriors_Initialize().
|
static |
Sends a sprite drifting up from Garet's sleeping grandfather, one of the three at frames 10, 20 and 30 of every 180.
A callback Event_GaretComesHome adds while the grandfather dozes.
Definition at line 720 of file vale_interiors.c.
Referenced by Event_GaretComesHome(), and ValeInteriors_SpawnDriftingSprite().
|
static |
Moves and grows a sprite drifting up from Garet's sleeping grandfather.
Called each frame by gValeInteriors_DriftingSpriteScript; the actor's timer and work are its x and y steps in signed 8.8 pixels, set by ValeInteriors_SpawnDriftingSprite.
Definition at line 66 of file vale_interiors.c.
Referenced by ValeInteriors_AdvanceDriftingSprite().
| const struct SceneEntrance * ValeInteriors_GetEntrances | ( | void | ) |
Definition at line 78 of file vale_interiors.c.
Referenced by ValeInteriors_GetEntrances().
| const struct SceneRegion * ValeInteriors_GetRegions | ( | void | ) |
Definition at line 82 of file vale_interiors.c.
Referenced by ValeInteriors_GetRegions().
| const u32 * ValeInteriors_GetExits | ( | void | ) |
On the stormy night, the doors lead out into the storm.
Definition at line 85 of file vale_interiors.c.
Referenced by ValeInteriors_GetExits().
| const struct ScenePlacement * ValeInteriors_GetPlacements | ( | void | ) |
Selects the placements for the day the story begins, after the party has left Vale (FLAG_PARTY_LEFT_VALE), or after Kalay (FLAG_REACHED_KALAY), and marks which of their actors are in view.
Definition at line 94 of file vale_interiors.c.
Referenced by ValeInteriors_GetPlacements().
| const struct SceneEvent * ValeInteriors_GetEvents | ( | void | ) |
Selects the events for the current visit to Vale: the stormy night's (FLAG_VALE_STORM), after Kalay, after the party has left, or the day the story begins.
Definition at line 111 of file vale_interiors.c.
Referenced by ValeInteriors_GetEvents().
|
static |
A villager asks whether Isaac knew why Kraden came to Vale.
He came to study Mt. Aleph.
Reached by talking to actor 15 on the day the story begins.
Definition at line 125 of file vale_interiors.c.
Referenced by Event_AskAboutKradensStudies().
|
static |
A villager asks Isaac to help scare Kraden's visitors.
Reached by talking to actor 19 on the day the story begins.
Definition at line 136 of file vale_interiors.c.
Referenced by Event_AskToScareVisitors().
|
static |
After the party has left Vale, the item shopkeeper gives Isaac a Herb as a farewell gift, and afterwards urges him to save Jenna.
Called by Event_TalkToItemShopkeeper away from the counter, after the party has left and before Kalay. Gives the Herb and sets FLAG_VALE_FAREWELL_HERB_RECEIVED once; afterwards the shopkeeper turns to watch the leader.
Definition at line 151 of file vale_interiors.c.
Referenced by Event_TalkToItemShopkeeper(), and ValeInteriors_GiveFarewellHerb().
|
static |
A villager tells of the culprits' strange powers and asks about them.
Reached by talking to actor 16 after the party has left Vale.
Definition at line 175 of file vale_interiors.c.
Referenced by Event_AskAboutCulpritsPowers().
|
static |
Back from Kalay, Garet's father asks whether Isaac heard them talking about Dora.
Reached by talking to Garet's father (actor 10) after Kalay.
Definition at line 186 of file vale_interiors.c.
Referenced by Event_AskAboutDora().
|
static |
Garet's mother hopes the travelers did not get sick on the way.
Reached by talking to Garet's mother (actor 11) after Kalay.
Definition at line 196 of file vale_interiors.c.
Referenced by Event_WorryAboutTravelersHealth().
|
static |
Leaves a house through its door: the exit sound plays and the screen closes, stopping the lightning first on the stormy night.
Definition at line 205 of file vale_interiors.c.
Referenced by Event_LeaveByDoor1(), Event_LeaveByDoor2(), Event_LeaveByDoor3(), Event_LeaveByDoor4(), Event_LeaveByDoor5(), Event_LeaveByDoor6(), Event_LeaveByDoor7(), Event_LeaveByDoor8(), and ValeInteriors_RequestWindowExit().
|
static |
Definition at line 217 of file vale_interiors.c.
Referenced by Event_LeaveByDoor1().
|
static |
Definition at line 219 of file vale_interiors.c.
Referenced by Event_LeaveByDoor2().
|
static |
Definition at line 221 of file vale_interiors.c.
Referenced by Event_LeaveByDoor3().
|
static |
Definition at line 223 of file vale_interiors.c.
Referenced by Event_LeaveByDoor4().
|
static |
Definition at line 225 of file vale_interiors.c.
Referenced by Event_LeaveByDoor5().
|
static |
Definition at line 227 of file vale_interiors.c.
Referenced by Event_LeaveByDoor6().
|
static |
Definition at line 229 of file vale_interiors.c.
Referenced by Event_LeaveByDoor7().
|
static |
Definition at line 231 of file vale_interiors.c.
Referenced by Event_LeaveByDoor8().
| s32 ValeInteriors_Initialize | ( | void | ) |
Arriving in a house: on the stormy night the residents are gone and lightning flashes outside; back from Kalay, entering Garet's house the first time plays his homecoming.
The scene's initialize entry. Runs Event_GaretComesHome from entrance 6 after Kalay until FLAG_GARET_CAME_HOME is set. From entrance 2, once the party has left Vale, Jenna's grandmother lies sick in bed.
Definition at line 240 of file vale_interiors.c.
Referenced by ValeInteriors_Initialize().
|
static |
Opens the weapon shop across the counter, or the shopkeeper speaks.
Reached by talking to the weapon shopkeeper (actor 21) in every table but the stormy night's. Facing north, across the counter, opens shop 1; else the shopkeeper's line follows the story.
Definition at line 299 of file vale_interiors.c.
|
static |
Opens the armor shop across the counter, or the shopkeeper speaks.
Reached by talking to the armor shopkeeper (actor 22) in every table but the stormy night's; opens shop 2 when facing north.
Definition at line 328 of file vale_interiors.c.
|
static |
Opens the item shop across the counter, or the shopkeeper speaks.
Reached by talking to the item shopkeeper (actor 20) in every table but the stormy night's; opens shop 3 when facing north. After the party has left and before Kalay, ValeInteriors_GiveFarewellHerb speaks instead.
Definition at line 355 of file vale_interiors.c.
|
inlinestatic |
Garet's grandparents and father nod.
Definition at line 381 of file vale_interiors.c.
Referenced by Event_GaretComesHome(), and ValeInteriors_FamilyNods().
Starts the repeated motion before waiting for the requested animation.
Definition at line 389 of file vale_interiors.c.
Referenced by Event_GaretComesHome(), and ValeInteriors_PlayRepeatedAnimationAndWait().
| s32 gValeInteriors_FaceTargetScript[] |
Definition at line 763 of file vale_interiors.c.
Referenced by Event_GaretComesHome(), and ValeInteriors_GiveFarewellHerb().
| s32 gValeInteriors_FatherPacingScript[] |
| s32 gValeInteriors_PartyLeavesScript[] |
Definition at line 797 of file vale_interiors.c.
Referenced by Event_GaretComesHome().
| s32 gValeInteriors_DriftingSpriteScript[] |
Definition at line 804 of file vale_interiors.c.
Referenced by ValeInteriors_SpawnDriftingSprite().
| struct SceneEntrance gValeInteriors_Entrances[] |
Definition at line 813 of file vale_interiors.c.
Referenced by ValeInteriors_GetEntrances().
| u32 gValeInteriors_Exits[] |
Definition at line 826 of file vale_interiors.c.
Referenced by ValeInteriors_GetExits().
| u32 gValeInteriors_StormExits[] |
Definition at line 833 of file vale_interiors.c.
Referenced by ValeInteriors_GetExits().
| struct ScenePlacement gValeInteriors_Placements[] |
Definition at line 841 of file vale_interiors.c.
Referenced by ValeInteriors_GetPlacements().
| struct ScenePlacement gValeInteriors_PlacementsAfterLeaving[] |
Definition at line 875 of file vale_interiors.c.
Referenced by ValeInteriors_GetPlacements().
| struct ScenePlacement gValeInteriors_PlacementsAfterKalay[] |
Definition at line 909 of file vale_interiors.c.
Referenced by ValeInteriors_GetPlacements().
| struct SceneEvent gValeInteriors_StormEvents[] |
Definition at line 955 of file vale_interiors.c.
Referenced by ValeInteriors_GetEvents().
| struct SceneEvent gValeInteriors_Events[] |
Definition at line 984 of file vale_interiors.c.
Referenced by ValeInteriors_GetEvents().
| struct SceneEvent gValeInteriors_EventsAfterLeaving[] |
Definition at line 1022 of file vale_interiors.c.
Referenced by ValeInteriors_GetEvents().
| struct SceneEvent gValeInteriors_EventsAfterKalay[] |
Definition at line 1075 of file vale_interiors.c.
Referenced by ValeInteriors_GetEvents().