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

WSTAG920: Amaterasu City, Central Sector: the streets by the bridge, 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 wstag920.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   0x8AA
 
#define STAGE_FILE_8   0x196
 

Functions

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

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
ActorImage stageImages []
 
u16 actor1Talk0Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 1, 0xFFFF }
 
u16 actor1Talk0Actions []
 
u16 actor1Talk1Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 1, (( 0 ) << 8 | ( 0x10 )) , 0, 0xFFFF }
 
u16 actor1Talk1Actions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk2Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor1Talk2Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk3Conditions [] = { (( 0 ) << 8 | ( 0x11 )) , 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor1Talk3Actions [] = { ((0x7600 + ( 1 ) * 0x200) | ( 0x32 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
u16 actor1Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x8000 | ( 0 ) << 9 | ( 0x192 )), 0, 0xFFFF }
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x37, 4, 225, 720, 5 }
 
FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x39, 5, 1088, 288, 3 }
 
FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 5, 1088, 288, 3 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0xB2, 6, 555, 474, 7 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x16D, 7, 257, 704, 1 }
 
FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x16F, 8, 564, 558, 5 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x171, 9, 595, 542, 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.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG920: Amaterasu City, Central Sector: the streets by the bridge, in the extra chapter.

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

Definition in file wstag920.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 11 of file wstag920.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 16 of file wstag920.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8AA

Definition at line 17 of file wstag920.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x196

Definition at line 18 of file wstag920.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< ASKA_BGM: the Central Sector's streets and bridges, the Underground Path

< ASKA_BGM: the Central Sector's streets and bridges, the Underground Path

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

Definition at line 25 of file wstag920.c.

Variable Documentation

◆ stageColor

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 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 14 of file wstag920.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 },
{ 0x1C0, 0x100, 0x1F6, 0x154, 0x2D8, 0x54, 0x170, 0x1F2 },
{ 0x1C0, 0x100, 0x1F6, 0x17C, 0x2D8, 0x7C, 0x170, 0x1F1 },
{ 0x1C0, 0x100, 0x1C0, 0x185, 0x200, 0x85, 0x170, 0x1F0 },
{ 0x1C0, 0x100, 0x1D4, 0x185, 0x250, 0x85, 0x170, 0x1EF },
{ 0x1C0, 0x100, 0x1DC, 0x185, 0x270, 0x85, 0x170, 0x1EE },
{ 0x1C0, 0x100, 0x1E4, 0x18C, 0x290, 0x8C, 0x170, 0x1ED },
}

Definition at line 45 of file wstag920.c.

Referenced by setupStage().

◆ actor1Talk0Conditions

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

Definition at line 59 of file wstag920.c.

◆ actor1Talk0Actions

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

Definition at line 60 of file wstag920.c.

◆ actor1Talk1Conditions

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

Definition at line 66 of file wstag920.c.

◆ actor1Talk1Actions

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

Definition at line 67 of file wstag920.c.

◆ actor1Talk2Conditions

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

Definition at line 68 of file wstag920.c.

◆ actor1Talk2Actions

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

Definition at line 69 of file wstag920.c.

◆ actor1Talk3Conditions

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

Definition at line 70 of file wstag920.c.

◆ actor1Talk3Actions

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

Definition at line 71 of file wstag920.c.

◆ actor0Talks

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

Definition at line 72 of file wstag920.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk3Actions[]
Definition wstag920.c:71
u16 actor1Talk2Actions[]
Definition wstag920.c:69
u16 actor1Talk1Conditions[]
Definition wstag920.c:66
u16 actor1Talk0Conditions[]
Definition wstag920.c:59
u16 actor1Talk1Actions[]
Definition wstag920.c:67
u16 actor1Talk0Actions[]
Definition wstag920.c:60
u16 actor1Talk2Conditions[]
Definition wstag920.c:68
u16 actor1Talk3Conditions[]
Definition wstag920.c:70

Definition at line 76 of file wstag920.c.

◆ actor2Talks

FieldTalk actor2Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 4 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 83 of file wstag920.c.

◆ actor3Talks

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

Definition at line 87 of file wstag920.c.

◆ actor4Talks

FieldTalk actor4Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 8 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 91 of file wstag920.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0xA },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 95 of file wstag920.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 9 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 99 of file wstag920.c.

◆ actor1Conditions

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

Definition at line 103 of file wstag920.c.

◆ actor2Conditions

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

Definition at line 104 of file wstag920.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x37, 4, 225, 720, 5 }

Definition at line 105 of file wstag920.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, actor1Talks, 0x39, 5, 1088, 288, 3 }

Definition at line 106 of file wstag920.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, actor2Talks, 0x39, 5, 1088, 288, 3 }

Definition at line 107 of file wstag920.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0xB2, 6, 555, 474, 7 }

Definition at line 108 of file wstag920.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x16D, 7, 257, 704, 1 }

Definition at line 109 of file wstag920.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x16F, 8, 564, 558, 5 }

Definition at line 110 of file wstag920.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x171, 9, 595, 542, 1 }

Definition at line 111 of file wstag920.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag920.c:105
FieldActorEntry actor6
Definition wstag920.c:111
FieldActorEntry actor5
Definition wstag920.c:110
FieldActorEntry actor2
Definition wstag920.c:107
FieldActorEntry actor4
Definition wstag920.c:109
FieldActorEntry actor1
Definition wstag920.c:106
FieldActorEntry actor3
Definition wstag920.c:108

Definition at line 112 of file wstag920.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 122 of file wstag920.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x272, 0x308, 0xE0, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27E, 0xE0, 0x14E, 5, 0x66, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27C, 0x178, 0x19C, 3, 0x67, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x27C, 0x218, 0x14C, 3, 0x68, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x279, 0x116, 0xDA, 3, 0x65, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x273, 0x60, 0x190, 5, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x275, 0xD8, 0x178, 5, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 251 of file wstag920.c.

Referenced by setupStage().

◆ stageFuncs

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

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}

Definition at line 264 of file wstag920.c.

Referenced by setupStage().