|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG934: Cargo Tower, Amaterasu City, in the extra chapter. More...
#include "common.h"#include "field/stage.h"#include "common/update_tile_lift.inc.c"#include "common/update_stage.inc.c"#include "common/start_tween.inc.c"#include "common/update_tween.inc.c"Go to the source code of this file.
Macros | |
| #define | STAGE_TWEEN |
| stageFuncs is a StageFuncs (stage.h) | |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_08) |
| #define | STAGE_FILE 0x8FB |
| #define | STAGE_FILE_8 0x1AC |
Functions | |
| void | handleTileLift (Lift *task, s32 id) |
| Runs a script command of the lift's: moves it up or down. | |
| Lift * | createTileLift (s32 id) |
| Creates the lift (updateTileLift), raised when flag 0x1C3D is set; nothing in the game calls it. | |
| StageTask * | startStage (void *owner) |
| Creates the stage task (updateStage) of the given owner. | |
| void | setupStage (void) |
| Sets the stage up: its map and actors, 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 | |
| ActorImage | stageImages [] |
| u16 | actor1Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF } |
| u16 | actor1Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF } |
| u16 | actor1Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF } |
| u16 | actor1Talk1Actions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF } |
| u16 | actor1Talk2Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF } |
| FieldTalk | actor0Talks [] |
| FieldTalk | actor1Talks [] |
| FieldActorEntry | actor0 = { ((void *)0) , actor0Talks, 0x2D, 4, 271, 361, 5 } |
| FieldActorEntry | actor1 = { ((void *)0) , actor1Talks, 0x67, 5, 191, 400, 3 } |
| FieldActorEntry * | stageActors [] |
| StageTile | stageObjects [] |
| The tables and color setupStage gives FIELDSTG_state (FieldState) | |
| StageSlot | stageSlots [] |
| StageFuncs | stageFuncs = { setupStage, startTween, updateTween } |
| 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. | |
WSTAG934: Cargo Tower, Amaterasu City, in the extra chapter.
The European version's: in its extra chapter (STORY_EXTRA), mode 639 starts it instead of WSTAG261.
Definition in file wstag934.c.
| #define STAGE_TWEEN |
stageFuncs is a StageFuncs (stage.h)
Definition at line 8 of file wstag934.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_08) |
Definition at line 58 of file wstag934.c.
| #define STAGE_FILE 0x8FB |
Definition at line 59 of file wstag934.c.
| #define STAGE_FILE_8 0x1AC |
Definition at line 60 of file wstag934.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 16 of file wstag934.c.
Creates the lift (updateTileLift), raised when flag 0x1C3D is set; nothing in the game calls it.
< 0x1C 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 32 of file wstag934.c.
| StageTask * startStage | ( | void * | owner | ) |
Creates the stage task (updateStage) of the given owner.
Definition at line 46 of file wstag934.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map and actors, 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 67 of file wstag934.c.
| s16 tileLiftShake[] |
Defined below, after the code that uses them.
Definition at line 90 of file wstag934.c.
| const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0 } |
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 55 of file wstag934.c.
Referenced by setupStage().
| ActorImage stageImages[] |
Definition at line 100 of file wstag934.c.
Referenced by setupStage().
| u16 actor1Talk0Conditions[] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF } |
Definition at line 110 of file wstag934.c.
| u16 actor1Talk0Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF } |
Definition at line 111 of file wstag934.c.
| u16 actor1Talk1Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF } |
Definition at line 112 of file wstag934.c.
| u16 actor1Talk1Actions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, (0x7000 | ( 0x13 )) , 1, 0xFFFF } |
Definition at line 113 of file wstag934.c.
| u16 actor1Talk2Conditions[] = { (( 0 ) << 8 | ( 0 )) , 1, (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF } |
Definition at line 114 of file wstag934.c.
| FieldTalk actor0Talks[] |
Definition at line 115 of file wstag934.c.
| FieldTalk actor1Talks[] |
Definition at line 119 of file wstag934.c.
| FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x2D, 4, 271, 361, 5 } |
Definition at line 125 of file wstag934.c.
| FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x67, 5, 191, 400, 3 } |
Definition at line 126 of file wstag934.c.
| FieldActorEntry* stageActors[] |
Definition at line 127 of file wstag934.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 132 of file wstag934.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 148 of file wstag934.c.
Referenced by setupStage().
| StageFuncs stageFuncs | ( | void | ) | = { setupStage, startTween, updateTween } |
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 155 of file wstag934.c.
Referenced by startStage().