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

WSTAG955: East Station, East Sector, 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 wstag955.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)
 
#define STAGE_FILE   0x925
 
#define STAGE_FILE_8   0x39C
 

Functions

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

Variables

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
ActorImage stageImages []
 
u16 actor2Talk0Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor2Talk0Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk1Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }
 
u16 actor2Talk1Actions []
 
u16 actor2Talk2Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor2Talk2Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk3Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor2Talk3Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x38 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
u16 actor1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }
 
u16 actor2Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x25, 4, 479, 320, 1 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2E, 5, 624, 152, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2E, 5, 624, 152, 7 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x16D, 6, 528, 209, 1 }
 
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

WSTAG955: East Station, East Sector, in the extra chapter.

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

Definition in file wstag955.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_09)

Definition at line 15 of file wstag955.c.

◆ STAGE_FILE

#define STAGE_FILE   0x925

Definition at line 16 of file wstag955.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x39C

Definition at line 17 of file wstag955.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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_0012: the East and South Stations

< BGM_0012: the East and South Stations

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

Definition at line 24 of file wstag955.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x80, 0x80, 0x80, 0x00 }

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 13 of file wstag955.c.

Referenced by setupStage().

◆ 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, 0x174, 0x100, 0xD0, 0, 0x170, 0x1FF },
{ 0x140, 0x100, 0x174, 0x130, 0xD0, 0x30, 0x160, 0x1FE },
{ 0x140, 0x100, 0x16A, 0x14E, 0xA8, 0x4E, 0x170, 0x1FE },
}

Definition at line 43 of file wstag955.c.

Referenced by setupStage().

◆ actor2Talk0Conditions

u16 actor2Talk0Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }

Definition at line 54 of file wstag955.c.

◆ actor2Talk0Actions

u16 actor2Talk0Actions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 55 of file wstag955.c.

◆ actor2Talk1Conditions

u16 actor2Talk1Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }

Definition at line 56 of file wstag955.c.

◆ actor2Talk1Actions

u16 actor2Talk1Actions[]
Initial value:
= {
(( 0 ) << 8 | ( 0x11 )) , 0,
(( 0 ) << 8 | ( 0x10 )) , 0,
(( 0 ) << 8 | ( 0 )) , 0,
0xFFFF ,
}

Definition at line 57 of file wstag955.c.

◆ actor2Talk2Conditions

u16 actor2Talk2Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }

Definition at line 63 of file wstag955.c.

◆ actor2Talk2Actions

u16 actor2Talk2Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 64 of file wstag955.c.

◆ actor2Talk3Conditions

u16 actor2Talk3Conditions[] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }

Definition at line 65 of file wstag955.c.

◆ actor2Talk3Actions

u16 actor2Talk3Actions[] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x38 )) , 1, 0xFFFF }

Definition at line 66 of file wstag955.c.

◆ actor0Talks

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

Definition at line 67 of file wstag955.c.

◆ actor1Talks

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

Definition at line 71 of file wstag955.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor2Talk1Conditions[]
Definition wstag955.c:56
u16 actor2Talk3Conditions[]
Definition wstag955.c:65
u16 actor2Talk1Actions[]
Definition wstag955.c:57
u16 actor2Talk0Actions[]
Definition wstag955.c:55
u16 actor2Talk2Conditions[]
Definition wstag955.c:63
u16 actor2Talk3Actions[]
Definition wstag955.c:66
u16 actor2Talk0Conditions[]
Definition wstag955.c:54
u16 actor2Talk2Actions[]
Definition wstag955.c:64

Definition at line 75 of file wstag955.c.

◆ actor3Talks

FieldTalk actor3Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x94 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 82 of file wstag955.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }

Definition at line 86 of file wstag955.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }

Definition at line 87 of file wstag955.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x25, 4, 479, 320, 1 }

Definition at line 88 of file wstag955.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x2E, 5, 624, 152, 7 }

Definition at line 89 of file wstag955.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x2E, 5, 624, 152, 7 }

Definition at line 90 of file wstag955.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x16D, 6, 528, 209, 1 }

Definition at line 91 of file wstag955.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag955.c:88
FieldActorEntry actor2
Definition wstag955.c:90
FieldActorEntry actor1
Definition wstag955.c:89
FieldActorEntry actor3
Definition wstag955.c:91

Definition at line 92 of file wstag955.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x80, 2, 0, 0, 0, 0, 0, 0, 218, 322, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 5, 6, 0, 429, 308, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 5, 6, 0, 674, 320, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 1, 0x34, 0x39, 4, 0, 776, 392, 0, 0 },
{ 1, 0, 0x80, 6, 1, 0, 0, 0, 0, 0, 219, 367, 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 99 of file wstag955.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x299, 0xD0, 0x2FC, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 107 of file wstag955.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing BGM_0012.
Definition wstag955.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 111 of file wstag955.c.