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

WSTAG939: Control Room, Amaterasu City, in the extra chapter. More...

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

Go to the source code of this file.

Macros

#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x905
 
#define STAGE_FILE_8   0x764
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor2Talk0Conditions [] = { (0x7000 | ( 0x54 )) , 0, 0xFFFF }
 
u16 actor2Talk1Conditions []
 
u16 actor2Talk2Conditions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 368, 264, 5 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 440, 253, 5 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x68, 6, 407, 269, 5 }
 
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.
 

Detailed Description

WSTAG939: Control Room, Amaterasu City, in the extra chapter.

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

Definition in file wstag939.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 11 of file wstag939.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 15 of file wstag939.c.

◆ STAGE_FILE

#define STAGE_FILE   0x905

Definition at line 16 of file wstag939.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x764

Definition at line 17 of file wstag939.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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_0003: the cities' Control Room

< ENV_0003: the cities' Control Room

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

Definition at line 24 of file wstag939.c.

Variable Documentation

◆ 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, 0x168, 0x100, 0xA0, 0, 0x140, 0x1EE },
{ 0x140, 0x100, 0x170, 0x100, 0xC0, 0, 0x140, 0x1ED },
{ 0x140, 0x100, 0x178, 0x100, 0xE0, 0, 0x140, 0x1EC },
}

Definition at line 42 of file wstag939.c.

Referenced by setupStage().

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (0x7000 | ( 0x54 )) , 0, 0xFFFF }

Definition at line 53 of file wstag939.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[]
Initial value:
= {
(0x7000 | ( 0x54 )) , 1,
(( 0x10 ) << 8 | ( 0xC )) , 0,
0xFFFF ,
}

Definition at line 54 of file wstag939.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[]
Initial value:
= {
(0x7000 | ( 0x54 )) , 1,
(( 0x10 ) << 8 | ( 0xC )) , 1,
0xFFFF ,
}

Definition at line 59 of file wstag939.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x6D },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 64 of file wstag939.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x6E },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 68 of file wstag939.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ actor2Talk0Conditions, ((void *)0) , 0x6A },
{ actor2Talk1Conditions, ((void *)0) , 0x6B },
{ actor2Talk2Conditions, ((void *)0) , 0x6C },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag939.c:54
u16 actor2Talk2Conditions[]
Definition wstag939.c:59
u16 actor2Talk0Conditions[]
Definition wstag939.c:53

Definition at line 72 of file wstag939.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 368, 264, 5 }

Definition at line 78 of file wstag939.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 440, 253, 5 }

Definition at line 79 of file wstag939.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x68, 6, 407, 269, 5 }

Definition at line 80 of file wstag939.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag939.c:78
FieldActorEntry actor2
Definition wstag939.c:80
FieldActorEntry actor1
Definition wstag939.c:79

Definition at line 81 of file wstag939.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 374, 301, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 390, 293, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 406, 285, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 422, 277, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 458, 262, 0, 0 },
{ 1, 0, 0x49, 6, 0, 1, 0, 3, 4, 0, 84, 193, 0, 0 },
{ 1, 0, 0x5D, 6, 4, 1, 4, 7, 4, 0, 68, 252, 0, 0 },
{ 1, 0, 0x5D, 6, 5, 1, 5, 8, 4, 0, 131, 227, 0, 0 },
{ 1, 0, 0x5D, 6, 0xB, 1, 0xB, 0xE, 4, 0, 182, 153, 0, 0 },
{ 1, 0, 0x49, 6, 0, 1, 0, 3, 4, 0, 227, 178, 0, 0 },
{ 1, 0, 0x5D, 6, 7, 1, 7, 0xA, 4, 0, 272, 108, 0, 0 },
{ 1, 1, 0x40, 6, 0x32, 2, 0, 2, 0x10, 0, 438, 220, 0, 0 },
{ 1, 3, 0x40, 6, 0x33, 2, 0, 1, 0x10, 0, 438, 220, 0, 0 },
{ 1, 2, 0x40, 6, 0x34, 2, 0, 3, 4, 0, 444, 202, 0, 0 },
{ 1, 4, 0x40, 6, 0x35, 2, 0, 3, 4, 0, 444, 202, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 294, 261, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 310, 253, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 326, 245, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 342, 237, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 3, 4, 0, 374, 220, 0, 0 },
{ 1, 0, 0x40, 6, 0xF, 0, 0, 0, 0, 0, 448, 207, 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 87 of file wstag939.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x28A, 0x3F8, 0x2DC, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 111 of file wstag939.c.

Referenced by setupStage().

◆ stageFuncs

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

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 115 of file wstag939.c.