The mast of the ship across the Karagol Sea, where the lookout announces the course, the approaching monsters and land, and an Anchor Charm can be found. More...
Go to the source code of this file.
Functions | |
| static void | TolbiShipMast_SetupHiddenLeaderLookout (void) |
| Frames the lookout with the leader moved out of view, then announces course. | |
| static void | TolbiShipMast_SetupVisibleLeaderLookout (void) |
| Keeps the leader visible for the course announcement. | |
| static void | TolbiShipMast_AnnounceClearCourse (void) |
| The lookout scans both sides, announces a clear course and leaves by exit 10. | |
| static void | TolbiShipMast_RunAvastScene (void) |
| Stages four approaching actors and the lookout's reaction. "Avast!". | |
| static void | TolbiShipMast_ShowMonsters (void) |
| Repeats actor 9's approach before the lookout reports monsters. | |
| static void | TolbiShipMast_InitializeDriftingActor (s32 actorId) |
| Initializes a drifting actor, retaining the random draws' original order. | |
| static void | TolbiShipMast_RunLandingSequence (void) |
| Moves the drifting group aside, then stages the two landing actors. | |
| static void | TolbiShipMast_AnnounceLand (void) |
| Walks the seven actors away, then the lookout announces land. | |
| static void | TolbiShipMast_UpdateSway (void) |
| Adds horizontal and vertical sway to the camera origin each frame. | |
| static s32 | TolbiShipMast_GetRowingBalance (void) |
| How evenly the chosen passengers row: the values of those at the west seats (the first and third filled) less those at the east seats. | |
| static s32 | TolbiShipMast_GetSeatRowValue (u32 seat) |
| The rowing value of the passenger chosen for a seat, or 0 while it is empty. | |
| static s32 | TolbiShipMast_FollowCameraAndRotate (struct ScriptInterpreter *interpreter) |
| Keeps the effect actor relative to the saved camera origin and rotates it. | |
| static s32 | TolbiShipMast_RandomizeLookoutFacing (struct ScriptInterpreter *interpreter) |
| A random sample of 6 or 9 turns the lookout to either side of north. | |
| static void | TolbiShipMast_GrowActorScale (union FieldObject *fieldObject) |
| Grows both axes by the same amount until the actor reaches full scale. | |
| static s32 | TolbiShipMast_SwayActor (struct ScriptInterpreter *interpreter) |
| Randomly reverses horizontal drift and vertical bobbing at their limits. | |
| static s32 | TolbiShipMast_ShrinkAndStopActor (struct ScriptInterpreter *interpreter) |
| Shrinks both axes; once small enough, clears the actor's position and speed. | |
| const struct SceneEntrance * | TolbiShipMast_GetEntrances (void) |
| Returns the entrances from the ship's deck and scripted sequences. | |
| const struct SceneRegion * | TolbiShipMast_GetRegions (void) |
| Returns the ladder's three-dimensional activation region. | |
| const u32 * | TolbiShipMast_GetExits (void) |
| Returns exits to the deck and the continuing ship scenes. | |
| const struct ScenePlacement * | TolbiShipMast_GetPlacements (void) |
| Returns the lookout's initial placement table. | |
| const struct SceneEvent * | TolbiShipMast_GetEvents (void) |
| Returns the ladder, lookout dialogue and Anchor Charm search events. | |
| static void | TolbiShipMast_ClimbDownLadder (void) |
| Touching the ladder starts the descent. | |
| static void | TolbiShipMast_FindAnchorCharm (void) |
| Gives the Anchor Charm once either discovery flag permits the search. | |
| s32 | TolbiShipMast_Initialize (void) |
| Starts the ship sway when allowed, then runs this entrance's mast sequence. | |
| static void | TolbiShipMast_StopDriftingActor (struct FieldActor *actor) |
| Clears the movement left by a drifting script before its staged approach. | |
| static void | TolbiShipMast_InitializeDriftingGroup (void) |
| Gives each of the seven approaching actors its own random drift and bob. | |
| static void | TolbiShipMast_PrepareGroupDeparture (void) |
| Stops the drifting actions and gives the group its departure walking speed. | |
The mast of the ship across the Karagol Sea, where the lookout announces the course, the approaching monsters and land, and an Anchor Charm can be found.
Definition in file tolbi_ship_mast.c.
|
static |
Frames the lookout with the leader moved out of view, then announces course.
Definition at line 270 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_SetupHiddenLeaderLookout().
|
static |
Keeps the leader visible for the course announcement.
Definition at line 284 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_SetupVisibleLeaderLookout().
|
static |
The lookout scans both sides, announces a clear course and leaves by exit 10.
Definition at line 301 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceClearCourse(), TolbiShipMast_SetupHiddenLeaderLookout(), and TolbiShipMast_SetupVisibleLeaderLookout().
|
static |
Stages four approaching actors and the lookout's reaction. "Avast!".
Definition at line 323 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_RunAvastScene().
|
static |
Repeats actor 9's approach before the lookout reports monsters.
Definition at line 446 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_ShowMonsters().
|
static |
Initializes a drifting actor, retaining the random draws' original order.
Definition at line 533 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_InitializeDriftingActor(), TolbiShipMast_InitializeDriftingGroup(), and TolbiShipMast_ShowMonsters().
|
static |
Moves the drifting group aside, then stages the two landing actors.
Definition at line 556 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_RunLandingSequence().
|
static |
Walks the seven actors away, then the lookout announces land.
Definition at line 657 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), and TolbiShipMast_Initialize().
|
static |
Adds horizontal and vertical sway to the camera origin each frame.
Definition at line 706 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().
|
static |
How evenly the chosen passengers row: the values of those at the west seats (the first and third filled) less those at the east seats.
Definition at line 724 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), and TolbiShipMast_GetRowingBalance().
The rowing value of the passenger chosen for a seat, or 0 while it is empty.
Definition at line 736 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetRowingBalance(), and TolbiShipMast_GetSeatRowValue().
|
static |
Keeps the effect actor relative to the saved camera origin and rotates it.
Definition at line 61 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_FollowCameraAndRotate().
|
static |
A random sample of 6 or 9 turns the lookout to either side of north.
Definition at line 77 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_RandomizeLookoutFacing().
|
static |
Grows both axes by the same amount until the actor reaches full scale.
Definition at line 95 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GrowActorScale(), and TolbiShipMast_RunAvastScene().
|
static |
Randomly reverses horizontal drift and vertical bobbing at their limits.
Definition at line 104 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_SwayActor().
|
static |
Shrinks both axes; once small enough, clears the actor's position and speed.
Definition at line 149 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_ShrinkAndStopActor().
| const struct SceneEntrance * TolbiShipMast_GetEntrances | ( | void | ) |
Returns the entrances from the ship's deck and scripted sequences.
Definition at line 169 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetEntrances().
| const struct SceneRegion * TolbiShipMast_GetRegions | ( | void | ) |
Returns the ladder's three-dimensional activation region.
Definition at line 174 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetRegions().
| const u32 * TolbiShipMast_GetExits | ( | void | ) |
Returns exits to the deck and the continuing ship scenes.
Definition at line 179 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetExits().
| const struct ScenePlacement * TolbiShipMast_GetPlacements | ( | void | ) |
Returns the lookout's initial placement table.
Definition at line 182 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetPlacements().
| const struct SceneEvent * TolbiShipMast_GetEvents | ( | void | ) |
Returns the ladder, lookout dialogue and Anchor Charm search events.
Definition at line 187 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetEvents().
|
static |
Touching the ladder starts the descent.
Definition at line 192 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_ClimbDownLadder().
|
static |
Gives the Anchor Charm once either discovery flag permits the search.
Definition at line 195 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_FindAnchorCharm().
| s32 TolbiShipMast_Initialize | ( | void | ) |
Starts the ship sway when allowed, then runs this entrance's mast sequence.
Definition at line 207 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize().
|
inlinestatic |
Clears the movement left by a drifting script before its staged approach.
Definition at line 408 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_ShowMonsters(), and TolbiShipMast_StopDriftingActor().
|
inlinestatic |
Gives each of the seven approaching actors its own random drift and bob.
Definition at line 417 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_InitializeDriftingGroup(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().
|
inlinestatic |
Stops the drifting actions and gives the group its departure walking speed.
Definition at line 428 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_PrepareGroupDeparture(), and TolbiShipMast_RunLandingSequence().
| s32 gTolbiShipMast_DriftY |
Definition at line 51 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_UpdateSway().
| s32 gTolbiShipMast_DriftX |
Definition at line 52 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_UpdateSway().
| s32 gTolbiShipMast_SwayY |
Definition at line 53 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().
| s32 gTolbiShipMast_SwayUnused |
Definition at line 54 of file tolbi_ship_mast.c.
| s32 gTolbiShipMast_CameraCenter[2] |
Definition at line 55 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_FollowCameraAndRotate(), and TolbiShipMast_RunAvastScene().
| s32 gTolbiShipMast_CameraOrigin[2] |
Definition at line 56 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_FollowCameraAndRotate(), and TolbiShipMast_RunAvastScene().
| s32 gTolbiShipMast_SwayX |
Definition at line 57 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_Initialize(), and TolbiShipMast_UpdateSway().
| s32 gTolbiShipMast_FollowCameraActions[] |
Definition at line 761 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_RunAvastScene().
| s32 gTolbiShipMast_LookoutActions[] |
Definition at line 778 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_RunAvastScene(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().
| s32 gTolbiShipMast_DriftActions[] |
Definition at line 782 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_InitializeDriftingActor().
| s32 gTolbiShipMast_WaveActions[] |
Definition at line 786 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_RunLandingSequence().
| s32 gTolbiShipMast_EnsembleWalk9[] |
Definition at line 804 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| s32 gTolbiShipMast_EnsembleWalk10[] |
Definition at line 812 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| s32 gTolbiShipMast_EnsembleWalk11[] |
Definition at line 820 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| s32 gTolbiShipMast_EnsembleWalk12[] |
Definition at line 828 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| s32 gTolbiShipMast_EnsembleWalk13[] |
Definition at line 836 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| s32 gTolbiShipMast_EnsembleWalk14[] |
Definition at line 844 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| u32 gTolbiShipMast_EnsembleWalk15[] |
Definition at line 853 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand().
| struct SceneEntrance gTolbiShipMast_Entrances[] |
Definition at line 864 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetEntrances().
| struct SceneRegion gTolbiShipMast_Regions[] |
Definition at line 875 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetRegions().
| u32 gTolbiShipMast_Exits[] |
Definition at line 880 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetExits().
| struct ScenePlacement gTolbiShipMast_Placements[] |
Definition at line 892 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetPlacements().
| struct ScenePlacement gTolbiShipMast_StagingObjects[] |
Definition at line 898 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_RunAvastScene().
| struct ScenePlacement gTolbiShipMast_EnsembleObjects[] |
Definition at line 910 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_AnnounceLand(), TolbiShipMast_RunLandingSequence(), and TolbiShipMast_ShowMonsters().
| struct ScenePlacement gTolbiShipMast_LandingObjects[] |
Definition at line 930 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_RunLandingSequence().
| struct SceneEvent gTolbiShipMast_Events[] |
Definition at line 938 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetEvents().
| u32 gTolbiShipMast_PassengerRowValues[] |
Each passenger's rowing value, in the order of their actors in the hold from 8.
Definition at line 952 of file tolbi_ship_mast.c.
Referenced by TolbiShipMast_GetSeatRowValue().