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

WSTAG937: El Dorado, Amaterasu City, in the extra chapter. More...

Include dependency graph for wstag937.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   0x901
 
#define STAGE_FILE_8   0x1B2
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor5Talk0Conditions [] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF }
 
u16 actor5Talk0Actions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
u16 actor5Talk1Conditions [] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldTalk actor3Talks []
 
FieldTalk actor4Talks []
 
FieldTalk actor5Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x30, 4, 264, 301, 3 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x31, 5, 216, 277, 7 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x32, 6, 352, 296, 5 }
 
FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x34, 7, 368, 224, 1 }
 
FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x35, 8, 471, 245, 3 }
 
FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x10B, 9, 353, 160, 7 }
 
FieldActorEntry actor6 = { ((void *)0) , ((void *)0) , 0x10C, 0xA, 360, 172, 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.
 

Detailed Description

WSTAG937: El Dorado, Amaterasu City, in the extra chapter.

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

Definition in file wstag937.c.

Macro Definition Documentation

◆ STAGE_TWEEN

#define STAGE_TWEEN

stageFuncs is a StageFuncs (stage.h)

Definition at line 8 of file wstag937.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 12 of file wstag937.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 16 of file wstag937.c.

◆ STAGE_FILE

#define STAGE_FILE   0x901

Definition at line 17 of file wstag937.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1B2

Definition at line 18 of file wstag937.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< SHOP2BGM: Lamb Chop, the Yellow Cruiser and El Dorado

< SHOP2BGM: Lamb Chop, the Yellow Cruiser and El Dorado

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

Definition at line 25 of file wstag937.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, 0x170, 0x17A, 0xC0, 0x7A, 0x160, 0x1FF },
{ 0x140, 0x100, 0x140, 0x182, 0, 0x82, 0x170, 0x1FF },
{ 0x140, 0x100, 0x148, 0x182, 0x20, 0x82, 0x160, 0x1FE },
{ 0x140, 0x100, 0x150, 0x182, 0x40, 0x82, 0x170, 0x1FE },
{ 0x140, 0x100, 0x158, 0x182, 0x60, 0x82, 0x140, 0x1FD },
{ 0x140, 0x100, 0x160, 0x189, 0x80, 0x89, 0x150, 0x1FD },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 46 of file wstag937.c.

Referenced by setupStage().

◆ actor5Talk0Conditions

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

Definition at line 61 of file wstag937.c.

◆ actor5Talk0Actions

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

Definition at line 62 of file wstag937.c.

◆ actor5Talk1Conditions

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

Definition at line 63 of file wstag937.c.

◆ actor0Talks

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

Definition at line 64 of file wstag937.c.

◆ actor1Talks

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

Definition at line 68 of file wstag937.c.

◆ actor2Talks

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

Definition at line 72 of file wstag937.c.

◆ actor3Talks

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

Definition at line 76 of file wstag937.c.

◆ actor4Talks

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

Definition at line 80 of file wstag937.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ actor5Talk1Conditions, ((void *)0) , 0x88 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor5Talk0Conditions[]
Definition wstag937.c:61
u16 actor5Talk0Actions[]
Definition wstag937.c:62
u16 actor5Talk1Conditions[]
Definition wstag937.c:63

Definition at line 84 of file wstag937.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x30, 4, 264, 301, 3 }

Definition at line 89 of file wstag937.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x31, 5, 216, 277, 7 }

Definition at line 90 of file wstag937.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x32, 6, 352, 296, 5 }

Definition at line 91 of file wstag937.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , actor3Talks, 0x34, 7, 368, 224, 1 }

Definition at line 92 of file wstag937.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , actor4Talks, 0x35, 8, 471, 245, 3 }

Definition at line 93 of file wstag937.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0x10B, 9, 353, 160, 7 }

Definition at line 94 of file wstag937.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , ((void *)0) , 0x10C, 0xA, 360, 172, 7 }

Definition at line 95 of file wstag937.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag937.c:89
FieldActorEntry actor6
Definition wstag937.c:95
FieldActorEntry actor5
Definition wstag937.c:94
FieldActorEntry actor2
Definition wstag937.c:91
FieldActorEntry actor4
Definition wstag937.c:93
FieldActorEntry actor1
Definition wstag937.c:90
FieldActorEntry actor3
Definition wstag937.c:92

Definition at line 96 of file wstag937.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 106 of file wstag937.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x271, 0x180, 0xD8, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x281, 0x92, 0x1A2, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 3, 0x110, 0xB8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 3, 0x100, 0xF0, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 144 of file wstag937.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 151 of file wstag937.c.