|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG785: Online Center, Kusanagi City (the Real World). More...
#include "common.h"#include "field/stage.h"#include "common/step_animation.inc.c"#include "common/start_stage.inc.c"Go to the source code of this file.
Macros | |
| #define | MARKS 0x1C7 |
| The file of the marks, which the versions number differently. | |
| #define | STAGE_CHILDREN_SIZE 0x8 |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_07) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1) |
| #define | STAGE_FILE 0x1C7 |
| #define | STAGE_ARCHIVE 0x3E2 |
Functions | |
| void | updateTileSet (StageTileSet *task) |
| Plays the animations of map objects 4/3 then 2 (with 1 looping); starts at 2 when done is set. | |
| StageTileSet * | createTileSet (void) |
| Creates the task of updateTileSet already done. | |
| void * | createCommand835 (s32 arg) |
| Command 835 of the event scripts: the map objects of event 1, where the Account Clerk sets up the accounts (updateTileSet) | |
| void | drawActorMark (StageActorMark *task, s32 frame) |
| Draws frame FRAME of file MARKS over the character. | |
| void | updateActorMark (StageActorMark *task) |
| Shows the mark over the character: opens (0x32-0x34), stays by kind, closes (0x36-0x37) | |
| void * | createCommand807 (s32 arg) |
| Command 807 of the event scripts: the mark over a character in event 1 (updateActorMark) | |
| void | handleCommand807 (void *arg, s32 id, s32 key) |
| Map objects 0x328/0x329 set the kind and the character (actor of key KEY), 0x32A ends it. | |
| void | updateStage (StageTask *task, void **children) |
| Creates the event object of story progress 0 or 1 (with an object for 1) | |
| void | endEvent1 (void) |
| After event 1, with Junior, Teddy, Account Clerk and Ivy: moves the story on to STORY_ACCOUNT_REGISTERED. | |
| void | setupStage (void) |
| Sets the stage up: its map, actors and events, playing ON_CNBGM. | |
Variables | |
| AnimFrame | updateTileSetFrames1 [] |
| Defined below, after the code that uses them. | |
| AnimFrame | updateTileSetFrames2 [] |
| AnimFrame | updateTileSetFrames3 [] |
| AnimFrame | updateTileSetFrames0 [] |
| const CVECTOR | stageColor = { 0x80, 0x80, 0x80, 0x00 } |
| the color the setup copies to FIELDSTG_state.spriteColor | |
| s16 | script1 [] |
| s16 | script3 [] |
| ActorImage | stageImages [] |
| u16 | actor0Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor1Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| u16 | actor2Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor3Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| u16 | actor4Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor5Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| u16 | actor6Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| u16 | actor7Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor8Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor9Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| u16 | actor10Conditions [] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
| u16 | actor11Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
| FieldActorEntry | actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
| FieldActorEntry | actor2 = { actor2Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 } |
| FieldActorEntry | actor3 = { actor3Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 } |
| FieldActorEntry | actor4 = { actor4Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 } |
| FieldActorEntry | actor5 = { actor5Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 } |
| FieldActorEntry | actor6 = { actor6Conditions, ((void *)0) , 0xD, 7, 0, 0, 1 } |
| FieldActorEntry | actor7 = { actor7Conditions, ((void *)0) , 0xD, 7, 0, 0, 1 } |
| FieldActorEntry | actor8 = { actor8Conditions, ((void *)0) , 0xE, 8, 0, 0, 1 } |
| FieldActorEntry | actor9 = { actor9Conditions, ((void *)0) , 0xE, 8, 0, 0, 1 } |
| FieldActorEntry | actor10 = { actor10Conditions, ((void *)0) , 0xF, 9, 0, 0, 1 } |
| FieldActorEntry | actor11 = { actor11Conditions, ((void *)0) , 0xF, 9, 0, 0, 1 } |
| FieldActorEntry * | stageActors [] |
| StageTile | stageObjects [] |
| The tables and color setupStage gives FIELDSTG_state (FieldState) | |
| 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 [] |
WSTAG785: Online Center, Kusanagi City (the Real World).
MAGAMI's Online Center, where Junior registers before the Chamber Room.
Definition in file wstag785.c.
| #define MARKS 0x1C7 |
The file of the marks, which the versions number differently.
Definition at line 18 of file wstag785.c.
| #define STAGE_CHILDREN_SIZE 0x8 |
Definition at line 271 of file wstag785.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_07) |
Definition at line 286 of file wstag785.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1) |
Definition at line 287 of file wstag785.c.
| #define STAGE_FILE 0x1C7 |
Definition at line 288 of file wstag785.c.
| #define STAGE_ARCHIVE 0x3E2 |
Definition at line 289 of file wstag785.c.
| void updateTileSet | ( | StageTileSet * | task | ) |
Plays the animations of map objects 4/3 then 2 (with 1 looping); starts at 2 when done is set.
Definition at line 24 of file wstag785.c.
Referenced by createCommand835(), and createTileSet().
| StageTileSet * createTileSet | ( | void | ) |
Creates the task of updateTileSet already done.
Definition at line 107 of file wstag785.c.
Referenced by updateStage().
| void * createCommand835 | ( | s32 | arg | ) |
Command 835 of the event scripts: the map objects of event 1, where the Account Clerk sets up the accounts (updateTileSet)
Definition at line 118 of file wstag785.c.
| void drawActorMark | ( | StageActorMark * | task, |
| s32 | frame | ||
| ) |
Draws frame FRAME of file MARKS over the character.
< the map, its objects and characters, and the menus
Definition at line 123 of file wstag785.c.
Referenced by updateActorMark().
| void updateActorMark | ( | StageActorMark * | task | ) |
Shows the mark over the character: opens (0x32-0x34), stays by kind, closes (0x36-0x37)
Definition at line 136 of file wstag785.c.
Referenced by createCommand807().
| void * createCommand807 | ( | s32 | arg | ) |
Command 807 of the event scripts: the mark over a character in event 1 (updateActorMark)
Definition at line 220 of file wstag785.c.
Map objects 0x328/0x329 set the kind and the character (actor of key KEY), 0x32A ends it.
< every character (FIELDSTG_createActor)
Definition at line 225 of file wstag785.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the event object of story progress 0 or 1 (with an object for 1)
Definition at line 248 of file wstag785.c.
| void endEvent1 | ( | void | ) |
After event 1, with Junior, Teddy, Account Clerk and Ivy: moves the story on to STORY_ACCOUNT_REGISTERED.
Definition at line 275 of file wstag785.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors and events, playing ON_CNBGM.
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.
< ON_CNBGM: MAGAMI's Online Center
< ON_CNBGM: MAGAMI's Online Center
Definition at line 292 of file wstag785.c.
| AnimFrame updateTileSetFrames1 |
Defined below, after the code that uses them.
Definition at line 649 of file wstag785.c.
Referenced by updateTileSet().
| AnimFrame updateTileSetFrames2 |
Definition at line 655 of file wstag785.c.
Referenced by updateTileSet().
| AnimFrame updateTileSetFrames3 |
Definition at line 661 of file wstag785.c.
Referenced by updateTileSet().
| AnimFrame updateTileSetFrames0 |
Definition at line 665 of file wstag785.c.
Referenced by updateTileSet().
| 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 279 of file wstag785.c.
Referenced by setupStage().
| s16 script1[] |
Definition at line 310 of file wstag785.c.
| s16 script3[] |
Definition at line 608 of file wstag785.c.
| ActorImage stageImages[] |
Definition at line 669 of file wstag785.c.
Referenced by setupStage().
| u16 actor0Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 683 of file wstag785.c.
| u16 actor1Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 684 of file wstag785.c.
| u16 actor2Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 685 of file wstag785.c.
| u16 actor3Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 686 of file wstag785.c.
| u16 actor4Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 687 of file wstag785.c.
| u16 actor5Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 688 of file wstag785.c.
| u16 actor6Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 689 of file wstag785.c.
| u16 actor7Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 690 of file wstag785.c.
| u16 actor8Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 691 of file wstag785.c.
| u16 actor9Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 692 of file wstag785.c.
| u16 actor10Conditions[] = { (0x6000 | ( STORY_START )) , 1, 0xFFFF } |
Definition at line 693 of file wstag785.c.
| u16 actor11Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF } |
Definition at line 694 of file wstag785.c.
| FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 695 of file wstag785.c.
| FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 1, 4, 0, 0, 1 } |
Definition at line 696 of file wstag785.c.
| FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 } |
Definition at line 697 of file wstag785.c.
| FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0xB, 5, 0, 0, 1 } |
Definition at line 698 of file wstag785.c.
| FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 } |
Definition at line 699 of file wstag785.c.
| FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0xC, 6, 0, 0, 1 } |
Definition at line 700 of file wstag785.c.
| FieldActorEntry actor6 = { actor6Conditions, ((void *)0) , 0xD, 7, 0, 0, 1 } |
Definition at line 701 of file wstag785.c.
| FieldActorEntry actor7 = { actor7Conditions, ((void *)0) , 0xD, 7, 0, 0, 1 } |
Definition at line 702 of file wstag785.c.
| FieldActorEntry actor8 = { actor8Conditions, ((void *)0) , 0xE, 8, 0, 0, 1 } |
Definition at line 703 of file wstag785.c.
| FieldActorEntry actor9 = { actor9Conditions, ((void *)0) , 0xE, 8, 0, 0, 1 } |
Definition at line 704 of file wstag785.c.
| FieldActorEntry actor10 = { actor10Conditions, ((void *)0) , 0xF, 9, 0, 0, 1 } |
Definition at line 705 of file wstag785.c.
| FieldActorEntry actor11 = { actor11Conditions, ((void *)0) , 0xF, 9, 0, 0, 1 } |
Definition at line 706 of file wstag785.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 722 of file wstag785.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 750 of file wstag785.c.
| FieldEvent stageEvents[] |
Definition at line 753 of file wstag785.c.
Referenced by setupStage().