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

WSTAG927: Digimon Arena, Amaterasu City, in the extra chapter. More...

Include dependency graph for wstag927.c:

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   0x8
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8ED
 
#define STAGE_FILE_8   0x346
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void updateStage (StageTask *task, void **children)
 Creates an object and the event object of flag 0x100C.
 
void endEvent1608 (void)
 After event 1608, with Kurt: starts the stage's event battle 0 and keeps it from playing again.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing KANRIBGM.
 

Variables

AnimFrame updateTileAnimsFrames0 []
 Defined below, after the code that uses them.
 
AnimFrame updateTileAnimsFrames1 []
 
s16 script1608 []
 Defined below, after the tables that use them.
 
s16 script1610 []
 
ActorImage stageImages []
 
FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 0x68, 4, 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 []
 
AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 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 = { 262, 47, (0x60000000 | ( 0x25 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 

Detailed Description

WSTAG927: Digimon Arena, Amaterasu City, in the extra chapter.

The European version's: in its extra chapter (STORY_EXTRA), mode 632 starts it instead of WSTAG233.

Definition in file wstag927.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0x8

Definition at line 40 of file wstag927.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 50 of file wstag927.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8ED

Definition at line 51 of file wstag927.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x346

Definition at line 52 of file wstag927.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 133 of file wstag927.c.

Function Documentation

◆ updateStage()

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

Creates an object and the event object of flag 0x100C.

< 0x10 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< 0x10 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 20 of file wstag927.c.

Here is the call graph for this function:

◆ endEvent1608()

void endEvent1608 ( void  )

After event 1608, with Kurt: starts the stage's event battle 0 and keeps it from playing again.

< 0x10 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 44 of file wstag927.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing KANRIBGM.

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.

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

Definition at line 59 of file wstag927.c.

Variable Documentation

◆ updateTileAnimsFrames0

AnimFrame updateTileAnimsFrames0[]
Initial value:
= {
{ 50, 18 }, { 44, 6 }, { 50, 60 }, { 44, 6 },
{ 45, 6 }, { 46, 6 }, { 44, 6 }, { 51, 78 },
{ 44, 6 }, { 45, 6 }, { 46, 6 }, { 44, 6 },
{ 52, 60 }, { 44, 6 }, { 52, 18 }, { 44, 6 },
{ 45, 6 }, { 46, 6 }, { 44, 6 }, { 255, 0 },
}

Defined below, after the code that uses them.

Definition at line 81 of file wstag927.c.

◆ updateTileAnimsFrames1

AnimFrame updateTileAnimsFrames1[]
Initial value:
= {
{ 56, 60 }, { 47, 6 }, { 56, 18 }, { 47, 6 },
{ 48, 6 }, { 49, 6 }, { 47, 6 }, { 57, 78 },
{ 47, 6 }, { 48, 6 }, { 49, 6 }, { 47, 6 },
{ 58, 18 }, { 47, 6 }, { 58, 60 }, { 47, 6 },
{ 48, 6 }, { 49, 6 }, { 47, 6 }, { 255, 0 },
}

Definition at line 88 of file wstag927.c.

◆ script1608

s16 script1608

Defined below, after the tables that use them.

Definition at line 139 of file wstag927.c.

◆ script1610

s16 script1610

Definition at line 182 of file wstag927.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, 0x178, 0x1B8, 0xE0, 0xB8, 0x170, 0x1F4 },
}

Definition at line 95 of file wstag927.c.

Referenced by setupStage().

◆ actor0

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

Definition at line 104 of file wstag927.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag927.c:104

Definition at line 105 of file wstag927.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x41, 2, 0, 5, 8, 0, 350, 180, 0, 0 },
{ 1, 0, 0x40, 2, 0x45, 2, 0, 5, 8, 0, 314, 180, 0, 0 },
{ 1, 2, 0x58, 2, 0x38, 0, 0, 0, 0, 0, 229, 79, 0, 0 },
{ 1, 1, 0x58, 2, 0x32, 0, 0, 0, 0, 0, 395, 79, 0, 0 },
{ 1, 0, 0x40, 2, 0x3E, 1, 0x3E, 0x40, 8, 0, 354, 185, 0, 0 },
{ 1, 0, 0x40, 2, 0x42, 1, 0x42, 0x44, 8, 0, 318, 185, 0, 0 },
{ 1, 0, 0x40, 2, 0x46, 2, 0, 3, 4, 0, 206, 186, 0, 0 },
{ 1, 0, 0x40, 2, 0x46, 2, 0, 3, 4, 0, 370, 138, 0, 0 },
{ 1, 0, 0x40, 2, 0x47, 2, 0, 3, 4, 0, 238, 170, 0, 0 },
{ 1, 0, 0x40, 2, 0x47, 2, 0, 3, 4, 0, 402, 154, 0, 0 },
{ 1, 0, 0x40, 2, 0x48, 2, 0, 3, 4, 0, 270, 154, 0, 0 },
{ 1, 0, 0x40, 2, 0x48, 2, 0, 3, 4, 0, 434, 170, 0, 0 },
{ 1, 0, 0x40, 2, 0x49, 2, 0, 3, 4, 0, 302, 138, 0, 0 },
{ 1, 0, 0x40, 2, 0x49, 2, 0, 3, 4, 0, 466, 186, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 5, 6, 0, 387, 77, 0, 0 },
{ 1, 0, 0x40, 6, 0x37, 2, 0, 5, 6, 0, 395, 79, 0, 0 },
{ 1, 0, 0x40, 6, 0x3C, 2, 0, 5, 6, 0, 229, 77, 0, 0 },
{ 1, 0, 0x40, 6, 0x3D, 2, 0, 5, 6, 0, 229, 79, 0, 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 109 of file wstag927.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing KANRIBGM.
Definition wstag927.c:59

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 130 of file wstag927.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1608, script1608, ( ( 0x159 - 1) << 16 | ( 4 )), ((void *)0) , endEvent1608 },
{ 1610, script1610, ( ( 0x159 - 1) << 16 | ( 5 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
s16 script1608[]
Defined below, after the tables that use them.
Definition wstag927.c:139
s16 script1610[]
Definition wstag927.c:182
void endEvent1608(void)
After event 1608, with Kurt: starts the stage's event battle 0 and keeps it from playing again.
Definition wstag927.c:44

Definition at line 134 of file wstag927.c.

Referenced by setupStage().

◆ area0Battle0

AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 220 of file wstag927.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 221 of file wstag927.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 222 of file wstag927.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 223 of file wstag927.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 224 of file wstag927.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 225 of file wstag927.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 226 of file wstag927.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 227 of file wstag927.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag927.c:227
AreaBattle area0Battle1
Definition wstag927.c:221
AreaBattle area0Battle6
Definition wstag927.c:226
AreaBattle area0Battle3
Definition wstag927.c:223
AreaBattle area0Battle5
Definition wstag927.c:225
AreaBattle area0Battle0
Definition wstag927.c:220
AreaBattle area0Battle2
Definition wstag927.c:222
AreaBattle area0Battle4
Definition wstag927.c:224

Definition at line 228 of file wstag927.c.

◆ area1Battle0

AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 233 of file wstag927.c.

◆ area1Battle1

AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 234 of file wstag927.c.

◆ area1Battle2

AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 235 of file wstag927.c.

◆ area1Battle3

AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 236 of file wstag927.c.

◆ area1Battle4

AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 237 of file wstag927.c.

◆ area1Battle5

AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 238 of file wstag927.c.

◆ area1Battle6

AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 239 of file wstag927.c.

◆ area1Battle7

AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 240 of file wstag927.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag927.c:239
AreaBattle area1Battle2
Definition wstag927.c:235
AreaBattle area1Battle4
Definition wstag927.c:237
AreaBattle area1Battle5
Definition wstag927.c:238
AreaBattle area1Battle3
Definition wstag927.c:236
AreaBattle area1Battle0
Definition wstag927.c:233
AreaBattle area1Battle1
Definition wstag927.c:234
AreaBattle area1Battle7
Definition wstag927.c:240

Definition at line 241 of file wstag927.c.

◆ area2Battle0

AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 246 of file wstag927.c.

◆ area2Battle1

AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 247 of file wstag927.c.

◆ area2Battle2

AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 248 of file wstag927.c.

◆ area2Battle3

AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 249 of file wstag927.c.

◆ area2Battle4

AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 250 of file wstag927.c.

◆ area2Battle5

AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 251 of file wstag927.c.

◆ area2Battle6

AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 252 of file wstag927.c.

◆ area2Battle7

AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 253 of file wstag927.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag927.c:253
AreaBattle area2Battle6
Definition wstag927.c:252
AreaBattle area2Battle0
Definition wstag927.c:246
AreaBattle area2Battle4
Definition wstag927.c:250
AreaBattle area2Battle2
Definition wstag927.c:248
AreaBattle area2Battle1
Definition wstag927.c:247
AreaBattle area2Battle5
Definition wstag927.c:251
AreaBattle area2Battle3
Definition wstag927.c:249

Definition at line 254 of file wstag927.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 262, 47, (0x60000000 | ( 0x25 ) << 18 | ( 0 )) }

Definition at line 259 of file wstag927.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 260 of file wstag927.c.

◆ area3Battle2

AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 261 of file wstag927.c.

◆ area3Battle3

AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 262 of file wstag927.c.

◆ area3Battle4

AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 263 of file wstag927.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 264 of file wstag927.c.

◆ area3Battle6

AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 265 of file wstag927.c.

◆ area3Battle7

AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 266 of file wstag927.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag927.c:263
AreaBattle area3Battle3
Definition wstag927.c:262
AreaBattle area3Battle0
Definition wstag927.c:259
AreaBattle area3Battle2
Definition wstag927.c:261
AreaBattle area3Battle1
Definition wstag927.c:260
AreaBattle area3Battle6
Definition wstag927.c:265
AreaBattle area3Battle5
Definition wstag927.c:264
AreaBattle area3Battle7
Definition wstag927.c:266

Definition at line 267 of file wstag927.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag927.c:267
BattleList area1Battles
Definition wstag927.c:241
BattleList area2Battles
Definition wstag927.c:254
BattleList area0Battles
Definition wstag927.c:228

Definition at line 272 of file wstag927.c.

Referenced by setupStage().