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

WSTAG947: Forest Inn BF, 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 wstag947.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x914
 
#define STAGE_FILE_8   0x239
 
#define STAGE_ARCHIVE   0x915
 

Functions

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

Variables

ActorImage stageImages []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x34, 4, 241, 201, 5 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x171, 5, 192, 633, 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

WSTAG947: Forest Inn BF, East Sector, in the extra chapter.

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

Definition in file wstag947.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 14 of file wstag947.c.

◆ STAGE_FILE

#define STAGE_FILE   0x914

Definition at line 15 of file wstag947.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x239

Definition at line 16 of file wstag947.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x915

Definition at line 17 of file wstag947.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< ENV_0009: the Forest Inn's basement

< ENV_0009: the Forest Inn's basement

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

Definition at line 25 of file wstag947.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, 0x15E, 0x138, 0x78, 0x38, 0x160, 0x1FF },
{ 0x140, 0x100, 0x166, 0x14C, 0x98, 0x4C, 0x170, 0x1FF },
}

Definition at line 43 of file wstag947.c.

Referenced by setupStage().

◆ actor0Talks

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

Definition at line 53 of file wstag947.c.

◆ actor1Talks

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

Definition at line 57 of file wstag947.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x34, 4, 241, 201, 5 }

Definition at line 61 of file wstag947.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x171, 5, 192, 633, 1 }

Definition at line 62 of file wstag947.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag947.c:61
FieldActorEntry actor1
Definition wstag947.c:62

Definition at line 63 of file wstag947.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x34, 2, 0, 7, 4, 0, 97, 134, 0, 0 },
{ 1, 0, 0x40, 2, 0x35, 2, 0, 7, 4, 0, 137, 114, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 321, 137, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 7, 4, 0, 577, 313, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 7, 4, 0, 497, 272, 0, 0 },
{ 1, 0, 0x40, 6, 0x34, 2, 0, 7, 4, 0, 167, 516, 0, 0 },
{ 1, 0, 0x40, 6, 0x35, 2, 0, 7, 4, 0, 187, 293, 0, 0 },
{ 1, 0, 0x40, 6, 0x36, 2, 0, 7, 4, 0, 307, 233, 0, 0 },
{ 1, 0, 0x40, 4, 0, 0, 0, 0, 0, 0, 276, 208, 242, 0 },
{ 1, 0, 0x40, 4, 1, 0, 0, 0, 0, 0, 51, 156, 208, 0 },
{ 1, 0, 0x40, 4, 2, 0, 0, 0, 0, 0, 425, 290, 314, 0 },
{ 1, 0, 0x40, 4, 3, 0, 0, 0, 0, 0, 421, 428, 438, 0 },
{ 1, 0, 0x40, 4, 4, 0, 0, 0, 0, 0, 423, 392, 429, 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 68 of file wstag947.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x292, 0x156, 0x1B0, 3, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 84 of file wstag947.c.

Referenced by setupStage().

◆ stageFuncs

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