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

WSTAG961: Seabed, Underground: below the bridges, in the extra chapter. More...

Include dependency graph for wstag961.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)
 
#define STAGE_FILE   0x931
 
#define STAGE_FILE_8   0x700
 

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 placePoints1_1Point2 = { 0x2E3, 1, 1, 160, 0x180, 5, ((void *)0) }
 
StagePoint placePoints1_1Point1 = { 0x272, 0, 0, 0x420, 0x1F0, 0, &placePoints1_1Point2 }
 
StagePoint placePoints1_1Point0 = { 0x272, 0, 0, 0x150, 0x148, 0, &placePoints1_1Point1 }
 
StagePoints placePoints1_1 = { 1, 1, &placePoints1_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 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 62, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 103, 11, (0x60000000 | ( 2 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 103, 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

WSTAG961: Seabed, Underground: below the bridges, in the extra chapter.

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

Definition in file wstag961.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)

Definition at line 16 of file wstag961.c.

◆ STAGE_FILE

#define STAGE_FILE   0x931

Definition at line 17 of file wstag961.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x700

Definition at line 18 of file wstag961.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 wstag961.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 wstag961.c.

Referenced by setupStage().

◆ placePoints1_1Point2

StagePoint placePoints1_1Point2 = { 0x2E3, 1, 1, 160, 0x180, 5, ((void *)0) }

Definition at line 46 of file wstag961.c.

◆ placePoints1_1Point1

StagePoint placePoints1_1Point1 = { 0x272, 0, 0, 0x420, 0x1F0, 0, &placePoints1_1Point2 }

Definition at line 47 of file wstag961.c.

◆ placePoints1_1Point0

StagePoint placePoints1_1Point0 = { 0x272, 0, 0, 0x150, 0x148, 0, &placePoints1_1Point1 }

Definition at line 48 of file wstag961.c.

◆ placePoints1_1

StagePoints placePoints1_1 = { 1, 1, &placePoints1_1Point0 }

Definition at line 49 of file wstag961.c.

◆ placePoints

StagePoints* placePoints[]
Initial value:
= {
&placePoints1_1, ((void *)0) ,
}
StagePoints placePoints1_1
Definition wstag961.c:49

Names some stages define.

Definition at line 50 of file wstag961.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 },
{ 0x180, 0x100, 0x1A0, 0x100, 0x180, 0, 0x160, 0x1FF },
}

Definition at line 53 of file wstag961.c.

Referenced by setupStage().

◆ actor0

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

Definition at line 62 of file wstag961.c.

◆ stageActors

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

Definition at line 63 of file wstag961.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x8F, 2, 0x37, 1, 0x37, 0x4B, 0xA, 0, 550, 238, 0, 0 },
{ 1, 0, 0xB6, 2, 0x4C, 1, 0x4C, 0x62, 0xA, 0, 239, 158, 0, 0 },
{ 1, 0, 0xB6, 2, 0x4C, 1, 0x4C, 0x62, 0xA, 0, 661, 204, 0, 0 },
{ 1, 0, 0xB6, 2, 0x4C, 1, 0x4C, 0x62, 0xA, 0, 896, 119, 0, 0 },
{ 1, 0, 0xFF, 2, 0x33, 2, 0, 7, 0x18, 0, 188, -92, 0, 0 },
{ 1, 0, 0xFF, 2, 0x33, 2, 0, 7, 0x18, 0, 428, -20, 0, 0 },
{ 1, 0, 0x40, 2, 0, 0, 0, 0, 0, 0, 128, 276, 0, 0 },
{ 1, 0, 0x40, 2, 1, 0, 0, 0, 0, 0, 192, 297, 0, 0 },
{ 1, 0, 0x52, 2, 2, 0, 0, 0, 0, 0, 256, 292, 0, 0 },
{ 1, 0, 0x40, 2, 3, 0, 0, 0, 0, 0, 320, 320, 0, 0 },
{ 1, 0, 0x48, 2, 4, 0, 0, 0, 0, 0, 768, 312, 0, 0 },
{ 1, 0, 0x54, 2, 5, 0, 0, 0, 0, 0, 832, 270, 0, 0 },
{ 1, 0, 0x40, 2, 6, 0, 0, 0, 0, 0, 512, 335, 0, 0 },
{ 1, 0, 0x44, 2, 7, 0, 0, 0, 0, 0, 576, 316, 0, 0 },
{ 1, 0, 0x40, 2, 8, 0, 0, 0, 0, 0, 640, 337, 0, 0 },
{ 1, 0, 0x40, 2, 9, 0, 0, 0, 0, 0, 704, 338, 0, 0 },
{ 1, 0, 0x8F, 6, 0x37, 1, 0x37, 0x4B, 0xA, 0, 460, 182, 0, 0 },
{ 1, 0, 0x68, 6, 0x34, 1, 0x34, 0x36, 0xA, 0, 348, 194, 0, 0 },
{ 1, 0, 0x68, 6, 0x34, 1, 0x34, 0x36, 0xA, 0, 761, 156, 0, 0 },
{ 1, 0, 0xFF, 4, 0x32, 2, 0, 7, 0x18, 0, 188, 36, 280, 0 },
{ 1, 0, 0xFF, 4, 0x32, 2, 0, 7, 0x18, 0, 428, 108, 352, 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 67 of file wstag961.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2E1, 0xE0, 0x110, 4, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2E1, 0x1D0, 0x154, 4, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x2E1, 0x390, 0x108, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 91 of file wstag961.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 wstag961.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 97 of file wstag961.c.

◆ area0Battle0

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

Definition at line 100 of file wstag961.c.

◆ area0Battle1

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

Definition at line 101 of file wstag961.c.

◆ area0Battle2

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

Definition at line 102 of file wstag961.c.

◆ area0Battle3

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

Definition at line 103 of file wstag961.c.

◆ area0Battle4

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

Definition at line 104 of file wstag961.c.

◆ area0Battle5

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

Definition at line 105 of file wstag961.c.

◆ area0Battle6

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

Definition at line 106 of file wstag961.c.

◆ area0Battle7

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

Definition at line 107 of file wstag961.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
5,
}
AreaBattle area0Battle7
Definition wstag961.c:107
AreaBattle area0Battle1
Definition wstag961.c:101
AreaBattle area0Battle6
Definition wstag961.c:106
AreaBattle area0Battle3
Definition wstag961.c:103
AreaBattle area0Battle5
Definition wstag961.c:105
AreaBattle area0Battle0
Definition wstag961.c:100
AreaBattle area0Battle2
Definition wstag961.c:102
AreaBattle area0Battle4
Definition wstag961.c:104

Definition at line 108 of file wstag961.c.

◆ area1Battle0

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

Definition at line 113 of file wstag961.c.

◆ area1Battle1

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

Definition at line 114 of file wstag961.c.

◆ area1Battle2

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

Definition at line 115 of file wstag961.c.

◆ area1Battle3

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

Definition at line 116 of file wstag961.c.

◆ area1Battle4

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

Definition at line 117 of file wstag961.c.

◆ area1Battle5

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

Definition at line 118 of file wstag961.c.

◆ area1Battle6

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

Definition at line 119 of file wstag961.c.

◆ area1Battle7

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

Definition at line 120 of file wstag961.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag961.c:119
AreaBattle area1Battle2
Definition wstag961.c:115
AreaBattle area1Battle4
Definition wstag961.c:117
AreaBattle area1Battle5
Definition wstag961.c:118
AreaBattle area1Battle3
Definition wstag961.c:116
AreaBattle area1Battle0
Definition wstag961.c:113
AreaBattle area1Battle1
Definition wstag961.c:114
AreaBattle area1Battle7
Definition wstag961.c:120

Definition at line 121 of file wstag961.c.

◆ area2Battle0

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

Definition at line 126 of file wstag961.c.

◆ area2Battle1

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

Definition at line 127 of file wstag961.c.

◆ area2Battle2

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

Definition at line 128 of file wstag961.c.

◆ area2Battle3

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

Definition at line 129 of file wstag961.c.

◆ area2Battle4

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

Definition at line 130 of file wstag961.c.

◆ area2Battle5

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

Definition at line 131 of file wstag961.c.

◆ area2Battle6

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

Definition at line 132 of file wstag961.c.

◆ area2Battle7

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

Definition at line 133 of file wstag961.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag961.c:133
AreaBattle area2Battle6
Definition wstag961.c:132
AreaBattle area2Battle0
Definition wstag961.c:126
AreaBattle area2Battle4
Definition wstag961.c:130
AreaBattle area2Battle2
Definition wstag961.c:128
AreaBattle area2Battle1
Definition wstag961.c:127
AreaBattle area2Battle5
Definition wstag961.c:131
AreaBattle area2Battle3
Definition wstag961.c:129

Definition at line 134 of file wstag961.c.

◆ area3Battle0

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

Definition at line 139 of file wstag961.c.

◆ area3Battle1

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

Definition at line 140 of file wstag961.c.

◆ area3Battle2

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

Definition at line 141 of file wstag961.c.

◆ area3Battle3

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

Definition at line 142 of file wstag961.c.

◆ area3Battle4

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

Definition at line 143 of file wstag961.c.

◆ area3Battle5

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

Definition at line 144 of file wstag961.c.

◆ area3Battle6

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

Definition at line 145 of file wstag961.c.

◆ area3Battle7

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

Definition at line 146 of file wstag961.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag961.c:143
AreaBattle area3Battle3
Definition wstag961.c:142
AreaBattle area3Battle0
Definition wstag961.c:139
AreaBattle area3Battle2
Definition wstag961.c:141
AreaBattle area3Battle1
Definition wstag961.c:140
AreaBattle area3Battle6
Definition wstag961.c:145
AreaBattle area3Battle5
Definition wstag961.c:144
AreaBattle area3Battle7
Definition wstag961.c:146

Definition at line 147 of file wstag961.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag961.c:147
BattleList area1Battles
Definition wstag961.c:121
BattleList area2Battles
Definition wstag961.c:134
BattleList area0Battles
Definition wstag961.c:108

Definition at line 152 of file wstag961.c.

Referenced by setupStage().