|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG455: Bios Swamp, South Sector. More...
#include "common.h"#include "field/stage.h"#include "common/step_animation_once.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 0x391 |
Functions | |
| void | updateTileTask (StageTileTask *task) |
| Plays the animation of the map object with animation 1 once with a sound when the substate is 0, then kills itself. | |
| void * | createCommand828 (s32 arg) |
| Command 828 of the event scripts: the wall the TNT Chip blows a hole in, in event 360 (updateTileTask) | |
| void | updateStage (StageTask *task, void **children) |
| Creates the event object of story progress 0xE. | |
| void | endEvent360 (void) |
| After event 360, with the player: sets flag 0x4007 (which decides whether actor 0 appears) | |
| void | setupStage (void) |
| Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0012. | |
Variables | |
| const CVECTOR | stageColor = { 0x80, 0x80, 0x80, 0x00 } |
| the color the setup copies to FIELDSTG_state.spriteColor | |
| AnimFrame | updateTileTaskFrames [] |
| Defined below, after the code that uses them. | |
| s16 | script360 [] |
| AreaBattle | area0Battle0 = { 54, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle1 = { 54, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle2 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle3 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle4 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle5 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle6 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area0Battle7 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| BattleList | area0Battles |
| AreaBattle | area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| BattleList | area1Battles |
| AreaBattle | area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| BattleList | area2Battles |
| AreaBattle | area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle3 = { 329, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle4 = { 328, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle6 = { 147, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| AreaBattle | area3Battle7 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
| BattleList | area3Battles |
| FieldBattles | stageBattles [] |
| ActorImage | stageImages [] |
| u16 | actor1Talk0Conditions [] = { (( 0x1A ) << 8 | ( 2 )) , 0, 0xFFFF } |
| u16 | actor1Talk1Conditions [] = { (( 0x1A ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x10 )), 0, 0xFFFF } |
| u16 | actor1Talk1Actions [] = { (( 0x1A ) << 8 | ( 0x2A )) , 1, 0xFFFF } |
| u16 | actor1Talk2Conditions [] = { (( 0x1A ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x10 )), 1, 0xFFFF } |
| FieldTalk | actor1Talks [] |
| u16 | actor0Conditions [] |
| FieldActorEntry | actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor1 = { ((void *)0) , actor1Talks, 0x3F, 5, 1051, 195, 5 } |
| FieldActorEntry * | stageActors [] |
| StageTile | stageObjects [] |
| The tables and color setupStage gives FIELDSTG_state (FieldState) | |
| StageSlot | stageSlots [] |
| void(* | stageFuncs [])(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. | |
| FieldEvent | stageEvents [] |
WSTAG455: Bios Swamp, South Sector.
Definition in file wstag455.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 80 of file wstag455.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 93 of file wstag455.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1) |
Definition at line 94 of file wstag455.c.
| #define STAGE_FILE 0x391 |
Definition at line 95 of file wstag455.c.
| void updateTileTask | ( | StageTileTask * | task | ) |
Plays the animation of the map object with animation 1 once with a sound when the substate is 0, then kills itself.
Definition at line 15 of file wstag455.c.
Referenced by createCommand828().
| void * createCommand828 | ( | s32 | arg | ) |
Command 828 of the event scripts: the wall the TNT Chip blows a hole in, in event 360 (updateTileTask)
Definition at line 59 of file wstag455.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the event object of story progress 0xE.
Definition at line 64 of file wstag455.c.
| void endEvent360 | ( | void | ) |
After event 360, with the player: sets flag 0x4007 (which decides whether actor 0 appears)
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 84 of file wstag455.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors, battles and events, playing the ambience ENV_0012.
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.
< ENV_0012: the South Sector's swamps and Bulk Bridge
< ENV_0012: the South Sector's swamps and Bulk Bridge
< a cell's value: a direction (3 bits) and a StageSlot (5)
< a cell's value: its battle area (FieldBattles), or 0
Definition at line 98 of file wstag455.c.
| const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 } |
the color the setup copies to FIELDSTG_state.spriteColor
the color the setup copies to FIELDSTG_state.spriteColor
It starts the stage, before its jump tables: in wstag924.c GCC would align them to 8 bytes after it, so it is a file of its own, linked first
Definition at line 7 of file wstag455.c.
Referenced by setupStage().
| AnimFrame updateTileTaskFrames[] |
Defined below, after the code that uses them.
Definition at line 159 of file wstag455.c.
Referenced by updateTileTask().
| s16 script360[] |
Definition at line 120 of file wstag455.c.
| AreaBattle area0Battle0 = { 54, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 166 of file wstag455.c.
| AreaBattle area0Battle1 = { 54, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 167 of file wstag455.c.
| AreaBattle area0Battle2 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 168 of file wstag455.c.
| AreaBattle area0Battle3 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 169 of file wstag455.c.
| AreaBattle area0Battle4 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 170 of file wstag455.c.
| AreaBattle area0Battle5 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 171 of file wstag455.c.
| AreaBattle area0Battle6 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 172 of file wstag455.c.
| AreaBattle area0Battle7 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 173 of file wstag455.c.
| BattleList area0Battles |
Definition at line 174 of file wstag455.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 179 of file wstag455.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 180 of file wstag455.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 181 of file wstag455.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 182 of file wstag455.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 183 of file wstag455.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 184 of file wstag455.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 185 of file wstag455.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 186 of file wstag455.c.
| BattleList area1Battles |
Definition at line 187 of file wstag455.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 192 of file wstag455.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 193 of file wstag455.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 194 of file wstag455.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 195 of file wstag455.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 196 of file wstag455.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 197 of file wstag455.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 198 of file wstag455.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 199 of file wstag455.c.
| BattleList area2Battles |
Definition at line 200 of file wstag455.c.
| AreaBattle area3Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 205 of file wstag455.c.
| AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 206 of file wstag455.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 207 of file wstag455.c.
| AreaBattle area3Battle3 = { 329, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 208 of file wstag455.c.
| AreaBattle area3Battle4 = { 328, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 209 of file wstag455.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 210 of file wstag455.c.
| AreaBattle area3Battle6 = { 147, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 211 of file wstag455.c.
| AreaBattle area3Battle7 = { 66, 8, (0x60000000 | ( 2 ) << 18 | ( 0 )) } |
Definition at line 212 of file wstag455.c.
| BattleList area3Battles |
Definition at line 213 of file wstag455.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 221 of file wstag455.c.
Referenced by setupStage().
| u16 actor1Talk0Conditions[] = { (( 0x1A ) << 8 | ( 2 )) , 0, 0xFFFF } |
Definition at line 231 of file wstag455.c.
| u16 actor1Talk1Conditions[] = { (( 0x1A ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x10 )), 0, 0xFFFF } |
Definition at line 232 of file wstag455.c.
| u16 actor1Talk1Actions[] = { (( 0x1A ) << 8 | ( 0x2A )) , 1, 0xFFFF } |
Definition at line 233 of file wstag455.c.
| u16 actor1Talk2Conditions[] = { (( 0x1A ) << 8 | ( 2 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x10 )), 1, 0xFFFF } |
Definition at line 234 of file wstag455.c.
| FieldTalk actor1Talks[] |
Definition at line 235 of file wstag455.c.
| u16 actor0Conditions[] |
Definition at line 241 of file wstag455.c.
| FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 247 of file wstag455.c.
| FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x3F, 5, 1051, 195, 5 } |
Definition at line 248 of file wstag455.c.
| FieldActorEntry* stageActors[] |
Definition at line 249 of file wstag455.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 254 of file wstag455.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 392 of file wstag455.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 397 of file wstag455.c.
| FieldEvent stageEvents[] |
Definition at line 400 of file wstag455.c.
Referenced by setupStage().