Tolbi, the town of the Colosso festival. More...
Go to the source code of this file.
Macros | |
| #define | TOLBI_JAR_SEARCH_KIND (SEARCH(SEARCH_JAR) | EVENT_TOUCH_FACING | FACING_NORTH) |
Functions | |
| static void | Tolbi_FreezePuddle (void) |
| Frost on the puddle: the frozen pillar is drawn underfoot and stops following the terrain, and its map cell becomes solid. | |
| static void | Tolbi_JoinEmber (void) |
| Talking to Ember, the Mars Djinni hiding in town, makes it join the party. | |
| static s32 | Tolbi_KidStopForTarget (struct FieldActor *kid, struct FieldActor *target, s32 range, s32 force) |
| Stops a running child when the target is close by and ahead of it, or always when force is set; otherwise starts the child running again. | |
| static s32 | Tolbi_UpdateKid (union FieldObject *fieldObject) |
| const struct SceneEntrance * | Tolbi_GetEntrances (void) |
| const struct SceneRegion * | Tolbi_GetRegions (void) |
| const u32 * | Tolbi_GetExits (void) |
| const struct ScenePlacement * | Tolbi_GetPlacements (void) |
| static void | Tolbi_GrowSprout (void) |
| Growth on the sprout: the grown plant no longer blocks the party, and its map cell becomes climbable. | |
| static void | Tolbi_RevealHiddenChest (void) |
| Reveal uncovers the hidden chest: its map cell is drawn in and the chest moves into place. | |
| static void | Tolbi_HideRevealedChest (void) |
| When Reveal wears off, the chest's cell is covered again and the chest moves out of sight. | |
| static void | Tolbi_ReadSpringSign (void) |
| The first sign at Tolbi Spring: face away and toss a coin in. | |
| static void | Tolbi_ReadLuckyMedalSign (void) |
| The second sign at Tolbi Spring: a Lucky Medal wins better prizes. | |
| static void | Tolbi_TalkToOlderBrother (void) |
| Talking to the older brother, or reading his mind. | |
| static void | Tolbi_TalkToYoungerSibling (void) |
| Talking to the younger sibling, or reading the child's mind, as above. | |
| const struct SceneEvent * | Tolbi_SelectEvents (void) |
| Picks the event table for Tolbi's current mood. | |
| static void | Tolbi_AskAboutLivingPastHundred (void) |
| A townsperson asks whether someone can live to be more than 100 years old; either way the talk turns to Babi, who is older still. | |
| static void | Tolbi_TalkToFather (void) |
| The father asks whether children really do love souvenirs, and owns up to loving them himself. | |
| static void | Tolbi_TalkToMother (void) |
| The mother turns to her crying child, then back to promise better sweets later on. | |
| static void | Tolbi_TalkToCryingChild (void) |
| The crying child turns, stamps twice and wails for sweets. | |
| static void | Tolbi_TalkToSleepingScalper (void) |
| During the festival the scalper sleeps under the archway: the inns are full. | |
| static void | Tolbi_AskWhetherPartyWasInFinals (void) |
| After Colosso, actor 12 asks whether the party was in the finals. | |
| static void | Tolbi_TalkToSnackVendor (void) |
| After Colosso, the snack vendor gives the party her leftover corn, once. | |
| static void | Tolbi_EnterDoor (void) |
| Walking into one of the town's doors: the door opens, the leader steps in (except at the seventh door) and the scene changes to the door's exit. | |
| static void | Tolbi_CopyLeaderPriority (union FieldObject *object) |
| The update of actor 14: gives it the leader's sprite priority every frame, for both of its sprite parts. | |
| s32 | Tolbi_ApplyEntryState (s32 unused) |
| Sets up the scene on entry: the running children, actor 14's update, and everything the flags have already changed. | |
| static void | Tolbi_TalkToGambler (void) |
| The gambler at the spring's gate asks whether the party wants to test its luck. | |
| static void | Tolbi_EnterSpring (void) |
| The gate to Tolbi Spring, once the gambler has stepped aside. | |
| static void | Tolbi_RequestTouchedExit (void) |
| Leaves by the exit numbered as the trigger the party walked into. | |
| static void | Tolbi_MeetSearchingSoldiers (void) |
| During the festival, two soldiers searching for the missing Babi stop the party and show his picture. | |
Variables | |
| s32 | gTolbiMirroredActor [] |
| The action script of a mirrored actor: flips its sprite and passes 7 on. | |
| s32 | gTolbiOlderBrotherRun [] |
| The older brother runs a loop of eight points around the plaza. | |
| s32 | gTolbiYoungerSiblingRun [] |
| The younger sibling runs the same loop half a lap ahead. | |
| struct SceneEntrance | gTolbiEntrances [] |
| u32 | gTolbiExits [] |
| struct ScenePlacement | gTolbiPlacements [] |
| struct SceneEvent | gTolbiEventsFestival [] |
| During the festival, before the finals. | |
| struct SceneEvent | gTolbiEventsFinalsDay [] |
| On finals day. | |
| struct SceneEvent | gTolbiEventsAfterColosso [] |
| After Colosso has ended. | |
| u16 | gTolbiDoorOpening [] |
| How a door opens: two frames of cells copied over the closed door. | |
| struct MapCellAnim | gTolbiDoors [] |
| The doors, in the order of their triggers 1 to 9, by map cell. | |
Tolbi, the town of the Colosso festival.
The town has three moods, chosen by story flags: the festival during the trials, finals day, and the quiet after Colosso has ended. Each mood has its own event table; the actors and their scripts are shared.
Definition in file tolbi.c.
| #define TOLBI_JAR_SEARCH_KIND (SEARCH(SEARCH_JAR) | EVENT_TOUCH_FACING | FACING_NORTH) |
|
static |
Frost on the puddle: the frozen pillar is drawn underfoot and stops following the terrain, and its map cell becomes solid.
Definition at line 603 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState(), and Tolbi_FreezePuddle().
|
static |
Talking to Ember, the Mars Djinni hiding in town, makes it join the party.
Its index among the Mars Djinn is 4, the fifth Mars name in the game text.
Definition at line 38 of file tolbi.c.
Referenced by Tolbi_JoinEmber().
|
static |
Stops a running child when the target is close by and ahead of it, or always when force is set; otherwise starts the child running again.
The child stops when the target is within one facing step of where it looks; for the party leader, within two steps either side. Returns 1 when the child stopped.
Definition at line 49 of file tolbi.c.
Referenced by Tolbi_KidStopForTarget(), and Tolbi_UpdateKid().
|
static |
Definition at line 94 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState(), and Tolbi_UpdateKid().
| const struct SceneEntrance * Tolbi_GetEntrances | ( | void | ) |
Definition at line 137 of file tolbi.c.
Referenced by Tolbi_GetEntrances().
| const struct SceneRegion * Tolbi_GetRegions | ( | void | ) |
Definition at line 139 of file tolbi.c.
Referenced by Tolbi_GetRegions().
| const u32 * Tolbi_GetExits | ( | void | ) |
Definition at line 141 of file tolbi.c.
Referenced by Tolbi_GetExits().
| const struct ScenePlacement * Tolbi_GetPlacements | ( | void | ) |
Definition at line 143 of file tolbi.c.
Referenced by Tolbi_GetPlacements().
|
static |
Growth on the sprout: the grown plant no longer blocks the party, and its map cell becomes climbable.
Definition at line 149 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState(), and Tolbi_GrowSprout().
|
static |
Reveal uncovers the hidden chest: its map cell is drawn in and the chest moves into place.
Definition at line 164 of file tolbi.c.
Referenced by Tolbi_RevealHiddenChest().
|
static |
When Reveal wears off, the chest's cell is covered again and the chest moves out of sight.
Definition at line 171 of file tolbi.c.
Referenced by Tolbi_HideRevealedChest().
|
static |
The first sign at Tolbi Spring: face away and toss a coin in.
Definition at line 177 of file tolbi.c.
Referenced by Tolbi_ReadSpringSign().
|
static |
The second sign at Tolbi Spring: a Lucky Medal wins better prizes.
Definition at line 183 of file tolbi.c.
Referenced by Tolbi_ReadLuckyMedalSign().
|
static |
Talking to the older brother, or reading his mind.
He stops running while he speaks, then turns back the way he was going.
Definition at line 190 of file tolbi.c.
Referenced by Tolbi_TalkToOlderBrother().
|
static |
Talking to the younger sibling, or reading the child's mind, as above.
Definition at line 228 of file tolbi.c.
Referenced by Tolbi_TalkToYoungerSibling().
| const struct SceneEvent * Tolbi_SelectEvents | ( | void | ) |
Picks the event table for Tolbi's current mood.
Definition at line 266 of file tolbi.c.
Referenced by Tolbi_SelectEvents().
|
static |
A townsperson asks whether someone can live to be more than 100 years old; either way the talk turns to Babi, who is older still.
Definition at line 278 of file tolbi.c.
Referenced by Tolbi_AskAboutLivingPastHundred().
|
static |
The father asks whether children really do love souvenirs, and owns up to loving them himself.
Definition at line 287 of file tolbi.c.
Referenced by Tolbi_TalkToFather().
|
static |
The mother turns to her crying child, then back to promise better sweets later on.
"Be patient, little guy."
Definition at line 296 of file tolbi.c.
Referenced by Tolbi_TalkToMother().
|
static |
The crying child turns, stamps twice and wails for sweets.
Definition at line 307 of file tolbi.c.
Referenced by Tolbi_TalkToCryingChild().
|
static |
During the festival the scalper sleeps under the archway: the inns are full.
Definition at line 318 of file tolbi.c.
Referenced by Tolbi_TalkToSleepingScalper().
|
static |
After Colosso, actor 12 asks whether the party was in the finals.
The question is anchored to the father, who has left town by then.
Definition at line 327 of file tolbi.c.
Referenced by Tolbi_AskWhetherPartyWasInFinals().
|
static |
After Colosso, the snack vendor gives the party her leftover corn, once.
Definition at line 335 of file tolbi.c.
Referenced by Tolbi_TalkToSnackVendor().
|
static |
Walking into one of the town's doors: the door opens, the leader steps in (except at the seventh door) and the scene changes to the door's exit.
Definition at line 354 of file tolbi.c.
Referenced by Tolbi_EnterDoor().
|
static |
The update of actor 14: gives it the leader's sprite priority every frame, for both of its sprite parts.
Definition at line 385 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState(), and Tolbi_CopyLeaderPriority().
Sets up the scene on entry: the running children, actor 14's update, and everything the flags have already changed.
Definition at line 398 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState().
|
static |
The gambler at the spring's gate asks whether the party wants to test its luck.
On yes he steps aside for good and the way to Tolbi Spring opens.
Definition at line 461 of file tolbi.c.
Referenced by Tolbi_TalkToGambler().
|
static |
The gate to Tolbi Spring, once the gambler has stepped aside.
Definition at line 485 of file tolbi.c.
Referenced by Tolbi_EnterSpring().
|
static |
Leaves by the exit numbered as the trigger the party walked into.
Definition at line 491 of file tolbi.c.
Referenced by Tolbi_RequestTouchedExit().
|
static |
During the festival, two soldiers searching for the missing Babi stop the party and show his picture.
They leave either way the party answers.
Definition at line 499 of file tolbi.c.
Referenced by Tolbi_MeetSearchingSoldiers().
| s32 gTolbiMirroredActor[] |
The action script of a mirrored actor: flips its sprite and passes 7 on.
| s32 gTolbiOlderBrotherRun[] |
The older brother runs a loop of eight points around the plaza.
Definition at line 625 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState().
| s32 gTolbiYoungerSiblingRun[] |
The younger sibling runs the same loop half a lap ahead.
Definition at line 650 of file tolbi.c.
Referenced by Tolbi_ApplyEntryState().
| struct SceneEntrance gTolbiEntrances[] |
Definition at line 674 of file tolbi.c.
Referenced by Tolbi_GetEntrances().
| u32 gTolbiExits[] |
| struct ScenePlacement gTolbiPlacements[] |
Definition at line 704 of file tolbi.c.
Referenced by Tolbi_GetPlacements().
| struct SceneEvent gTolbiEventsFestival[] |
During the festival, before the finals.
Definition at line 760 of file tolbi.c.
Referenced by Tolbi_SelectEvents().
| struct SceneEvent gTolbiEventsFinalsDay[] |
| struct SceneEvent gTolbiEventsAfterColosso[] |
After Colosso has ended.
Definition at line 896 of file tolbi.c.
Referenced by Tolbi_SelectEvents().
| u16 gTolbiDoorOpening[] |
How a door opens: two frames of cells copied over the closed door.
| struct MapCellAnim gTolbiDoors[] |
The doors, in the order of their triggers 1 to 9, by map cell.
Definition at line 957 of file tolbi.c.
Referenced by Tolbi_EnterDoor().