Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
wstag790.c File Reference

WSTAG790: Chamber Room, Kusanagi City (the Real World). More...

#include "common.h"
#include "field/stage.h"
#include "common/start_stage.inc.c"
Include dependency graph for wstag790.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0xC
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)
 
#define STAGE_FILE   0x1C9
 
#define STAGE_ARCHIVE   0x331
 

Functions

void updateTileGroup (StageTileGroup *task)
 Once the substate is set to 1, moves the map objects of animations 2, 3, 4 and 7 and shows those of 5 to 9 in turn.
 
void handleCommand809 (StageTask *task, s32 id)
 Starts the task (substate 1) when map object 0x32C is triggered.
 
void * createCommand809 (s32 arg)
 Creates the task of updateTileGroup with id 0x329.
 
void updateFrameTask (StageFrameTask *task)
 Once the substate is set to 1, animates the frame of the map object of animation 1 for 20 frames, then plays a sound.
 
void handleCommand808 (StageTask *task, s32 id)
 Starts the task (substate 1) when map object 0x32E is triggered.
 
void * createCommand808 (s32 arg)
 Command 808 of the event scripts: the map object of event 4 in the Chamber Room, whose frame plays for 20 frames, then a sound (updateFrameTask)
 
void updateStage (StageTask *task, void **children)
 Creates two objects and the event object of story progress 1.
 
void setupStage (void)
 Sets the stage up: its map, actors and events, playing the ambience ENV_0024.
 

Variables

s16 script4 []
 
ActorImage stageImages []
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 1, 4, 0, 0, 0 }
 
FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0xB, 5, 0, 0, 0 }
 
FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0xC, 6, 0, 0, 0 }
 
FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0xD, 7, 0, 0, 0 }
 
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 []
 

Detailed Description

WSTAG790: Chamber Room, Kusanagi City (the Real World).

Where Junior logs into the game; Guardromon saves.

Definition in file wstag790.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0xC

Definition at line 173 of file wstag790.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_07)

Definition at line 182 of file wstag790.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_700 - 1)

Definition at line 183 of file wstag790.c.

◆ STAGE_FILE

#define STAGE_FILE   0x1C9

Definition at line 184 of file wstag790.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x331

Definition at line 185 of file wstag790.c.

Function Documentation

◆ updateTileGroup()

void updateTileGroup ( StageTileGroup *  task)

Once the substate is set to 1, moves the map objects of animations 2, 3, 4 and 7 and shows those of 5 to 9 in turn.

Definition at line 13 of file wstag790.c.

Referenced by createCommand809().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleCommand809()

void handleCommand809 ( StageTask *  task,
s32  id 
)

Starts the task (substate 1) when map object 0x32C is triggered.

Definition at line 91 of file wstag790.c.

◆ createCommand809()

void * createCommand809 ( s32  arg)

Creates the task of updateTileGroup with id 0x329.

Definition at line 98 of file wstag790.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateFrameTask()

void updateFrameTask ( StageFrameTask *  task)

Once the substate is set to 1, animates the frame of the map object of animation 1 for 20 frames, then plays a sound.

Definition at line 103 of file wstag790.c.

Referenced by createCommand808().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ handleCommand808()

void handleCommand808 ( StageTask *  task,
s32  id 
)

Starts the task (substate 1) when map object 0x32E is triggered.

Definition at line 140 of file wstag790.c.

◆ createCommand808()

void * createCommand808 ( s32  arg)

Command 808 of the event scripts: the map object of event 4 in the Chamber Room, whose frame plays for 20 frames, then a sound (updateFrameTask)

Definition at line 150 of file wstag790.c.

Referenced by updateStage().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateStage()

void updateStage ( StageTask *  task,
void **  children 
)

Creates two objects and the event object of story progress 1.

Definition at line 155 of file wstag790.c.

Here is the call graph for this function:

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors and events, playing the ambience ENV_0024.

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_0024: the Chamber Rooms

< ENV_0024: the Chamber Rooms

Definition at line 188 of file wstag790.c.

Variable Documentation

◆ script4

s16 script4[]

Definition at line 205 of file wstag790.c.

◆ stageImages

ActorImage stageImages[]
Initial value:
= {
{ 0x200, 0x100, 0x21C, 0x1A6, 0x70, 0xA6, 0x230, 0x1FE },
{ 0x200, 0x100, 0x200, 0x100, 0, 0, 0x220, 0x1FE },
{ 0x200, 0x100, 0x216, 0x138, 0x58, 0x38, 0x200, 0x1FD },
{ 0x200, 0x100, 0x208, 0x1BC, 0x20, 0xBC, 0x210, 0x1FD },
{ 0x200, 0x100, 0x210, 0x1BC, 0x40, 0xBC, 0x220, 0x1FD },
{ 0x200, 0x100, 0x200, 0x1BC, 0, 0xBC, 0x230, 0x1FD },
{ 0x140, 0x100, 0x166, 0x1D0, 0x98, 0xD0, 0x170, 0x1FB },
{ 0x180, 0x100, 0x1B6, 0x130, 0x1D8, 0x30, 0x170, 0x1FA },
{ 0x180, 0x100, 0x1B4, 0x1A3, 0x1D0, 0xA3, 0x170, 0x1F9 },
{ 0x180, 0x100, 0x1A6, 0x130, 0x198, 0x30, 0x170, 0x1F8 },
}

Definition at line 314 of file wstag790.c.

Referenced by setupStage().

◆ actor1Conditions

u16 actor1Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF }

Definition at line 326 of file wstag790.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x6000 | ( STORY_ACCOUNT_REGISTERED )) , 1, 0xFFFF }

Definition at line 327 of file wstag790.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 1, 4, 0, 0, 0 }

Definition at line 328 of file wstag790.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0xB, 5, 0, 0, 0 }

Definition at line 329 of file wstag790.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0xC, 6, 0, 0, 0 }

Definition at line 330 of file wstag790.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0xD, 7, 0, 0, 0 }

Definition at line 331 of file wstag790.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag790.c:328
FieldActorEntry actor2
Definition wstag790.c:330
FieldActorEntry actor1
Definition wstag790.c:329
FieldActorEntry actor3
Definition wstag790.c:331

Definition at line 332 of file wstag790.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 4, 0x40, 2, 0xC, 0, 0, 0, 0, 0, 479, 117, 0, 0 },
{ 1, 7, 0x40, 2, 0x39, 0, 0, 0, 0, 0, 407, 126, 0, 0 },
{ 0, 8, 0x40, 2, 0x34, 2, 0, 0xF, 5, 0, 407, 138, 0, 0 },
{ 0, 9, 0x40, 2, 0x38, 2, 0xE, 0xF, 4, 0xE, 407, 138, 0, 0 },
{ 1, 3, 0x90, 2, 0xB, 0, 0, 0, 0, 0, 415, 79, 0, 0 },
{ 1, 2, 0x40, 2, 0xA, 0, 0, 0, 0, 0, 387, 76, 0, 0 },
{ 0, 5, 0x40, 2, 0x33, 2, 0, 0xF, 4, 0, 428, 172, 0, 0 },
{ 0, 6, 0x40, 2, 0x37, 2, 0xE, 0xF, 4, 0xE, 428, 172, 0, 0 },
{ 1, 1, 0x40, 2, 4, 0, 0, 0, 0, 0, 418, 191, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 3, 2, 0, 254, 146, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 3, 2, 0, 442, 241, 0, 0 },
{ 1, 0, 0x40, 2, 0x32, 2, 0, 3, 2, 0, 538, 288, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 0, 0, 7, 0xA, 0, 361, 205, 0, 0 },
{ 1, 0, 0x40, 0xA, 0x35, 0, 0, 0, 0, 0, 150, 0, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 398, 279, 296, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 430, 247, 264, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 397, 263, 281, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 429, 232, 247, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 },
}

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 339 of file wstag790.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors and events, playing the ambience ENV_0024.
Definition wstag790.c:188

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 360 of file wstag790.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 4, script4, ( ( 0x14B - 1) << 16 | ( 3 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script4[]
Definition wstag790.c:205

Definition at line 363 of file wstag790.c.

Referenced by setupStage().