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

WSTAG296: Prison Tower, Amaterasu City. More...

#include "common.h"
#include "field/stage.h"
#include "common/update_stage.inc.c"
#include "common/start_stage.inc.c"
Include dependency graph for wstag296.c:

Go to the source code of this file.

Macros

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)
 
#define STAGE_FILE   0x543
 

Functions

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

Variables

ActorImage stageImages []
 
u16 actor0Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor1Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
u16 actor2Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor3Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor4Conditions [] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }
 
u16 actor5Conditions [] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }
 
FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 0x45, 4, 210, 74, 5 }
 
FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x46, 5, 178, 74, 7 }
 
FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x9D, 6, 146, 97, 7 }
 
FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x9E, 7, 210, 74, 5 }
 
FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0x9F, 8, 178, 74, 7 }
 
FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0x102, 9, 146, 97, 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

WSTAG296: Prison Tower, Amaterasu City.

On the Amaterasu server; its Asuka server twin is WSTAG295.

Definition in file wstag296.c.

Macro Definition Documentation

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_03)

Definition at line 16 of file wstag296.c.

◆ STAGE_FILE

#define STAGE_FILE   0x543

Definition at line 17 of file wstag296.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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.

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

< BGM_0029: the cities and their streets instead of their music while the story is at a crisis (Knightmon reprogrammed, the A.o.A's headquarters, the Amaterasu server's Oinkmon)

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

Definition at line 20 of file wstag296.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, 0x170, 0x1FF },
{ 0x140, 0x100, 0x148, 0x100, 0x20, 0, 0x170, 0x1FE },
{ 0x140, 0x100, 0x150, 0x100, 0x40, 0, 0x170, 0x1FD },
{ 0x140, 0x100, 0x158, 0x100, 0x60, 0, 0x170, 0x1FC },
{ 0x140, 0x100, 0x160, 0x100, 0x80, 0, 0x140, 0x1FB },
{ 0x140, 0x100, 0x168, 0x100, 0xA0, 0, 0x150, 0x1FB },
}

Definition at line 38 of file wstag296.c.

Referenced by setupStage().

◆ actor0Conditions

u16 actor0Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 52 of file wstag296.c.

◆ actor1Conditions

u16 actor1Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 53 of file wstag296.c.

◆ actor2Conditions

u16 actor2Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 54 of file wstag296.c.

◆ actor3Conditions

u16 actor3Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 55 of file wstag296.c.

◆ actor4Conditions

u16 actor4Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF }

Definition at line 56 of file wstag296.c.

◆ actor5Conditions

u16 actor5Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF }

Definition at line 57 of file wstag296.c.

◆ actor0

FieldActorEntry actor0 = { actor0Conditions, ((void *)0) , 0x45, 4, 210, 74, 5 }

Definition at line 58 of file wstag296.c.

◆ actor1

FieldActorEntry actor1 = { actor1Conditions, ((void *)0) , 0x46, 5, 178, 74, 7 }

Definition at line 59 of file wstag296.c.

◆ actor2

FieldActorEntry actor2 = { actor2Conditions, ((void *)0) , 0x9D, 6, 146, 97, 7 }

Definition at line 60 of file wstag296.c.

◆ actor3

FieldActorEntry actor3 = { actor3Conditions, ((void *)0) , 0x9E, 7, 210, 74, 5 }

Definition at line 61 of file wstag296.c.

◆ actor4

FieldActorEntry actor4 = { actor4Conditions, ((void *)0) , 0x9F, 8, 178, 74, 7 }

Definition at line 62 of file wstag296.c.

◆ actor5

FieldActorEntry actor5 = { actor5Conditions, ((void *)0) , 0x102, 9, 146, 97, 7 }

Definition at line 63 of file wstag296.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag296.c:58
FieldActorEntry actor5
Definition wstag296.c:63
FieldActorEntry actor2
Definition wstag296.c:60
FieldActorEntry actor4
Definition wstag296.c:62
FieldActorEntry actor1
Definition wstag296.c:59
FieldActorEntry actor3
Definition wstag296.c:61

Definition at line 64 of file wstag296.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 320, 53, 0, 0 },
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 384, 85, 0, 0 },
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 424, 104, 0, 0 },
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 455, 145, 0, 0 },
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 480, 180, 0, 0 },
{ 1, 0, 0x40, 2, 0x34, 2, 0, 3, 4, 0, 528, 205, 0, 0 },
{ 1, 0, 0x40, 2, 0x35, 2, 0, 3, 4, 0, 104, 68, 0, 0 },
{ 1, 0, 0x40, 2, 0x35, 2, 0, 3, 4, 0, 140, 69, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 104, 131, 0, 0 },
{ 1, 0, 0x40, 2, 0x36, 2, 0, 3, 4, 0, 198, 84, 0, 0 },
{ 1, 0, 0x40, 6, 0x32, 2, 0, 3, 4, 0, 382, 161, 0, 0 },
{ 1, 0, 0x40, 6, 0x33, 2, 0, 3, 6, 0, 403, 168, 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 73 of file wstag296.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x274, 0x70, 0xE4, 7, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 88 of file wstag296.c.

Referenced by setupStage().

◆ stageFuncs

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

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 92 of file wstag296.c.