The world map: the Djinn met on it, the passages between its regions, the map markers, and the actors of particular arrivals. More...
Go to the source code of this file.
Macros | |
| #define | ACTOR 8 |
| The one actor placed for entrance 75, which travels north to exit 110. | |
| #define | SITE 55 |
| #define | WORLD_MAP_QUEUE_TRANSITION_FRAME(buffer, offset) |
Enumerations | |
| enum | { CONTACT_LAST_ACTOR = 65 , CONTACT_TRIGGER_BASE = 100 , FLAG_CONTACT_BLOCKED = 0x104 } |
| enum | { ACTOR_VENUS_DJINNI = 8 , ACTOR_MARS_DJINNI = 9 , ACTOR_MERCURY_DJINNI = 10 } |
| The Djinn met on the world map. More... | |
| enum | { ACTOR_WAGON = 8 , ACTOR_BUNZA = 11 , ACTOR_HAMMET = 12 } |
| The actors placed at entrance 49: Bunza's wagon, Bunza and Hammet. More... | |
| enum | { TRANSITION_EFFECT_TYPE = 222 , TRANSITION_EFFECT_LEFT = 6064 , TRANSITION_EFFECT_TOP = 3148 , TRANSITION_EFFECT_WIDTH = 40 , TRANSITION_EFFECT_DEPTH = 30 } |
Functions | |
| static s32 | WorldMap_ApplyMapRotation (struct ScriptInterpreter *interpreter) |
| Aligns the actor's sprite rotation to the map. | |
| static void | WorldMap_BoardBunzasWagon (void) |
| Out of West Lunpa Cave by wagon: Bunza and Hammet nod to each other and climb aboard with the hero, and the wagon rolls off. | |
| static void | WorldMap_DepartWithTravelers (void) |
| Stages the travelers' departure and their transfer to the next scene. | |
| static void | WorldMap_ShakeTransferStartCamera (void) |
| Shakes the camera around the departure point. | |
| static void | WorldMap_ShakeTransferLandingCamera (void) |
| Shakes the camera around the landing point. | |
| static void | WorldMap_UpdateTransferredActorLanding (void) |
| Keeps the transferred actor above the guide and triggers its landing once. | |
| static void | WorldMap_TransferToExit102 (void) |
| Stages the next leg of travel and leaves through exit 102. | |
| static void | WorldMap_TransferToExit103 (void) |
| Stages the next leg of travel and leaves through exit 103. | |
| static void | WorldMap_TransferToExit104 (void) |
| Stages the next leg of travel and leaves through exit 104. | |
| static void | WorldMap_TransferToTolbiShipInteriors (void) |
| Stages the travelers' arrival in the ship interior. | |
| static void | WorldMap_TransferToExit106 (void) |
| Stages the next leg of travel and leaves through exit 106. | |
| static void | WorldMap_CompleteTransfer (void) |
| Finishes the journey and restores the leader's movement. | |
| static void | WorldMap_DisembarkCarriage (void) |
| Brings the carriage to a stop and lets Isaac disembark. | |
| static void | WorldMap_RunBlackOrbScene (void) |
| Introduces the Black Orb and prompts Isaac to use it on the ship. | |
| static void | WorldMap_ActivateSite138 (s32 actor) |
| Turns the exit at cell code 138 into a touch event that runs Event_StopLeavingShip, and places the Black Orb's giver (sprite 57) at pixel (6036, 3400). | |
| static void | Event_StopLeavingShip (void) |
| Walking away from the shipwreck with the Black Orb: the hero walks back. | |
| static void | WorldMap_ShowEndingScene (void) |
| Shows Jenna and Kraden's closing scene before returning to the title. | |
| static void | WorldMap_StartTransitionEffect (void) |
| Starts the sparkling travel transition and fades out to its destination. | |
| static void | WorldMap_UpdateTransitionEffect (void) |
| Scatters transition particles and jitters the camera. | |
| static void | WorldMap_MoveActorEightToExit (void) |
| Moves the arrival actor along the staged route to its exit. | |
| static s32 | WorldMap_ComputeOpposingRewardTotals (void) |
| Subtracts the opposing pair's rewards from the first pair's total. | |
| static s32 | WorldMap_GetSelectedReward (u32 selection) |
| Looks up the reward selected by the first set progress flag. | |
| static void | WorldMap_RunOpeningRise (void) |
| Stages the rising actor and its trailing puffs before the next arrival. | |
| static void | WorldMap_UpdateAirborneTravelTimer (void) |
| Rotates the traveler and counts down to the raised travel event. | |
| static void | WorldMap_PlayLighthouseTransition (s32 palette) |
| Animates the lighthouse transition frames, palette, and camera. | |
| static void | Event_MeetVine (void) |
| Walking near Vine, or talking to him: once a battle is nearly due, half the time Vine fights; otherwise the next step brings an ordinary battle. | |
| static void | Event_MeetCorona (void) |
| Walking near Corona, or talking to him: once a battle is nearly due, Corona fights. | |
| static void | Event_MeetHail (void) |
| Walking near Hail, or talking to him: once a battle is nearly due, Hail fights. | |
| static void | WorldMap_ReleaseSparkAfterDelay (union FieldObject *fieldObject) |
| Releases the spark after its initial timer step. | |
| static void | WorldMap_PulseOrbAndSpawnSparks (union FieldObject *fieldObject) |
| Pulses the orb's scale and emits short-lived sparks. | |
| static void | WorldMap_UpdateBobbingMarker (union FieldObject *fieldObject) |
| Cycles the marker's palette and orbits it around its map position. | |
| static s32 | WorldMap_InitializeFirstDjinni (struct ScriptInterpreter *interpreter) |
| Animates the first Djinni until it has met the party. | |
| const struct SceneEntrance * | WorldMap_GetEntrances (void) |
| const struct SceneRegion * | WorldMap_GetRegions (void) |
| const u32 * | WorldMap_GetExits (void) |
| static s32 | WorldMap_ApplyMapRotationAndMode (struct ScriptInterpreter *interpreter) |
| Aligns the actor to the map and selects its flagged animation mode. | |
| static s32 | WorldMap_ApplyMapRotationAndCollision (struct ScriptInterpreter *interpreter) |
| Enables the actor's collision and aligns its sprite to the map. | |
| static s32 | WorldMap_InitializeProgressMarker (struct ScriptInterpreter *interpreter) |
| Resets the map marker after the corresponding story progress. | |
| static s32 | WorldMap_BlinkActorSprite (struct ScriptInterpreter *interpreter) |
| Blinks a visible actor on alternating frames. | |
| const struct ScenePlacement * | WorldMap_GetPlacements (void) |
| static void | WorldMap_SelectExitByX (s32 trigger, s32 exitBefore, s32 exitAfter) |
| Chooses a passage exit from the side of the actor the leader approaches. | |
| static void | WorldMap_SelectExitByZ (s32 trigger, s32 exitBefore, s32 exitAfter) |
| Chooses a passage exit from the leader's north-south approach. | |
| static void | Event_PassThroughWestEastPassage (void) |
| Walking into a passage: the side the party comes from decides which exit takes it through to the other side. | |
| static void | Event_PassThroughFirstNorthSouthPassage (void) |
| As Event_PassThroughWestEastPassage, for a passage crossed north to south. | |
| static void | Event_PassThroughSecondNorthSouthPassage (void) |
| As Event_PassThroughFirstNorthSouthPassage. | |
| static void | Event_PassThroughThirdNorthSouthPassage (void) |
| As Event_PassThroughFirstNorthSouthPassage. | |
| static void | Event_PassThroughFourthNorthSouthPassage (void) |
| As Event_PassThroughFirstNorthSouthPassage. | |
| const struct SceneEvent * | WorldMap_GetEvents (void) |
| static void | WorldMap_UpdateLocationContacts (void) |
| Culls distant location sprites and detects the leader touching nearby ones. | |
| static void | Event_EnterTransferRoute (void) |
| Walking onto this spot: the first time the travel scene plays, later it is an ordinary entrance. | |
| static void | Event_LeaveEastward (void) |
| Walking east off this edge of the map, once allowed. | |
| s32 | WorldMap_Initialize (void) |
| Restores the map's state and runs the sequence its arrival entrance selects: 90 and 91 carry the party from a lighthouse's beam up to its aerie, 1 marks the first time the party leaves Vale, 33 the Black Orb, 49 Bunza's wagon, 64 the travellers' departure, 65 to 70 the Tolbi ship's crossing, 71 the carriage, 78 a discarded item, 72 and 73 the transitions, 75 the travelling actor, 80 the ending, and 74, 76 and 77 resume airborne travel. | |
| static void | WorldMap_MoveShakeCamera (s32 x, s32 z) |
| Moves to the next camera-shake point and holds it for four frames. | |
| static void | WorldMap_ShowDjinnTutorial (void) |
| Demonstrates setting a Djinni and placing it on standby. | |
| static void | Event_MeetFlint (void) |
| Walking up to Flint: he joins the party and shows how Djinn are set and put on standby; then comes the tutorial battle. | |
| static void | WorldMap_RestoreExitTrigger (void) |
| Makes cell code 138 an exit again, to exit 33. | |
| static void | Event_TalkAboutBlackOrb (void) |
| Talking to the one who gave the Black Orb (or reading his mind): he urges its use. | |
| static void | Event_SearchShipwreck (void) |
| Searching the shipwreck. | |
| static void | Event_UseBlackOrb (void) |
| Using the Black Orb on the shipwreck: nothing happens, the orb is taken back and the party is to press on to Babi Lighthouse. | |
| static void | WorldMap_SpawnActorEightPuff (void) |
| Spawns a puff behind the moving actor at staggered intervals. | |
| static void | WorldMap_StartAirborneTravel (s32 targetActor) |
| Moves the selected actor toward the travel marker and starts its timer. | |
| static void | Event_EnterAirborneTravel (void) |
| Walking onto the marker: the party is lifted up into the air. | |
| static void | Event_StartDousingTravelMarker (void) |
| Starting to cast Douse on the marker. | |
| static void | Event_DouseTravelMarker (void) |
| Douse on the marker: the party comes down and a battle begins. | |
| static void | Event_FinishAirborneTravel (void) |
| When the time in the air runs out: the party and the marker fly off, and the map reopens elsewhere. | |
| static void | WorldMap_UpdateTransitionBlend (void) |
| Refreshes the transition's blend registers on alternating frames. | |
| static void | WorldMap_JitterTransitionCamera (void) |
| Jitters the view around the selected actor during the transition. | |
| static void | WorldMap_ShowTransitionFrame (u8 *buffer, s32 offset, s32 frames) |
| Displays a transition frame before advancing its animation delay. | |
| static UNUSED void | WorldMap_UpdateBlinkingLinkedEffects (struct FieldActor *actor) |
| Blinks an unused actor and periodically creates its linked effects. | |
| static UNUSED void | WorldMap_UpdateCyclingLinkedEffects (struct FieldActor *actor) |
| Cycles an unused actor's palettes and periodically creates linked effects. | |
| static UNUSED void | WorldMap_CycleActorPalettes (struct FieldActor *actor) |
| Advances an unused actor's palette on odd frames. | |
The world map: the Djinn met on it, the passages between its regions, the map markers, and the actors of particular arrivals.
Definition in file world_map.c.
| #define ACTOR 8 |
The one actor placed for entrance 75, which travels north to exit 110.
Definition at line 86 of file world_map.c.
Referenced by WorldMap_MoveActorEightToExit().
| #define SITE 55 |
Definition at line 1670 of file world_map.c.
Referenced by Event_UseBlackOrb().
| #define WORLD_MAP_QUEUE_TRANSITION_FRAME | ( | buffer, | |
| offset ) |
Definition at line 1821 of file world_map.c.
Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_ShowTransitionFrame().
| anonymous enum |
| Enumerator | |
|---|---|
| CONTACT_LAST_ACTOR | |
| CONTACT_TRIGGER_BASE | |
| FLAG_CONTACT_BLOCKED | |
Definition at line 88 of file world_map.c.
| anonymous enum |
The Djinn met on the world map.
The Venus Djinni is Flint, bobbing on the map until the party meets him, and later Vine.
| Enumerator | |
|---|---|
| ACTOR_VENUS_DJINNI | |
| ACTOR_MARS_DJINNI | |
| ACTOR_MERCURY_DJINNI | |
Definition at line 96 of file world_map.c.
| anonymous enum |
The actors placed at entrance 49: Bunza's wagon, Bunza and Hammet.
| Enumerator | |
|---|---|
| ACTOR_WAGON | |
| ACTOR_BUNZA | |
| ACTOR_HAMMET | |
Definition at line 623 of file world_map.c.
| anonymous enum |
| Enumerator | |
|---|---|
| TRANSITION_EFFECT_TYPE | |
| TRANSITION_EFFECT_LEFT | |
| TRANSITION_EFFECT_TOP | |
| TRANSITION_EFFECT_WIDTH | |
| TRANSITION_EFFECT_DEPTH | |
Definition at line 1811 of file world_map.c.
|
static |
Aligns the actor's sprite rotation to the map.
Definition at line 260 of file world_map.c.
Referenced by WorldMap_ApplyMapRotation(), and WorldMap_ApplyMapRotationAndMode().
|
static |
Out of West Lunpa Cave by wagon: Bunza and Hammet nod to each other and climb aboard with the hero, and the wagon rolls off.
Called by WorldMap_Initialize at entrance 49, after the trade reopens (FLAG_LUNPA_TRADE_REOPENED) and until the wagon has left; sets FLAG_BUNZAS_WAGON_LEFT.
Definition at line 630 of file world_map.c.
Referenced by WorldMap_BoardBunzasWagon(), and WorldMap_Initialize().
|
static |
Stages the travelers' departure and their transfer to the next scene.
Called by WorldMap_Initialize at entrance 64 until FLAG_GUARDS_SUSPECT_KALAY is set; sets it.
Definition at line 695 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers(), and WorldMap_Initialize().
|
static |
Shakes the camera around the departure point.
Definition at line 967 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers(), and WorldMap_ShakeTransferStartCamera().
|
static |
Shakes the camera around the landing point.
Definition at line 983 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers(), and WorldMap_ShakeTransferLandingCamera().
|
static |
Keeps the transferred actor above the guide and triggers its landing once.
Run each frame while WorldMap_DepartWithTravelers carries an actor; sets FLAG_SCENE_TEMP_00 as it lands.
Definition at line 1001 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers(), and WorldMap_UpdateTransferredActorLanding().
|
static |
Stages the next leg of travel and leaves through exit 102.
Called by WorldMap_Initialize at entrance 65; sets FLAG_TOLBI_SHIP_ROWING.
Definition at line 1022 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit102().
|
static |
Stages the next leg of travel and leaves through exit 103.
Called by WorldMap_Initialize at entrance 66; sets FLAG_TOLBI_SHIP_ROWING.
Definition at line 1045 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit103().
|
static |
Stages the next leg of travel and leaves through exit 104.
Called by WorldMap_Initialize at entrance 67; sets FLAG_TOLBI_SHIP_ROWING.
Definition at line 1074 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit104().
|
static |
Stages the travelers' arrival in the ship interior.
Called by WorldMap_Initialize at entrance 68; sets FLAG_TOLBI_SHIP_ROWING.
Definition at line 1103 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_TransferToTolbiShipInteriors().
|
static |
Stages the next leg of travel and leaves through exit 106.
Called by WorldMap_Initialize at entrance 69; sets FLAG_TOLBI_SHIP_ROWING.
Definition at line 1132 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_TransferToExit106().
|
static |
Finishes the journey and restores the leader's movement.
Called by WorldMap_Initialize at entrance 70; sets FLAG_TOLBI_SHIP_REACHED_TOLBI and clears FLAG_TOLBI_SHIP_ROWING.
Definition at line 1166 of file world_map.c.
Referenced by WorldMap_CompleteTransfer(), and WorldMap_Initialize().
|
static |
Brings the carriage to a stop and lets Isaac disembark.
Called by WorldMap_Initialize at entrance 71.
Definition at line 1434 of file world_map.c.
Referenced by WorldMap_DisembarkCarriage(), and WorldMap_Initialize().
|
static |
Introduces the Black Orb and prompts Isaac to use it on the ship.
Called by WorldMap_Initialize at entrance 33 until the Black Orb is handed back and before the wounded soldiers are seen in Lalivero (FLAG_LALIVERO_WOUNDED_SOLDIERS_SEEN). Sets FLAG_SCENE_TEMP_34 and FLAG_SAW_SHIP_FROM_VENUS_LIGHTHOUSE, and turns the exit at cell code 138 into Event_StopLeavingShip.
Definition at line 1498 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_RunBlackOrbScene().
|
static |
Turns the exit at cell code 138 into a touch event that runs Event_StopLeavingShip, and places the Black Orb's giver (sprite 57) at pixel (6036, 3400).
Called by WorldMap_RunBlackOrbScene, and by WorldMap_Initialize when the party returns to entrance 33 with the orb still to use.
Definition at line 1582 of file world_map.c.
Referenced by WorldMap_ActivateSite138(), WorldMap_Initialize(), and WorldMap_RunBlackOrbScene().
|
static |
Walking away from the shipwreck with the Black Orb: the hero walks back.
"(Hero), where you going? I said to use the Orb on Babi's ship!" Reached by walking onto cell code 138 while WorldMap_ActivateSite138 has made it a touch event.
Definition at line 1641 of file world_map.c.
Referenced by Event_StopLeavingShip(), and WorldMap_ActivateSite138().
|
static |
Shows Jenna and Kraden's closing scene before returning to the title.
Called by WorldMap_Initialize at entrance 80.
Definition at line 1826 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_ShowEndingScene().
|
static |
Starts the sparkling travel transition and fades out to its destination.
Called by WorldMap_Initialize at entrance 73; sets FLAG_KEEP_MUSIC.
Definition at line 1942 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_StartTransitionEffect().
|
static |
Scatters transition particles and jitters the camera.
Definition at line 1975 of file world_map.c.
Referenced by WorldMap_StartTransitionEffect(), and WorldMap_UpdateTransitionEffect().
|
static |
Moves the arrival actor along the staged route to its exit.
Called by WorldMap_Initialize at entrance 75.
Definition at line 2015 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_MoveActorEightToExit().
|
static |
Subtracts the opposing pair's rewards from the first pair's total.
Definition at line 2054 of file world_map.c.
Referenced by WorldMap_ComputeOpposingRewardTotals(), and WorldMap_TransferToExit106().
Looks up the reward selected by the first set progress flag.
Definition at line 2065 of file world_map.c.
Referenced by WorldMap_ComputeOpposingRewardTotals(), and WorldMap_GetSelectedReward().
|
static |
Stages the rising actor and its trailing puffs before the next arrival.
Called by WorldMap_Initialize at entrance 72.
Definition at line 2129 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_RunOpeningRise().
|
static |
Rotates the traveler and counts down to the raised travel event.
Run each frame while the party is in the air; stores the frames left in the byte at FLAG_SCENE_TEMP_F8.
Definition at line 2167 of file world_map.c.
Referenced by WorldMap_Initialize(), WorldMap_StartAirborneTravel(), and WorldMap_UpdateAirborneTravelTimer().
|
static |
Animates the lighthouse transition frames, palette, and camera.
Called by WorldMap_Initialize at entrances 90 (Mercury Lighthouse) and 91 (Venus Lighthouse). Clears FLAG_KEEP_PARTY_POSITION and sets FLAG_SKIP_SCENE_CHANGE_SOUND.
Definition at line 2341 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_PlayLighthouseTransition().
|
static |
Walking near Vine, or talking to him: once a battle is nearly due, half the time Vine fights; otherwise the next step brings an ordinary battle.
Reached by talking to actor 8, or by walking onto cell code 92 until Vine is caught.
Definition at line 114 of file world_map.c.
Referenced by Event_MeetVine().
|
static |
Walking near Corona, or talking to him: once a battle is nearly due, Corona fights.
Reached by talking to actor 9, or by walking onto cell code 91 until Corona is caught.
Definition at line 132 of file world_map.c.
Referenced by Event_MeetCorona().
|
static |
Walking near Hail, or talking to him: once a battle is nearly due, Hail fights.
Reached by talking to actor 10, or by walking onto cell code 93 until Hail is caught.
Definition at line 147 of file world_map.c.
Referenced by Event_MeetHail().
|
static |
Releases the spark after its initial timer step.
Definition at line 159 of file world_map.c.
Referenced by WorldMap_PulseOrbAndSpawnSparks(), and WorldMap_ReleaseSparkAfterDelay().
|
static |
Pulses the orb's scale and emits short-lived sparks.
Definition at line 169 of file world_map.c.
Referenced by Event_UseBlackOrb(), and WorldMap_PulseOrbAndSpawnSparks().
|
static |
Cycles the marker's palette and orbits it around its map position.
Definition at line 201 of file world_map.c.
Referenced by WorldMap_InitializeFirstDjinni(), and WorldMap_UpdateBobbingMarker().
|
static |
Animates the first Djinni until it has met the party.
Definition at line 223 of file world_map.c.
Referenced by WorldMap_InitializeFirstDjinni().
| const struct SceneEntrance * WorldMap_GetEntrances | ( | void | ) |
Definition at line 240 of file world_map.c.
Referenced by WorldMap_GetEntrances().
| const struct SceneRegion * WorldMap_GetRegions | ( | void | ) |
Definition at line 244 of file world_map.c.
Referenced by WorldMap_GetRegions().
| const u32 * WorldMap_GetExits | ( | void | ) |
Definition at line 246 of file world_map.c.
Referenced by WorldMap_GetExits().
|
static |
Aligns the actor to the map and selects its flagged animation mode.
Definition at line 250 of file world_map.c.
Referenced by WorldMap_ApplyMapRotationAndMode().
|
static |
Enables the actor's collision and aligns its sprite to the map.
Definition at line 272 of file world_map.c.
Referenced by WorldMap_ApplyMapRotationAndCollision().
|
static |
Resets the map marker after the corresponding story progress.
Called by its object script as the travel marker is placed. Once the Tolbi ship lies at anchor off the island (FLAG_TOLBI_SHIP_AT_ISLAND), sets FLAG_SCENE_TEMP_F1 and puts the marker away at the map's origin.
Definition at line 287 of file world_map.c.
Referenced by WorldMap_InitializeProgressMarker().
|
static |
Blinks a visible actor on alternating frames.
Definition at line 301 of file world_map.c.
Referenced by WorldMap_BlinkActorSprite().
| const struct ScenePlacement * WorldMap_GetPlacements | ( | void | ) |
Definition at line 308 of file world_map.c.
Referenced by WorldMap_GetPlacements().
Chooses a passage exit from the side of the actor the leader approaches.
Definition at line 347 of file world_map.c.
Referenced by Event_PassThroughWestEastPassage(), and WorldMap_SelectExitByX().
Chooses a passage exit from the leader's north-south approach.
Definition at line 364 of file world_map.c.
Referenced by Event_PassThroughFirstNorthSouthPassage(), Event_PassThroughFourthNorthSouthPassage(), Event_PassThroughSecondNorthSouthPassage(), Event_PassThroughThirdNorthSouthPassage(), and WorldMap_SelectExitByZ().
|
static |
Walking into a passage: the side the party comes from decides which exit takes it through to the other side.
Reached by walking onto cell code 130.
Definition at line 383 of file world_map.c.
Referenced by Event_PassThroughWestEastPassage().
|
static |
As Event_PassThroughWestEastPassage, for a passage crossed north to south.
Reached by walking onto cell code 150.
Definition at line 389 of file world_map.c.
Referenced by Event_PassThroughFirstNorthSouthPassage().
|
static |
As Event_PassThroughFirstNorthSouthPassage.
Reached by walking onto cell code 116.
Definition at line 395 of file world_map.c.
Referenced by Event_PassThroughSecondNorthSouthPassage().
|
static |
As Event_PassThroughFirstNorthSouthPassage.
Reached by walking onto cell code 151.
Definition at line 401 of file world_map.c.
Referenced by Event_PassThroughThirdNorthSouthPassage().
|
static |
As Event_PassThroughFirstNorthSouthPassage.
Reached by walking onto cell code 125.
Definition at line 407 of file world_map.c.
Referenced by Event_PassThroughFourthNorthSouthPassage().
| const struct SceneEvent * WorldMap_GetEvents | ( | void | ) |
Definition at line 412 of file world_map.c.
Referenced by WorldMap_GetEvents().
|
static |
Culls distant location sprites and detects the leader touching nearby ones.
Run each frame on the world map; WorldMap_Initialize adds it.
Definition at line 416 of file world_map.c.
Referenced by WorldMap_Initialize(), and WorldMap_UpdateLocationContacts().
|
static |
Walking onto this spot: the first time the travel scene plays, later it is an ordinary entrance.
Reached by walking onto cell code 112.
Definition at line 476 of file world_map.c.
Referenced by Event_EnterTransferRoute().
|
static |
Walking east off this edge of the map, once allowed.
Reached by walking east into cell code 74 once the Tolbi ship lies at anchor off the island (FLAG_TOLBI_SHIP_AT_ISLAND).
Definition at line 488 of file world_map.c.
Referenced by Event_LeaveEastward().
| s32 WorldMap_Initialize | ( | void | ) |
Restores the map's state and runs the sequence its arrival entrance selects: 90 and 91 carry the party from a lighthouse's beam up to its aerie, 1 marks the first time the party leaves Vale, 33 the Black Orb, 49 Bunza's wagon, 64 the travellers' departure, 65 to 70 the Tolbi ship's crossing, 71 the carriage, 78 a discarded item, 72 and 73 the transitions, 75 the travelling actor, 80 the ending, and 74, 76 and 77 resume airborne travel.
The scene's initialization. Sets FLAG_RETREAT_BLOCKED on the map; entrance 99, a debug start, sets FLAG_NO_ENCOUNTERS, FLAG_DEBUG_STEPS_OFF and flag 0x161. Entrance 1 sets FLAG_PARTY_LEFT_VALE and flag 0x85c the first time. XXX: flags 0x161 and 0x85c are read by no code of this game; a reader would say what they record.
Definition at line 506 of file world_map.c.
Referenced by WorldMap_Initialize().
Moves to the next camera-shake point and holds it for four frames.
Definition at line 961 of file world_map.c.
Referenced by WorldMap_MoveShakeCamera(), WorldMap_ShakeTransferLandingCamera(), and WorldMap_ShakeTransferStartCamera().
|
static |
Demonstrates setting a Djinni and placing it on standby.
Called by Event_MeetFlint; sets and clears FLAG_DJINN_TUTORIAL_PART_A and _PART_B to choose the menu's two lessons.
Definition at line 1193 of file world_map.c.
Referenced by Event_MeetFlint(), and WorldMap_ShowDjinnTutorial().
|
static |
Walking up to Flint: he joins the party and shows how Djinn are set and put on standby; then comes the tutorial battle.
Reached by walking onto cell code 90 until Flint (Djinni 0) is caught. Sets FLAG_DJINN_TUTORIAL and its two part flags for each lesson, and clears them all after the battle.
Definition at line 1222 of file world_map.c.
Referenced by Event_MeetFlint().
|
static |
Makes cell code 138 an exit again, to exit 33.
Called by Event_UseBlackOrb once the orb is handed back.
Definition at line 1608 of file world_map.c.
Referenced by Event_UseBlackOrb(), and WorldMap_RestoreExitTrigger().
|
static |
Talking to the one who gave the Black Orb (or reading his mind): he urges its use.
"Now use it... on the ship." Reached by talking to actor 55, or by Mind Read on it.
Definition at line 1628 of file world_map.c.
Referenced by Event_TalkAboutBlackOrb().
|
static |
Searching the shipwreck.
"The wreckage of a ship scuttled off the coast." Reached by searching cell code 96.
Definition at line 1654 of file world_map.c.
Referenced by Event_SearchShipwreck().
|
static |
Using the Black Orb on the shipwreck: nothing happens, the orb is taken back and the party is to press on to Babi Lighthouse.
Reached by using the Black Orb on cell code 96 until it is handed back. Clears FLAG_SCENE_TEMP_34 and sets FLAG_BLACK_ORB_RETURNED.
Definition at line 1676 of file world_map.c.
Referenced by Event_UseBlackOrb().
|
static |
Spawns a puff behind the moving actor at staggered intervals.
Definition at line 2091 of file world_map.c.
Referenced by WorldMap_RunOpeningRise(), and WorldMap_SpawnActorEightPuff().
|
static |
Moves the selected actor toward the travel marker and starts its timer.
Called by Event_EnterAirborneTravel. Sets FLAG_SCENE_TEMP_F0 and gives the party 180 frames in the air (FLAG_SCENE_TEMP_F8).
Definition at line 2191 of file world_map.c.
Referenced by Event_EnterAirborneTravel(), and WorldMap_StartAirborneTravel().
|
static |
Walking onto the marker: the party is lifted up into the air.
Reached by walking onto cell code 95 until the airborne journey is over (FLAG_SCENE_TEMP_F1).
Definition at line 2228 of file world_map.c.
Referenced by Event_EnterAirborneTravel().
|
static |
Starting to cast Douse on the marker.
Reached by the first phase of Douse on the marker (actor 54) while the party is in the air (FLAG_SCENE_TEMP_F0).
Definition at line 2235 of file world_map.c.
Referenced by Event_StartDousingTravelMarker().
|
static |
Douse on the marker: the party comes down and a battle begins.
Reached by Douse on the marker (actor 54) while the party is in the air. Clears FLAG_SCENE_TEMP_F0, sets FLAG_SCENE_TEMP_F1 and empties the timer.
Definition at line 2242 of file world_map.c.
Referenced by Event_DouseTravelMarker().
|
static |
When the time in the air runs out: the party and the marker fly off, and the map reopens elsewhere.
Reached by the scene raising 99 as the timer runs out. Sets FLAG_ARRIVE_FALLING and sends the party to the world map's entrance 27.
Definition at line 2262 of file world_map.c.
Referenced by Event_FinishAirborneTravel().
|
static |
Refreshes the transition's blend registers on alternating frames.
Definition at line 2289 of file world_map.c.
Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_UpdateTransitionBlend().
|
static |
Jitters the view around the selected actor during the transition.
Definition at line 2300 of file world_map.c.
Referenced by WorldMap_JitterTransitionCamera(), and WorldMap_PlayLighthouseTransition().
Displays a transition frame before advancing its animation delay.
Definition at line 2331 of file world_map.c.
Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_ShowTransitionFrame().
|
static |
Blinks an unused actor and periodically creates its linked effects.
Definition at line 2407 of file world_map.c.
Referenced by WorldMap_UpdateBlinkingLinkedEffects().
|
static |
Cycles an unused actor's palettes and periodically creates linked effects.
Definition at line 2420 of file world_map.c.
Referenced by WorldMap_UpdateCyclingLinkedEffects().
|
static |
Advances an unused actor's palette on odd frames.
Definition at line 2430 of file world_map.c.
Referenced by WorldMap_CycleActorPalettes().
| s32 gWorldMapTriggerActor |
Definition at line 1430 of file world_map.c.
Referenced by Event_StopLeavingShip(), Event_TalkAboutBlackOrb(), Event_UseBlackOrb(), WorldMap_Initialize(), and WorldMap_RunBlackOrbScene().
| u16 gWorldMapBlend |
Definition at line 1819 of file world_map.c.
Referenced by WorldMap_PlayLighthouseTransition(), and WorldMap_UpdateTransitionBlend().
| s32 gTransferArrive10[] |
Definition at line 2441 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gTransferDepart10[] |
| s32 gTransferReturn10[] |
Definition at line 2470 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gTransferGather[] |
| s32 gTransferArrive11[] |
Definition at line 2487 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gTransferDepart11[] |
| s32 gTransferReturn11[] |
| s32 gTransferArrive12[] |
Definition at line 2523 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gTransferDepart12[] |
| s32 gTransferReturn12[] |
| s32 gTransferArrive13[] |
Definition at line 2559 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gTransferDepart13[] |
| s32 gTransferReturn13[] |
| s32 gTransferGuide14[] |
Definition at line 2595 of file world_map.c.
Referenced by WorldMap_DepartWithTravelers().
| s32 gBlackOrbLeaderScript[] |
| s32 gPresentGuide9[] |
Definition at line 2621 of file world_map.c.
Referenced by WorldMap_ShowEndingScene().
| s32 gPresentGuide8[] |
Definition at line 2641 of file world_map.c.
Referenced by WorldMap_ShowEndingScene().
| s32 gPresentGuide5[] |
Definition at line 2659 of file world_map.c.
Referenced by WorldMap_ShowEndingScene().
| s32 gTransitionSparkScript[] |
Definition at line 2679 of file world_map.c.
Referenced by WorldMap_UpdateTransitionEffect().
| s32 gTransferLeaderIdle[] |
Definition at line 2684 of file world_map.c.
Referenced by WorldMap_TransferToExit103(), WorldMap_TransferToExit104(), WorldMap_TransferToExit106(), and WorldMap_TransferToTolbiShipInteriors().
| s32 gTransferLeaderTurn[] |
Definition at line 2692 of file world_map.c.
Referenced by WorldMap_TransferToExit106().
| s32 gOpeningLeaderRise[] |
Definition at line 2700 of file world_map.c.
Referenced by WorldMap_RunOpeningRise().
| s32 gWorldMapPlacement0[] |
Definition at line 2712 of file world_map.c.
| struct SceneEntrance gWorldMapEntrances[] |
Definition at line 2717 of file world_map.c.
Referenced by WorldMap_GetEntrances().
| u32 gWorldMapExits[] |
Definition at line 2802 of file world_map.c.
Referenced by WorldMap_GetExits().
| s32 gWorldMapPlacement2[] |
Definition at line 2841 of file world_map.c.
| s32 gWorldMapPlacement1[] |
Definition at line 2846 of file world_map.c.
| s32 gWorldMapPlacement4[] |
Definition at line 2851 of file world_map.c.
| s32 gWorldMapPlacement3[] |
Definition at line 2856 of file world_map.c.
| struct ScenePlacement gWorldMapPlacements[] |
Definition at line 2863 of file world_map.c.
Referenced by WorldMap_ActivateSite138(), and WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements64[] |
Definition at line 2966 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements49[] |
Definition at line 2990 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements65[] |
Definition at line 3004 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements66[] |
Definition at line 3016 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements71[] |
Definition at line 3022 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements80[] |
Definition at line 3032 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements72[] |
Definition at line 3048 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct ScenePlacement gWorldMapPlacements73[] |
Definition at line 3054 of file world_map.c.
Referenced by WorldMap_GetPlacements().
| struct SceneEvent gWorldMapEvents[] |
Definition at line 3060 of file world_map.c.
Referenced by WorldMap_ActivateSite138(), WorldMap_GetEvents(), and WorldMap_RestoreExitTrigger().
| u32 gWorldMapRewards[] |
Definition at line 3130 of file world_map.c.
Referenced by WorldMap_GetSelectedReward().
| s32 gActorEightPuffScript[] |
Definition at line 3136 of file world_map.c.
Referenced by WorldMap_SpawnActorEightPuff().