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

WSTAG930: Amaterasu Inn 2F, 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 wstag930.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8F3
 
#define STAGE_FILE_8   0x1A4
 

Functions

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

Variables

ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x28, 4, 135, 212, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x29, 5, 173, 155, 1 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x2A, 6, 56, 193, 1 }
 
FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0xDD, 7, 184, 173, 7 }
 
FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0xDE, 8, 143, 240, 7 }
 
FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xDF, 9, 64, 224, 7 }
 
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

WSTAG930: Amaterasu Inn 2F, Amaterasu City, in the extra chapter.

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

Definition in file wstag930.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 14 of file wstag930.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8F3

Definition at line 15 of file wstag930.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x1A4

Definition at line 16 of file wstag930.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< SHOP1BGM: the inns, shops and towers

< SHOP1BGM: the inns, shops and towers

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

Definition at line 23 of file wstag930.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, 0x140, 0x100, 0, 0, 0x160, 0x1FF },
{ 0x140, 0x100, 0x14A, 0x100, 0x28, 0, 0x170, 0x1FF },
{ 0x140, 0x100, 0x154, 0x100, 0x50, 0, 0x160, 0x1FE },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 41 of file wstag930.c.

Referenced by setupStage().

◆ actor0Talks

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

Definition at line 55 of file wstag930.c.

◆ actor1Talks

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

Definition at line 59 of file wstag930.c.

◆ actor2Talks

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

Definition at line 63 of file wstag930.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x28, 4, 135, 212, 1 }

Definition at line 67 of file wstag930.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x29, 5, 173, 155, 1 }

Definition at line 68 of file wstag930.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x2A, 6, 56, 193, 1 }

Definition at line 69 of file wstag930.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0xDD, 7, 184, 173, 7 }

Definition at line 70 of file wstag930.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0xDE, 8, 143, 240, 7 }

Definition at line 71 of file wstag930.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , ((void *)0) , 0xDF, 9, 64, 224, 7 }

Definition at line 72 of file wstag930.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag930.c:67
FieldActorEntry actor5
Definition wstag930.c:72
FieldActorEntry actor2
Definition wstag930.c:69
FieldActorEntry actor4
Definition wstag930.c:71
FieldActorEntry actor1
Definition wstag930.c:68
FieldActorEntry actor3
Definition wstag930.c:70

Definition at line 73 of file wstag930.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0, 2, 0, 1, 4, 0, 62, 115, 0, 0 },
{ 1, 0, 0x40, 2, 0, 2, 0, 1, 4, 0, 124, 173, 0, 0 },
{ 1, 0, 0x40, 2, 0, 2, 0, 1, 4, 0, 218, 227, 0, 0 },
{ 1, 0, 0x40, 2, 0, 2, 0, 1, 4, 0, 242, 146, 0, 0 },
{ 1, 0, 0x40, 2, 0, 2, 0, 1, 4, 0, 295, 210, 0, 0 },
{ 1, 0, 0x40, 2, 1, 2, 0, 1, 4, 0, 227, 130, 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 82 of file wstag930.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x279, 0xD8, 0x54, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 3, 0x100, 0xF6, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 3, 0xF0, 0xBF, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 4, 0x120, 0xF6, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 4, 0x12F, 0xAE, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 91 of file wstag930.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map and actors, playing SHOP1BGM.
Definition wstag930.c:23

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 99 of file wstag930.c.