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

WSTAG924: Digimon Lab, Amaterasu City, in the extra chapter. More...

Include dependency graph for wstag924.c:

Go to the source code of this file.

Macros

#define STAGE_TWEEN
 stageFuncs is a StageFuncs (stage.h)
 
#define MENU_TEXT   EXTRA_TEXT
 The text file of the menus.
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)
 
#define STAGE_FILE   0x8E7
 
#define STAGE_FILE_8   0x19C
 
#define STAGE_ARCHIVE   0x8E5
 
#define EVENT_TEXT_FILE   EXTRA_TEXT
 

Functions

void setupStage (void)
 Sets the stage up: its map, actors and events, playing the ambience ENV_0011.
 
void updateEvent1602 (StageListMenu *task, StageListMenuChildren *children)
 A list of up to eight options that each open a message.
 
void * startEvent1602 (void)
 Starts event 1602, the starters' digivolutions: a list of Kotemon, Monmon, Kumamon, Renamon, Patamon, Agumon and Guilmon that each open a message.
 
void updateEvent1604 (StageListMenu *task, StageListMenuChildren *children)
 A list of up to eight options that each open a message.
 
void * startEvent1604 (void)
 Starts event 1604, tips on raising partners: a list of topics (Raise efficiently, Techniques, Growth limits...) that each open a message.
 

Variables

s32 event1602WindowFrames []
 Defined below, after the code that uses them.
 
s32 event1604WindowFrames []
 MENU_SPRITES' frame of the list's window, by the number of options (5 to 8)
 
ActorImage stageImages []
 
u16 actor0Talk0Actions [] = { (0x9000 | ( 0x6E )) , 1, 0xFFFF }
 
u16 actor1Talk0Actions [] = { (0x9000 | ( 0x6D )) , 1, 0xFFFF }
 
u16 actor5Talk0Actions [] = { 0x7C00, 1, 0xFFFF }
 
FieldTalk actor0Talks []
 
FieldTalk actor1Talks []
 
FieldTalk actor5Talks []
 
FieldTalk actor6Talks []
 
FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 220, 232, 1 }
 
FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 187, 215, 1 }
 
FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0x59, 6, 300, 217, 5 }
 
FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x70, 7, 202, 241, 1 }
 
FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0x71, 8, 169, 224, 1 }
 
FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0xFE, 9, 399, 248, 1 }
 
FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x177, 0xA, 65, 263, 1 }
 
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.
 
FieldEvent stageEvents []
 

Detailed Description

WSTAG924: Digimon Lab, Amaterasu City, in the extra chapter.

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

Definition in file wstag924.c.

Macro Definition Documentation

◆ STAGE_TWEEN

#define STAGE_TWEEN

stageFuncs is a StageFuncs (stage.h)

Definition at line 8 of file wstag924.c.

◆ MENU_TEXT

#define MENU_TEXT   EXTRA_TEXT

The text file of the menus.

Definition at line 15 of file wstag924.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_08)

Definition at line 22 of file wstag924.c.

◆ STAGE_FILE

#define STAGE_FILE   0x8E7

Definition at line 23 of file wstag924.c.

◆ STAGE_FILE_8

#define STAGE_FILE_8   0x19C

Definition at line 24 of file wstag924.c.

◆ STAGE_ARCHIVE

#define STAGE_ARCHIVE   0x8E5

Definition at line 25 of file wstag924.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   EXTRA_TEXT

Definition at line 419 of file wstag924.c.

Function Documentation

◆ setupStage()

void setupStage ( void  )

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

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_0011: Asuka's Digimon Lab and Login Room

< ENV_0011: Asuka's Digimon Lab and Login Room

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

Definition at line 33 of file wstag924.c.

◆ updateEvent1602()

void updateEvent1602 ( StageListMenu *  task,
StageListMenuChildren *  children 
)

A list of up to eight options that each open a message.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

< what is unavailable

< the map, its objects and characters, and the menus

Definition at line 59 of file wstag924.c.

Referenced by startEvent1602().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startEvent1602()

void * startEvent1602 ( void  )

Starts event 1602, the starters' digivolutions: a list of Kotemon, Monmon, Kumamon, Renamon, Patamon, Agumon and Guilmon that each open a message.

Definition at line 180 of file wstag924.c.

Here is the call graph for this function:

◆ updateEvent1604()

void updateEvent1604 ( StageListMenu *  task,
StageListMenuChildren *  children 
)

A list of up to eight options that each open a message.

< SYSTEM02: a cursor moves

< SYSTEM00: a choice is taken

< SYSTEM01

< what is unavailable

< the map, its objects and characters, and the menus

Definition at line 185 of file wstag924.c.

Referenced by startEvent1604().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ startEvent1604()

void * startEvent1604 ( void  )

Starts event 1604, tips on raising partners: a list of topics (Raise efficiently, Techniques, Growth limits...) that each open a message.

Definition at line 306 of file wstag924.c.

Here is the call graph for this function:

Variable Documentation

◆ event1602WindowFrames

s32 event1602WindowFrames
Initial value:
= {
28, 27, 25, 36,
}

Defined below, after the code that uses them.

MENU_SPRITES' frame of the list's window, by the number of options (5 to 8)

Definition at line 426 of file wstag924.c.

Referenced by updateEvent1602().

◆ event1604WindowFrames

s32 event1604WindowFrames
Initial value:
= {
28, 27, 25, 36,
}

MENU_SPRITES' frame of the list's window, by the number of options (5 to 8)

Definition at line 430 of file wstag924.c.

Referenced by updateEvent1604().

◆ 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, 0x166, 0x178, 0x98, 0x78, 0x150, 0x1F8 },
{ 0x140, 0x100, 0x16E, 0x178, 0xB8, 0x78, 0x160, 0x1F8 },
{ 0x140, 0x100, 0x176, 0x178, 0xD8, 0x78, 0x170, 0x1F8 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0, 0, 0, 0, 0, 0, 0, 0 },
{ 0x140, 0x100, 0x152, 0x166, 0x48, 0x66, 0x150, 0x1F7 },
{ 0x140, 0x100, 0x140, 0x17E, 0, 0x7E, 0x160, 0x1F7 },
}

Definition at line 310 of file wstag924.c.

Referenced by setupStage().

◆ actor0Talk0Actions

u16 actor0Talk0Actions[] = { (0x9000 | ( 0x6E )) , 1, 0xFFFF }

Definition at line 325 of file wstag924.c.

◆ actor1Talk0Actions

u16 actor1Talk0Actions[] = { (0x9000 | ( 0x6D )) , 1, 0xFFFF }

Definition at line 326 of file wstag924.c.

◆ actor5Talk0Actions

u16 actor5Talk0Actions[] = { 0x7C00, 1, 0xFFFF }

Definition at line 327 of file wstag924.c.

◆ actor0Talks

FieldTalk actor0Talks[]
Initial value:
= {
{ ((void *)0) , actor0Talk0Actions, 0x23 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor0Talk0Actions[]
Definition wstag924.c:325

Definition at line 328 of file wstag924.c.

◆ actor1Talks

FieldTalk actor1Talks[]
Initial value:
= {
{ ((void *)0) , actor1Talk0Actions, 0x22 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor1Talk0Actions[]
Definition wstag924.c:326

Definition at line 332 of file wstag924.c.

◆ actor5Talks

FieldTalk actor5Talks[]
Initial value:
= {
{ ((void *)0) , actor5Talk0Actions, 0x24 },
{ ((void *)0) , ((void *)0) , 0 },
}
u16 actor5Talk0Actions[]
Definition wstag924.c:327

Definition at line 336 of file wstag924.c.

◆ actor6Talks

FieldTalk actor6Talks[]
Initial value:
= {
{ ((void *)0) , ((void *)0) , 0x25 },
{ ((void *)0) , ((void *)0) , 0 },
}

Definition at line 340 of file wstag924.c.

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , actor0Talks, 0x20, 4, 220, 232, 1 }

Definition at line 344 of file wstag924.c.

◆ actor1

FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x24, 5, 187, 215, 1 }

Definition at line 345 of file wstag924.c.

◆ actor2

FieldActorEntry actor2 = { ((void *)0) , ((void *)0) , 0x59, 6, 300, 217, 5 }

Definition at line 346 of file wstag924.c.

◆ actor3

FieldActorEntry actor3 = { ((void *)0) , ((void *)0) , 0x70, 7, 202, 241, 1 }

Definition at line 347 of file wstag924.c.

◆ actor4

FieldActorEntry actor4 = { ((void *)0) , ((void *)0) , 0x71, 8, 169, 224, 1 }

Definition at line 348 of file wstag924.c.

◆ actor5

FieldActorEntry actor5 = { ((void *)0) , actor5Talks, 0xFE, 9, 399, 248, 1 }

Definition at line 349 of file wstag924.c.

◆ actor6

FieldActorEntry actor6 = { ((void *)0) , actor6Talks, 0x177, 0xA, 65, 263, 1 }

Definition at line 350 of file wstag924.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag924.c:344
FieldActorEntry actor6
Definition wstag924.c:350
FieldActorEntry actor5
Definition wstag924.c:349
FieldActorEntry actor2
Definition wstag924.c:346
FieldActorEntry actor4
Definition wstag924.c:348
FieldActorEntry actor1
Definition wstag924.c:345
FieldActorEntry actor3
Definition wstag924.c:347

Definition at line 351 of file wstag924.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]

The tables and color setupStage gives FIELDSTG_state (FieldState)

Definition at line 361 of file wstag924.c.

Referenced by setupStage().

◆ stageSlots

StageSlot stageSlots[]
Initial value:
= {
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x273, 0x2C8, 0x24C, 3, 0x64, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 1 , 0x270, 0x410, 0x200, 1, 0, 0, 0 },
{ { { 0xFFFF , 0 }, { 0xFFFF , 0 } }, 0, 0, 0, 0, 0, 0, 0, 0 },
}

Definition at line 413 of file wstag924.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 418 of file wstag924.c.

Referenced by updateEvent1602(), and updateEvent1604().

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 1602, ((void *)0) , ( ( 0x159 - 1) << 16 | ( 1 )), startEvent1602, ((void *)0) },
{ 1604, ((void *)0) , ( ( 0x159 - 1) << 16 | ( 2 )), startEvent1604, ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void * startEvent1602(void)
Starts event 1602, the starters' digivolutions: a list of Kotemon, Monmon, Kumamon,...
Definition wstag924.c:180
void * startEvent1604(void)
Starts event 1604, tips on raising partners: a list of topics (Raise efficiently, Techniques,...
Definition wstag924.c:306

Definition at line 420 of file wstag924.c.

Referenced by setupStage().