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

WSTAG923: Main Lobby, Amaterasu City, in the extra chapter. More...

Include dependency graph for wstag923.c:

Go to the source code of this file.

Macros

#define STAGE_TWEEN
 stageFuncs is a StageFuncs (stage.h)
 
#define STAGE_CHILDREN_SIZE   4
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8E2
 
#define STAGE_FILE_8   0x19A
 
#define STAGE_ARCHIVE   0x8E0
 

Functions

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

Variables

const CVECTOR stageColor = { 0x54, 0x67, 0x96, 0x00 }
 the color the setup copies to FIELDSTG_state.spriteColor
 
ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldTalk actor7Talks []
 
FieldTalk actor10Talks []
 
FieldTalk actor11Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 384, 255, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 434, 247, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x25, 6, 344, 188, 1 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x2D, 7, 193, 257, 7 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x30, 8, 328, 260, 5 }
 
FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x35, 9, 391, 359, 5 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x39, 0xA, 529, 505, 7 }
 
FieldActorEntry actor7 = { ((void *)0) , actor7Talks, 0x3A, 0xB, 617, 501, 1 }
 
FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x70, 0xC, 360, 268, 1 }
 
FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x71, 0xD, 450, 254, 7 }
 
FieldActorEntry actor10 = { ((void *)0) , actor10Talks, 0x173, 0xE, 308, 305, 3 }
 
FieldActorEntry actor11 = { ((void *)0) , actor11Talks, 0x179, 0xF, 285, 295, 7 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
StageSlot stageSlots []
 
StageFuncs stageFuncs = { setupStage, startTween, updateTween }
 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

WSTAG923: Main Lobby, Amaterasu City, in the extra chapter.

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

Definition in file wstag923.c.

Macro Definition Documentation

◆ STAGE_TWEEN

#define STAGE_TWEEN

stageFuncs is a StageFuncs (stage.h)

Definition at line 8 of file wstag923.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 12 of file wstag923.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 17 of file wstag923.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8E2

Definition at line 18 of file wstag923.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x19A

Definition at line 19 of file wstag923.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x8E0

Definition at line 20 of file wstag923.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

< KANRIBGM: the cities' Main Lobby, Admin Center, Digimon Arena, Master Room

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

Definition at line 28 of file wstag923.c.

Variable Documentation

◆ stageColor

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

the color the setup copies to FIELDSTG_state.spriteColor

Definition at line 15 of file wstag923.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, 0x1F0, 0x120, 0x2C0, 0x20, 0x170, 0x1F8 },
{ 0x1C0, 0x100, 0x1F0, 0x148, 0x2C0, 0x48, 0x140, 0x1F7 },
{ 0x180, 0x100, 0x1B4, 0x100, 0x1D0, 0, 0x150, 0x1F7 },
{ 0x140, 0x100, 0x178, 0x139, 0xE0, 0x39, 0x160, 0x1F7 },
{ 0x1C0, 0x100, 0x1C0, 0x16D, 0x200, 0x6D, 0x170, 0x1F7 },
{ 0x1C0, 0x100, 0x1C8, 0x16D, 0x220, 0x6D, 0x140, 0x1F6 },
{ 0x1C0, 0x100, 0x1F0, 0x170, 0x2C0, 0x70, 0x150, 0x1F6 },
{ 0x1C0, 0x100, 0x1D0, 0x18A, 0x240, 0x8A, 0x160, 0x1F6 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x1C0, 0x100, 0x1D8, 0x18A, 0x260, 0x8A, 0x170, 0x1F6 },
{ 0x1C0, 0x100, 0x1E0, 0x18A, 0x280, 0x8A, 0x140, 0x1F5 },
}

Definition at line 51 of file wstag923.c.

Referenced by setupStage().

◆ actor0Talks

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

Definition at line 71 of file wstag923.c.

◆ actor1Talks

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

Definition at line 75 of file wstag923.c.

◆ actor2Talks

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

Definition at line 79 of file wstag923.c.

◆ actor3Talks

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

Definition at line 83 of file wstag923.c.

◆ actor4Talks

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

Definition at line 87 of file wstag923.c.

◆ actor5Talks

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

Definition at line 91 of file wstag923.c.

◆ actor6Talks

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

Definition at line 95 of file wstag923.c.

◆ actor7Talks

FieldTalk actor7Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x1C },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 99 of file wstag923.c.

◆ actor10Talks

FieldTalk actor10Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x20 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 103 of file wstag923.c.

◆ actor11Talks

FieldTalk actor11Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x21 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 107 of file wstag923.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 384, 255, 1 }

Definition at line 111 of file wstag923.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 434, 247, 7 }

Definition at line 112 of file wstag923.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x25, 6, 344, 188, 1 }

Definition at line 113 of file wstag923.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x2D, 7, 193, 257, 7 }

Definition at line 114 of file wstag923.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x30, 8, 328, 260, 5 }

Definition at line 115 of file wstag923.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x35, 9, 391, 359, 5 }

Definition at line 116 of file wstag923.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x39, 0xA, 529, 505, 7 }

Definition at line 117 of file wstag923.c.

◆ actor7

FieldActorEntry actor7 = { ((void *)0) , actor7Talks, 0x3A, 0xB, 617, 501, 1 }

Definition at line 118 of file wstag923.c.

◆ actor8

FieldActorEntry actor8 = { ((void *)0) , ((void *)0) , 0x70, 0xC, 360, 268, 1 }

Definition at line 119 of file wstag923.c.

◆ actor9

FieldActorEntry actor9 = { ((void *)0) , ((void *)0) , 0x71, 0xD, 450, 254, 7 }

Definition at line 120 of file wstag923.c.

◆ actor10

FieldActorEntry actor10 = { ((void *)0) , actor10Talks, 0x173, 0xE, 308, 305, 3 }

Definition at line 121 of file wstag923.c.

◆ actor11

FieldActorEntry actor11 = { ((void *)0) , actor11Talks, 0x179, 0xF, 285, 295, 7 }

Definition at line 122 of file wstag923.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag923.c:111
FieldActorEntry actor6
Definition wstag923.c:117
FieldActorEntry actor5
Definition wstag923.c:116
FieldActorEntry actor2
Definition wstag923.c:113
FieldActorEntry actor10
Definition wstag923.c:121
FieldActorEntry actor4
Definition wstag923.c:115
FieldActorEntry actor8
Definition wstag923.c:119
FieldActorEntry actor9
Definition wstag923.c:120
FieldActorEntry actor7
Definition wstag923.c:118
FieldActorEntry actor11
Definition wstag923.c:122
FieldActorEntry actor1
Definition wstag923.c:112
FieldActorEntry actor3
Definition wstag923.c:114

Definition at line 123 of file wstag923.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 138 of file wstag923.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x3E8, 0xEC, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x275, 0x70, 0xF0, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x276, 0x58, 0x1CC, 5, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x277, 0x69, 0x134, 5, 0x65, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 245 of file wstag923.c.

Referenced by setupStage().

◆ stageFuncs

StageFuncs stageFuncs ( void  ) = { setupStage, startTween, updateTween }

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 252 of file wstag923.c.

◆ stageEvents

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

Definition at line 253 of file wstag923.c.

Referenced by setupStage().