|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG261: Cargo Tower, Amaterasu City. More...
#include "common.h"#include "field/stage.h"#include "common/update_tile_lift.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_03) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1) |
| #define | STAGE_FILE 0x527 |
Functions | |
| void | handleCommand827 (Lift *task, s32 id) |
| Runs a script command of the lift's: moves it up or down. | |
| Lift * | createCommand827 (s32 id) |
| Creates the lift (updateTileLift), raised when flag 0x1C3D is set. | |
| void | updateStage (StageTask *task, void **children) |
| The stage task: creates the object of map object 0x33B. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors and events, playing the ambience ENV_0204. | |
Variables | |
| s16 | tileLiftShake [] |
| Defined below, after the code that uses them. | |
| const CVECTOR | stageColor = { 0x80, 0x80, 0x80, 0 } |
| the color the setup copies to FIELDSTG_state.spriteColor | |
| s16 | script1321 [] |
| s16 | script1326 [] |
| ActorImage | stageImages [] |
| u16 | actor0Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
| u16 | actor0Talk0Actions [] = { (0x9000 | ( 0x62 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
| u16 | actor0Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
| u16 | actor0Talk1Actions [] = { (0x9000 | ( 0x63 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
| u16 | actor1Talk0Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
| u16 | actor1Talk0Actions [] = { (0x9000 | ( 0x62 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
| u16 | actor1Talk1Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
| u16 | actor1Talk1Actions [] = { (0x9000 | ( 0x63 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
| FieldTalk | actor0Talks [] |
| FieldTalk | actor1Talks [] |
| u16 | actor0Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
| u16 | actor1Conditions [] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, actor0Talks, 0x3F, 4, 176, 392, 1 } |
| FieldActorEntry | actor1 = { actor1Conditions, actor1Talks, 0x3F, 4, 176, 265, 1 } |
| 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 [] |
WSTAG261: Cargo Tower, Amaterasu City.
On the Amaterasu server; its Asuka server twin is WSTAG260.
Definition in file wstag261.c.
| #define STAGE_CHILDREN_SIZE 4 |
Definition at line 56 of file wstag261.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_03) |
Definition at line 67 of file wstag261.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_200 - 1) |
Definition at line 68 of file wstag261.c.
| #define STAGE_FILE 0x527 |
Definition at line 69 of file wstag261.c.
Runs a script command of the lift's: moves it up or down.
< the lift's script commands: up the screen,
< and back down to the objects' place on the map
Definition at line 14 of file wstag261.c.
Creates the lift (updateTileLift), raised when flag 0x1C3D is set.
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 30 of file wstag261.c.
Referenced by updateStage().
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
The stage task: creates the object of map object 0x33B.
Definition at line 42 of file wstag261.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors and events, playing the ambience ENV_0204.
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_0204: the Cargo Tower
< ENV_0204: the Cargo Tower
< a cell's value: a direction (3 bits) and a StageSlot (5)
Definition at line 72 of file wstag261.c.
| s16 tileLiftShake |
Defined below, after the code that uses them.
Definition at line 169 of file wstag261.c.
Referenced by updateTileLift().
| const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0 } |
the color the setup copies to FIELDSTG_state.spriteColor
Definition at line 60 of file wstag261.c.
Referenced by setupStage().
| s16 script1321[] |
Definition at line 93 of file wstag261.c.
| s16 script1326[] |
Definition at line 131 of file wstag261.c.
| ActorImage stageImages[] |
Definition at line 173 of file wstag261.c.
Referenced by setupStage().
| u16 actor0Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
Definition at line 182 of file wstag261.c.
| u16 actor0Talk0Actions[] = { (0x9000 | ( 0x62 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
Definition at line 183 of file wstag261.c.
| u16 actor0Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
Definition at line 184 of file wstag261.c.
| u16 actor0Talk1Actions[] = { (0x9000 | ( 0x63 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
Definition at line 185 of file wstag261.c.
| u16 actor1Talk0Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
Definition at line 186 of file wstag261.c.
| u16 actor1Talk0Actions[] = { (0x9000 | ( 0x62 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
Definition at line 187 of file wstag261.c.
| u16 actor1Talk1Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
Definition at line 188 of file wstag261.c.
| u16 actor1Talk1Actions[] = { (0x9000 | ( 0x63 )) , 1, (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
Definition at line 189 of file wstag261.c.
| FieldTalk actor0Talks[] |
Definition at line 190 of file wstag261.c.
| FieldTalk actor1Talks[] |
Definition at line 195 of file wstag261.c.
| u16 actor0Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 0, 0xFFFF } |
Definition at line 200 of file wstag261.c.
| u16 actor1Conditions[] = { (( 0x1C ) << 8 | ( 0x3D )) , 1, 0xFFFF } |
Definition at line 201 of file wstag261.c.
| FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x3F, 4, 176, 392, 1 } |
Definition at line 202 of file wstag261.c.
| FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x3F, 4, 176, 265, 1 } |
Definition at line 203 of file wstag261.c.
| FieldActorEntry* stageActors[] |
Definition at line 204 of file wstag261.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 209 of file wstag261.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 222 of file wstag261.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 229 of file wstag261.c.
| FieldEvent stageEvents[] |
Definition at line 232 of file wstag261.c.
Referenced by setupStage().