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

WSTAG962: Seabed, Underground: below Divermon's Lake and South and West Sector, in the extra chapter. More...

Include dependency graph for wstag962.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)
 
#define STAGE_FILE   0x933
 
#define STAGE_FILE_8   0x6E4
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors and battles, playing BGM_0027.
 

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x01 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
StagePoint placePoints2_1Point1 = { 0x2E4, 2, 4, 192, 0x180, 5, ((void *)0) }
 
StagePoint placePoints2_1Point0 = { 0x28C, 0, 0, 0x328, 0x424, 0, &placePoints2_1Point1 }
 
StagePoints placePoints2_1 = { 2, 1, &placePoints2_1Point0 }
 
StagePoints * placePoints []
 Names some stages define.
 
ActorImage stageImages []
 
FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 0x147, 4, 0, 0, 0 }
 
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.
 
AreaBattle area0Battle0 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 61, 11, (0x60000000 | ( 2 ) << 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 = { 0, 0, (0x60000000 | ( 1 ) << 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

WSTAG962: Seabed, Underground: below Divermon's Lake and South and West Sector, in the extra chapter.

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

Definition in file wstag962.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)

Definition at line 16 of file wstag962.c.

◆ STAGE_FILE

#define STAGE_FILE   0x933

Definition at line 17 of file wstag962.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x6E4

Definition at line 18 of file wstag962.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< BGM_0027: the Seabed tunnels

< BGM_0027: the Seabed tunnels

< a cell's value: a direction (3 bits) and a StageSlot (5)

< a cell's value: its battle area (FieldBattles), or 0

Definition at line 25 of file wstag962.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x01 }

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 14 of file wstag962.c.

Referenced by setupStage().

◆ placePoints2_1Point1

StagePoint placePoints2_1Point1 = { 0x2E4, 2, 4, 192, 0x180, 5, ((void *)0) }

Definition at line 46 of file wstag962.c.

◆ placePoints2_1Point0

StagePoint placePoints2_1Point0 = { 0x28C, 0, 0, 0x328, 0x424, 0, &placePoints2_1Point1 }

Definition at line 47 of file wstag962.c.

◆ placePoints2_1

StagePoints placePoints2_1 = { 2, 1, &placePoints2_1Point0 }

Definition at line 48 of file wstag962.c.

◆ placePoints

StagePoints* placePoints[]
Initial value:
= {
&placePoints2_1, ((void *)0) ,
}
StagePoints placePoints2_1
Definition wstag962.c:48

Names some stages define.

Definition at line 49 of file wstag962.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, 0x152, 0x198, 0x48, 0x98, 0x160, 0x1FF },
}

Definition at line 52 of file wstag962.c.

Referenced by setupStage().

◆ actor0

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

Definition at line 61 of file wstag962.c.

◆ stageActors

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

Definition at line 62 of file wstag962.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x8F, 2, 0x37, 1, 0x37, 0x4B, 0xA, 0, 254, 275, 0, 0 },
{ 1, 0, 0x8F, 2, 0x37, 1, 0x37, 0x4B, 0xA, 0, 621, 244, 0, 0 },
{ 1, 0, 0x8F, 2, 0x37, 1, 0x37, 0x4B, 0xA, 0, 852, 128, 0, 0 },
{ 1, 0, 0xB6, 2, 0x4C, 1, 0x4C, 0x62, 0xA, 0, 384, 171, 0, 0 },
{ 1, 0, 0xB6, 2, 0x4C, 1, 0x4C, 0x62, 0xA, 0, 689, 166, 0, 0 },
{ 1, 0, 0xFF, 2, 0x33, 2, 0, 7, 0x18, 0, 140, -36, 0, 0 },
{ 1, 0, 0x98, 2, 5, 0, 0, 0, 0, 0, 432, 254, 0, 0 },
{ 1, 0, 0x8A, 2, 6, 0, 0, 0, 0, 0, 408, 268, 0, 0 },
{ 1, 0, 0x8F, 6, 0x37, 1, 0x37, 0x4B, 0xA, 0, 475, 113, 0, 0 },
{ 1, 0, 0x68, 6, 0x34, 1, 0x34, 0x36, 0xA, 0, 169, 206, 0, 0 },
{ 1, 0, 0x68, 6, 0x34, 1, 0x34, 0x36, 0xA, 0, 750, 142, 0, 0 },
{ 1, 0, 0xFF, 4, 0x32, 2, 0, 7, 0x18, 0, 140, 92, 336, 0 },
{ 1, 0, 0x92, 4, 1, 0, 0, 0, 0, 0, 560, 179, 319, 0 },
{ 1, 0, 0x79, 4, 2, 0, 0, 0, 0, 0, 528, 198, 335, 0 },
{ 1, 0, 0x88, 4, 3, 0, 0, 0, 0, 0, 496, 216, 351, 0 },
{ 1, 0, 0x86, 4, 4, 0, 0, 0, 0, 0, 464, 232, 368, 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 66 of file wstag962.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2E2, 0xB0, 0x148, 4, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2E2, 0x330, 0xF8, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 85 of file wstag962.c.

Referenced by setupStage().

◆ stageFuncs

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

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 90 of file wstag962.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 93 of file wstag962.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 94 of file wstag962.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 95 of file wstag962.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 96 of file wstag962.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 97 of file wstag962.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 98 of file wstag962.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 99 of file wstag962.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 61, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }

Definition at line 100 of file wstag962.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
3,
}
AreaBattle area0Battle7
Definition wstag962.c:100
AreaBattle area0Battle1
Definition wstag962.c:94
AreaBattle area0Battle6
Definition wstag962.c:99
AreaBattle area0Battle3
Definition wstag962.c:96
AreaBattle area0Battle5
Definition wstag962.c:98
AreaBattle area0Battle0
Definition wstag962.c:93
AreaBattle area0Battle2
Definition wstag962.c:95
AreaBattle area0Battle4
Definition wstag962.c:97

Definition at line 101 of file wstag962.c.

◆ area1Battle0

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

Definition at line 106 of file wstag962.c.

◆ area1Battle1

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

Definition at line 107 of file wstag962.c.

◆ area1Battle2

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

Definition at line 108 of file wstag962.c.

◆ area1Battle3

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

Definition at line 109 of file wstag962.c.

◆ area1Battle4

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

Definition at line 110 of file wstag962.c.

◆ area1Battle5

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

Definition at line 111 of file wstag962.c.

◆ area1Battle6

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

Definition at line 112 of file wstag962.c.

◆ area1Battle7

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

Definition at line 113 of file wstag962.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag962.c:112
AreaBattle area1Battle2
Definition wstag962.c:108
AreaBattle area1Battle4
Definition wstag962.c:110
AreaBattle area1Battle5
Definition wstag962.c:111
AreaBattle area1Battle3
Definition wstag962.c:109
AreaBattle area1Battle0
Definition wstag962.c:106
AreaBattle area1Battle1
Definition wstag962.c:107
AreaBattle area1Battle7
Definition wstag962.c:113

Definition at line 114 of file wstag962.c.

◆ area2Battle0

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

Definition at line 119 of file wstag962.c.

◆ area2Battle1

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

Definition at line 120 of file wstag962.c.

◆ area2Battle2

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

Definition at line 121 of file wstag962.c.

◆ area2Battle3

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

Definition at line 122 of file wstag962.c.

◆ area2Battle4

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

Definition at line 123 of file wstag962.c.

◆ area2Battle5

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

Definition at line 124 of file wstag962.c.

◆ area2Battle6

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

Definition at line 125 of file wstag962.c.

◆ area2Battle7

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

Definition at line 126 of file wstag962.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag962.c:126
AreaBattle area2Battle6
Definition wstag962.c:125
AreaBattle area2Battle0
Definition wstag962.c:119
AreaBattle area2Battle4
Definition wstag962.c:123
AreaBattle area2Battle2
Definition wstag962.c:121
AreaBattle area2Battle1
Definition wstag962.c:120
AreaBattle area2Battle5
Definition wstag962.c:124
AreaBattle area2Battle3
Definition wstag962.c:122

Definition at line 127 of file wstag962.c.

◆ area3Battle0

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

Definition at line 132 of file wstag962.c.

◆ area3Battle1

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

Definition at line 133 of file wstag962.c.

◆ area3Battle2

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

Definition at line 134 of file wstag962.c.

◆ area3Battle3

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

Definition at line 135 of file wstag962.c.

◆ area3Battle4

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

Definition at line 136 of file wstag962.c.

◆ area3Battle5

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

Definition at line 137 of file wstag962.c.

◆ area3Battle6

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

Definition at line 138 of file wstag962.c.

◆ area3Battle7

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

Definition at line 139 of file wstag962.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag962.c:136
AreaBattle area3Battle3
Definition wstag962.c:135
AreaBattle area3Battle0
Definition wstag962.c:132
AreaBattle area3Battle2
Definition wstag962.c:134
AreaBattle area3Battle1
Definition wstag962.c:133
AreaBattle area3Battle6
Definition wstag962.c:138
AreaBattle area3Battle5
Definition wstag962.c:137
AreaBattle area3Battle7
Definition wstag962.c:139

Definition at line 140 of file wstag962.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag962.c:140
BattleList area1Battles
Definition wstag962.c:114
BattleList area2Battles
Definition wstag962.c:127
BattleList area0Battles
Definition wstag962.c:101

Definition at line 145 of file wstag962.c.

Referenced by setupStage().