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

WSTAG922: Amaterasu Bridge, Central 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 wstag922.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   0x8E6
 
#define STAGE_FILE_8   0x198
 

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 actor0Talk0Actions []
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor2Talks []
 
u16 actor0Conditions [] = { (( 2 ) << 8 | ( 0x66 )) , 0, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 304, 160, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x25, 5, 736, 184, 1 }
 
FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x26, 6, 848, 240, 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

WSTAG922: Amaterasu Bridge, Central Sector, in the extra chapter.

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

Definition in file wstag922.c.

Macro Definition Documentation

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   4

Definition at line 11 of file wstag922.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 16 of file wstag922.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8E6

Definition at line 17 of file wstag922.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x198

Definition at line 18 of file wstag922.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 wstag922.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 wstag922.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 },
{ 0x140, 0x100, 0x168, 0x184, 0xA0, 0x84, 0x150, 0x1FF },
{ 0x180, 0x100, 0x180, 0x144, 0x100, 0x44, 0x160, 0x1FF },
{ 0x180, 0x100, 0x188, 0x144, 0x120, 0x44, 0x170, 0x1FF },
}

Definition at line 45 of file wstag922.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[]
Initial value:
= {
(( 2 ) << 8 | ( 0x66 )) , 1,
(0x8000 | ( 1 ) << 9 | ( 0x35 )), 1,
(0x7000 | ( 0x13 )) , 1,
0xFFFF ,
}

Definition at line 56 of file wstag922.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 1 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag922.c:56

Definition at line 62 of file wstag922.c.

◆ actor1Talks

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

Definition at line 66 of file wstag922.c.

◆ actor2Talks

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

Definition at line 70 of file wstag922.c.

◆ actor0Conditions

u16 actor0Conditions[] = { (( 2 ) << 8 | ( 0x66 )) , 0, 0xFFFF }

Definition at line 74 of file wstag922.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0x21, 4, 304, 160, 1 }

Definition at line 75 of file wstag922.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x25, 5, 736, 184, 1 }

Definition at line 76 of file wstag922.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x26, 6, 848, 240, 1 }

Definition at line 77 of file wstag922.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag922.c:75
FieldActorEntry actor2
Definition wstag922.c:77
FieldActorEntry actor1
Definition wstag922.c:76

Definition at line 78 of file wstag922.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 84 of file wstag922.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x60, 0x31C, 5, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x28C, 0x5E2, 0xE0, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 10 , 0x2E1, 0x1D0, 0x154, 7, 0, 1, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 10 , 0x2E1, 0xE0, 0x110, 7, 0, 1, 1 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 2 , 3, 0x110, 0x100, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 3 , 3, 0x120, 0xC8, 0, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 189 of file wstag922.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 wstag922.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 198 of file wstag922.c.

◆ stageEvents

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

Definition at line 201 of file wstag922.c.

Referenced by setupStage().