|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG460: Reliability Spot, South Sector. More...
#include "common.h"#include "field/stage.h"#include "common/step_tile_animation.inc.c"#include "common/step_tile_animation2.inc.c"#include "common/create_tile_duo.inc.c"#include "common/create_tile_duo_task.inc.c"#include "common/step_tile_animation3.inc.c"#include "common/get_angle.inc.c"#include "common/start_stage.inc.c"Go to the source code of this file.
Macros | |
| #define | STAGE_CHILDREN_SIZE 4 |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1) |
| #define | STAGE_FILE 0x363 |
| #define | STAGE_ARCHIVE 0x45F |
Functions | |
| void * | createTileSoloTask (void) |
| Creates the color-cycling map object by the Digi-Egg of Sincerity (updateTileSolo), the one with animation 10. | |
| void * | createTileDuoTask (void) |
| Creates the updateTileDuo task. | |
| void | fadeOutWanderer () |
| void | fadeOutTileSolo (StageTileSolo *task, s32 command, s32 arg) |
| Makes the StageTileSolo hide in 20 frames; command and arg, a script command handler's (ScriptCommand.handle), are 0 from the stage and unread. | |
| void | fadeOutTileDuo (StageTileDuo *task, s32 command, s32 arg) |
| Makes the StageTileDuo hide in 150 frames (command and arg as fadeOutTileSolo's) | |
| StageWanderer * | createWandererTask (s32 tileAnim, s32 speedIndex, s32 start) |
| Creates a wanderer of the map object with the given animation. | |
| void | updateCommand830 (StageTask *task, void **children) |
| Creates the tiles and the seven wanderers; in TASK_DONE makes them all hide and goes back to TASK_RUN. | |
| void | handleCommand830 (Task *task, s32 id) |
| Sets the task to TASK_DONE when the id is 0x34C. | |
| void * | createCommand830 (s32 id) |
| Creates the task of updateCommand830 with the given id. | |
| void | updateTileSolo (StageTileSolo *task) |
| Shows the map object with animation 10 (animated) while mode isn't 0, and hides it by a one-shot animation wait frames after mode 2. | |
| void * | createTileSolo (s32 arg) |
| Creates the color-cycling map object by the Digi-Egg of Sincerity (updateTileSolo) with an id; nothing in the game calls it. | |
| void | updateTileDuo (StageTileDuo *task) |
| Cycles the colors of the map objects with animations 8 and 9 by the Digi- Egg of Sincerity while mode isn't 0, and ends wait frames after mode 2. | |
| s32 | isFarFromHome (StageWanderer *task, s32 dist) |
| Whether the wanderer is more than dist from home (in x + y) | |
| void | moveWanderer (StageWanderer *task) |
| Moves the wanderer, turning it every period frames. | |
| void | updateWanderer (StageWanderer *task) |
| Wanders; when done, plays the animation of updateWandererFrames1 once and hides. | |
| void | fadeOutWanderer (StageWanderer *task) |
| Makes the wanderer wait 60 frames, then slow down and finish. | |
| void * | createWanderer (s32 arg) |
| Creates one of the map objects that wander by the Digi-Egg of Sincerity (updateWanderer) with an id; nothing in the game calls it. | |
| void | updateStage (StageTask *task, void **children) |
| Creates the task of updateCommand830 (id 0x33E) before progress 0xF. | |
| void | endEvent370 (void) |
| After event 370, with the player: moves the story on to STORY_DE_SINCERITY and gives the player the DE Sincerity. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors and events, playing BGM_0014. | |
WSTAG460: Reliability Spot, South Sector.
Where the Qing Long Chief welcomes the player.
Definition in file wstag460.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 429 of file wstag460.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 447 of file wstag460.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1) |
Definition at line 448 of file wstag460.c.
| #define STAGE_FILE 0x363 |
Definition at line 449 of file wstag460.c.
| #define STAGE_ARCHIVE 0x45F |
Definition at line 450 of file wstag460.c.
| void * createTileSoloTask | ( | void | ) |
Creates the color-cycling map object by the Digi-Egg of Sincerity (updateTileSolo), the one with animation 10.
Definition at line 161 of file wstag460.c.
Referenced by updateCommand830().
| void * createTileDuoTask | ( | void | ) |
Creates the updateTileDuo task.
Definition at line 2 of file create_tile_duo_task.inc.c.
Referenced by updateCommand830().
| void fadeOutWanderer | ( | ) |
| void fadeOutTileSolo | ( | StageTileSolo * | task, |
| s32 | command, | ||
| s32 | arg | ||
| ) |
Makes the StageTileSolo hide in 20 frames; command and arg, a script command handler's (ScriptCommand.handle), are 0 from the stage and unread.
Definition at line 142 of file wstag460.c.
Referenced by updateCommand830().
| void fadeOutTileDuo | ( | StageTileDuo * | task, |
| s32 | command, | ||
| s32 | arg | ||
| ) |
Makes the StageTileDuo hide in 150 frames (command and arg as fadeOutTileSolo's)
Definition at line 250 of file wstag460.c.
| StageWanderer * createWandererTask | ( | s32 | tileAnim, |
| s32 | speedIndex, | ||
| s32 | start | ||
| ) |
Creates a wanderer of the map object with the given animation.
Definition at line 403 of file wstag460.c.
Referenced by updateCommand830().
| void updateCommand830 | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the tiles and the seven wanderers; in TASK_DONE makes them all hide and goes back to TASK_RUN.
Definition at line 26 of file wstag460.c.
Referenced by createCommand830().
Sets the task to TASK_DONE when the id is 0x34C.
Definition at line 61 of file wstag460.c.
| void * createCommand830 | ( | s32 | id | ) |
Creates the task of updateCommand830 with the given id.
Definition at line 68 of file wstag460.c.
Referenced by updateStage().
| void updateTileSolo | ( | StageTileSolo * | task | ) |
Shows the map object with animation 10 (animated) while mode isn't 0, and hides it by a one-shot animation wait frames after mode 2.
Definition at line 75 of file wstag460.c.
Referenced by createTileSolo(), and createTileSoloTask().
| void * createTileSolo | ( | s32 | arg | ) |
Creates the color-cycling map object by the Digi-Egg of Sincerity (updateTileSolo) with an id; nothing in the game calls it.
Definition at line 153 of file wstag460.c.
| void updateTileDuo | ( | StageTileDuo * | task | ) |
Cycles the colors of the map objects with animations 8 and 9 by the Digi- Egg of Sincerity while mode isn't 0, and ends wait frames after mode 2.
Definition at line 171 of file wstag460.c.
Referenced by createTileDuo(), and createTileDuoTask().
| s32 isFarFromHome | ( | StageWanderer * | task, |
| s32 | dist | ||
| ) |
Whether the wanderer is more than dist from home (in x + y)
Definition at line 264 of file wstag460.c.
Referenced by moveWanderer().
| void moveWanderer | ( | StageWanderer * | task | ) |
Moves the wanderer, turning it every period frames.
Definition at line 280 of file wstag460.c.
Referenced by updateWanderer().
| void updateWanderer | ( | StageWanderer * | task | ) |
Wanders; when done, plays the animation of updateWandererFrames1 once and hides.
Definition at line 303 of file wstag460.c.
Referenced by createWanderer(), and createWandererTask().
| void fadeOutWanderer | ( | StageWanderer * | task | ) |
Makes the wanderer wait 60 frames, then slow down and finish.
Definition at line 387 of file wstag460.c.
| void * createWanderer | ( | s32 | arg | ) |
Creates one of the map objects that wander by the Digi-Egg of Sincerity (updateWanderer) with an id; nothing in the game calls it.
Definition at line 398 of file wstag460.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the task of updateCommand830 (id 0x33E) before progress 0xF.
Definition at line 413 of file wstag460.c.
| void endEvent370 | ( | void | ) |
After event 370, with the player: moves the story on to STORY_DE_SINCERITY and gives the player the DE Sincerity.
Definition at line 436 of file wstag460.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors and events, playing BGM_0014.
Sets the stage up: its map, actors, battles and events, playing KANRIBGM; BGM_0029 instead except at STORY_PRESIDENT_ARRESTED once flag 0x1A0A is set.
< BGM_0014: the Reliability Spot
< BGM_0014: the Reliability Spot
< a cell's value: a direction (3 bits) and a StageSlot (5)
Definition at line 453 of file wstag460.c.
| AnimFrame updateWandererFrames0 |
Defined below, after the code that uses them.
Definition at line 551 of file wstag460.c.
Referenced by updateWanderer().
| AnimFrame updateWandererFrames1 |
Definition at line 556 of file wstag460.c.
Referenced by updateWanderer().
| u16 wandererSpeeds |
Definition at line 561 of file wstag460.c.
Referenced by updateWanderer().
| u16 angleTangents |
Definition at line 564 of file wstag460.c.
Referenced by getAngle().
| AnimFrame * updateTileDuoFrames0 |
| AnimFrame * updateTileDuoFrames1 |
| u8 tileDuoObjectFrames |
Definition at line 547 of file wstag460.c.
Referenced by updateTileDuo().
| AnimFrame updateTileSoloFrames0 |
Definition at line 505 of file wstag460.c.
Referenced by updateTileSolo().
| AnimFrame updateTileSoloFrames1 |
Definition at line 511 of file wstag460.c.
Referenced by updateTileSolo().
| s16 script370[] |
Definition at line 472 of file wstag460.c.
| AnimFrame updateTileDuoFrames0_0[] |
Definition at line 517 of file wstag460.c.
| AnimFrame updateTileDuoFrames1_0[] |
Definition at line 523 of file wstag460.c.
| AnimFrame updateTileDuoFrames0_1[] |
Definition at line 529 of file wstag460.c.
| AnimFrame updateTileDuoFrames1_1[] |
Definition at line 535 of file wstag460.c.
| ActorImage stageImages[] |
Definition at line 571 of file wstag460.c.
Referenced by setupStage().
| FieldTalk actor0Talks[] |
Definition at line 581 of file wstag460.c.
| u16 actor1Conditions[] = { (0x6000 | ( STORY_TEDDY_FOUND )) , 1, 0xFFFF } |
Definition at line 585 of file wstag460.c.
| FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x3F, 4, 250, 109, 1 } |
Definition at line 586 of file wstag460.c.
| FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x82, 5, 96, 367, 7 } |
Definition at line 587 of file wstag460.c.
| FieldActorEntry* stageActors[] |
Definition at line 588 of file wstag460.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 593 of file wstag460.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 611 of file wstag460.c.
Referenced by setupStage().
| void(* stageFuncs[])(void) | ( | void | ) |
The stage's functions (common/start_stage.inc.c calls the first): a StageFuncs in the stages with a tween, which define STAGE_TWEEN before they include this file, and in the others an array of just setupStage.
Definition at line 617 of file wstag460.c.
| FieldEvent stageEvents[] |
Definition at line 620 of file wstag460.c.
Referenced by setupStage().