Xian: the water carrier who spills her water, Frost on the spill, the kung fu student and his training tree, Feizhi, and a Mercury Djinni. More...
Go to the source code of this file.
Macros | |
| #define | NULL ((void *)0) |
| #define | XIAN_WATER_CARRIER_UPDATE ((void *)Xian_WatchWaterCarrierPath) |
Enumerations | |
| enum | { ACTOR_KUNG_FU_STUDENT = 14 , ACTOR_FEIZHI = 17 , ACTOR_WATER_CARRIER , ACTOR_TRAINING_TREE , ACTOR_PUDDLE , ACTOR_FORCE_TARGET , ACTOR_DJINNI , ACTOR_FIRST_DECORATION } |
| The actors, numbered from the placements (the first placed is actor 8). More... | |
| enum | { ANIM_PUDDLE_FROZEN = 5 } |
| enum | { XIAN_TRIGGER_CARRIER_BLOCKED = 200 , XIAN_CARRIER_BLOCKED_FRAMES = 120 } |
| The trigger the water carrier raises when the leader has stood in her way for two seconds. More... | |
Functions | |
| static void | Xian_RecruitVillageDjinni (void) |
| Talking to the Djinni: it joins the party (Mercury Djinni 2). | |
| static void | Xian_UpdateFrozenPuddleLayer (void) |
| Draws the frozen puddle under the leader while the leader stands on top of it. | |
| static void | Xian_RotateTrainingTree (void) |
| Rotates the training tree during the student's strike and Force animation. | |
| static void | Xian_SpawnTrainingParticles (void) |
| Emits particles beside the student every fourth frame. | |
| static s32 | Xian_UpdateCarrierTracking (struct FieldActor *actor, struct FieldActor *target, s32 distanceLimit, s32 forceTracking) |
| Tracks a nearby target only within the actor's current facing sector. | |
| static s32 | Xian_WatchWaterCarrierPath (union FieldObject *fieldObject) |
| const struct SceneEntrance * | Xian_GetEntrances (void) |
| const struct SceneRegion * | Xian_GetRegions (void) |
| const u32 * | Xian_GetExits (void) |
| const struct ScenePlacement * | Xian_GetPlacements (void) |
| Once Xian has heard Hsu is trapped, actor 15 turns to face the party. | |
| static void | Xian_AskAboutYoungWarriors (void) |
| Asks about the young warriors' way here. | |
| static void | Xian_TalkToWaterCarrier (void) |
| Talking to the water carrier. | |
| static void | Xian_UpdatePuddlePriority (void) |
| Frost on the spilled water, before it freezes: the puddle is drawn in front while the leader stands north of it. | |
| static void | Xian_FreezeSpilledWater (void) |
| Frost freezes the spilled water: the puddle turns to ice the leader can stand on, and there is nothing left to jump over. | |
| static void | Xian_TalkToKungFuStudent (void) |
| The kung fu student. | |
| static void | Xian_TalkToFeizhi (void) |
| Talking to Feizhi. | |
| static void | Xian_JumpOverSpilledWater (void) |
| Walking into the spilled water before it is frozen: the leader jumps two cells over it, where nothing stands in the way. | |
| static void | Xian_WalkThroughExit (s32 exitId) |
| Walks the leader through a doorway and leaves by its exit. | |
| static void | Xian_OpenDoorAndLeave (void) |
| Walking into one of Xian's doors: it opens and the party goes in. | |
| static void | Xian_StrikeTrainingTreeWithForce (void) |
| Force on the training tree: it jumps, and the student cries out. | |
| static void | Xian_MoveAsideForWaterCarrier (void) |
| The leader has stood in the water carrier's way for two seconds: both walk to the start of her route, the leader turns west, and she sets off again. | |
| const struct SceneEvent * | Xian_GetEvents (void) |
| s32 | Xian_Initialize (void) |
| Queues sound 169 and sets up the village as the story and this visit left it. | |
Variables | |
| s32 | gEffectScript0 [] |
| s32 | gEffectScript1 [] |
| s32 | gEffectScript2 [] |
| const s32 * | gEffectScripts [] |
| s32 | gXian_WaterCarrierRoute [] |
| The water carrier's round: from (280, 232) east to (424, 232), up to (424, 216) and back, pausing at each end. | |
| s32 | gXian_TrainingTreeJump [] |
| The struck tree jumps 32 pixels and drops back. | |
| s32 | gXian_TreeImpactScript [] |
| The effect at the tree's foot when the student strikes it: 18 frames. | |
| s32 | gXian_TrainingParticleScript [] |
| Each particle beside the leaping student, facing west: 16 frames. | |
| u16 | gXian_DoorSteps1 [] |
| The doors' opening frames, copied from map cells. | |
| u16 | gXian_DoorSteps2 [] |
| u16 | gXian_DoorSteps3 [] |
| u16 | gXian_DoorSteps4 [] |
| u16 | gXian_DoorSteps5 [] |
| struct SceneEntrance | gXian_Entrances [] |
| u32 | gXian_Exits [] |
| struct ScenePlacement | gXian_Placements [] |
| struct SceneEvent | gXian_Events [] |
Xian: the water carrier who spills her water, Frost on the spill, the kung fu student and his training tree, Feizhi, and a Mercury Djinni.
Definition in file xian.c.
| #define XIAN_WATER_CARRIER_UPDATE ((void *)Xian_WatchWaterCarrierPath) |
Definition at line 208 of file xian.c.
Referenced by Xian_Initialize(), Xian_MoveAsideForWaterCarrier(), and Xian_TalkToWaterCarrier().
| anonymous enum |
The actors, numbered from the placements (the first placed is actor 8).
| anonymous enum |
|
static |
Talking to the Djinni: it joins the party (Mercury Djinni 2).
Definition at line 75 of file xian.c.
Referenced by Xian_RecruitVillageDjinni().
|
static |
Draws the frozen puddle under the leader while the leader stands on top of it.
Definition at line 81 of file xian.c.
Referenced by Xian_FreezeSpilledWater(), Xian_Initialize(), and Xian_UpdateFrozenPuddleLayer().
|
static |
Rotates the training tree during the student's strike and Force animation.
Definition at line 91 of file xian.c.
Referenced by Xian_RotateTrainingTree(), Xian_StrikeTrainingTreeWithForce(), and Xian_TalkToKungFuStudent().
|
static |
Emits particles beside the student every fourth frame.
Definition at line 98 of file xian.c.
Referenced by Xian_SpawnTrainingParticles(), and Xian_TalkToKungFuStudent().
|
static |
Tracks a nearby target only within the actor's current facing sector.
Definition at line 122 of file xian.c.
Referenced by Xian_UpdateCarrierTracking(), and Xian_WatchWaterCarrierPath().
|
static |
Definition at line 170 of file xian.c.
Referenced by Xian_WatchWaterCarrierPath().
| const struct SceneEntrance * Xian_GetEntrances | ( | void | ) |
Definition at line 211 of file xian.c.
Referenced by Xian_GetEntrances().
| const struct SceneRegion * Xian_GetRegions | ( | void | ) |
Definition at line 213 of file xian.c.
Referenced by Xian_GetRegions().
| const u32 * Xian_GetExits | ( | void | ) |
Definition at line 215 of file xian.c.
Referenced by Xian_GetExits().
| const struct ScenePlacement * Xian_GetPlacements | ( | void | ) |
Once Xian has heard Hsu is trapped, actor 15 turns to face the party.
Definition at line 218 of file xian.c.
Referenced by Xian_GetPlacements().
|
static |
Asks about the young warriors' way here.
"Young warriors, very gallant! You came through Mogall Forest?"
Definition at line 226 of file xian.c.
Referenced by Xian_AskAboutYoungWarriors().
|
static |
Talking to the water carrier.
While she carries her water east of x = 320 the first time, she spills it: a puddle spreads at her feet, she cries "You made me spill my water!" and walks back west to fetch more, the leader stepping aside if he is in her way. Otherwise she only answers: "Do not speak to me. I might spill my water.", or once it is spilled, "Now I must get water again."
Definition at line 239 of file xian.c.
Referenced by Xian_TalkToWaterCarrier().
|
static |
Frost on the spilled water, before it freezes: the puddle is drawn in front while the leader stands north of it.
Definition at line 373 of file xian.c.
Referenced by Xian_UpdatePuddlePriority().
|
static |
Frost freezes the spilled water: the puddle turns to ice the leader can stand on, and there is nothing left to jump over.
Definition at line 381 of file xian.c.
Referenced by Xian_FreezeSpilledWater().
|
static |
The kung fu student.
The first time: "Hoo-whaaa... Hachaaa!", the leader steps back, and the student leaps at the tree, which jumps under his strike; "Heh heh heh..." Afterwards: "My kung fu is strong."
Definition at line 403 of file xian.c.
Referenced by Xian_TalkToKungFuStudent().
|
static |
Talking to Feizhi.
"You are the warriors from the school... Are you strong warriors?"
Definition at line 493 of file xian.c.
Referenced by Xian_TalkToFeizhi().
|
static |
Walking into the spilled water before it is frozen: the leader jumps two cells over it, where nothing stands in the way.
Definition at line 502 of file xian.c.
Referenced by Xian_JumpOverSpilledWater().
|
static |
Walks the leader through a doorway and leaves by its exit.
Definition at line 539 of file xian.c.
Referenced by Xian_OpenDoorAndLeave(), and Xian_WalkThroughExit().
|
static |
Walking into one of Xian's doors: it opens and the party goes in.
Definition at line 553 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
|
static |
Force on the training tree: it jumps, and the student cries out.
"Wha-Wha-What happened? The tree jumped on its own!", the next time "...It jumped again... I am too tired...".
Definition at line 598 of file xian.c.
Referenced by Xian_StrikeTrainingTreeWithForce().
|
static |
The leader has stood in the water carrier's way for two seconds: both walk to the start of her route, the leader turns west, and she sets off again.
Definition at line 629 of file xian.c.
Referenced by Xian_MoveAsideForWaterCarrier().
| const struct SceneEvent * Xian_GetEvents | ( | void | ) |
Definition at line 664 of file xian.c.
Referenced by Xian_GetEvents().
| s32 Xian_Initialize | ( | void | ) |
Queues sound 169 and sets up the village as the story and this visit left it.
Definition at line 668 of file xian.c.
Referenced by Xian_Initialize().
| s32 gEffectScript0[] |
| s32 gEffectScript1[] |
| s32 gEffectScript2[] |
| const s32* gEffectScripts[] |
| s32 gXian_WaterCarrierRoute[] |
The water carrier's round: from (280, 232) east to (424, 232), up to (424, 216) and back, pausing at each end.
Definition at line 756 of file xian.c.
Referenced by Xian_MoveAsideForWaterCarrier().
| s32 gXian_TrainingTreeJump[] |
The struck tree jumps 32 pixels and drops back.
Definition at line 787 of file xian.c.
Referenced by Xian_StrikeTrainingTreeWithForce(), and Xian_TalkToKungFuStudent().
| s32 gXian_TreeImpactScript[] |
| s32 gXian_TrainingParticleScript[] |
| u16 gXian_DoorSteps1[] |
The doors' opening frames, copied from map cells.
Definition at line 817 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
| u16 gXian_DoorSteps2[] |
Definition at line 823 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
| u16 gXian_DoorSteps3[] |
Definition at line 829 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
| u16 gXian_DoorSteps4[] |
Definition at line 835 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
| u16 gXian_DoorSteps5[] |
Definition at line 841 of file xian.c.
Referenced by Xian_OpenDoorAndLeave().
| struct SceneEntrance gXian_Entrances[] |
Definition at line 847 of file xian.c.
Referenced by Xian_GetEntrances().
| u32 gXian_Exits[] |
| struct ScenePlacement gXian_Placements[] |
Definition at line 868 of file xian.c.
Referenced by Xian_GetPlacements().
| struct SceneEvent gXian_Events[] |
Definition at line 908 of file xian.c.
Referenced by Xian_GetEvents().