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

WSTAG415: Deeper Crevice, East Sector. More...

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

Go to the source code of this file.

Macros

#define BG_ARCHIVE   0x75E
 The files of the background, which the versions number differently.
 
#define BG_FILE   0x769
 
#define STAGE_CHILDREN_SIZE   0xC
 
#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)
 
#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)
 
#define STAGE_FILE   0x75E
 

Functions

s32 stepFallBody (StageBody *body, AnimFrame *frames, s32 depth)
 Steps the looping animation of a faller's StageBody, returning its frame.
 
void drawFaller (StageFaller *task, Layer *layer)
 Draws a StageFaller (a layer callback)
 
void updateFaller (StageFaller *task)
 Updates a StageFaller of kind key1: it falls from the start of its updateFallerParams with their speed and gravity, bounces once off their floorY (if they bounce), and ends below the screen.
 
static Task * createFaller (s32 id, s32 kind)
 Creates the task of updateFaller with the given id, of kind KIND (its updateFallerParams)
 
Task * createCommand816 (s32 id)
 The fallers of kinds 0 to 9.
 
Task * createCommand817 (s32 id)
 Command 817 of the event scripts: a thing that falls in event 150's earthquake (kind 1)
 
Task * createCommand818 (s32 id)
 Command 818 of the event scripts: a thing that falls in event 150's earthquake (kind 2)
 
Task * createCommand819 (s32 id)
 Command 819 of the event scripts: a thing that falls in event 150's earthquake (kind 3)
 
Task * createCommand820 (s32 id)
 Command 820 of the event scripts: a thing that falls in event 150's earthquake (kind 4)
 
Task * createCommand821 (s32 id)
 Command 821 of the event scripts: a thing that falls in event 150's earthquake (kind 5)
 
Task * createCommand822 (s32 id)
 Command 822 of the event scripts: a thing that falls in event 150's earthquake (kind 6)
 
Task * createCommand823 (s32 id)
 Command 823 of the event scripts: a thing that falls in event 150's earthquake (kind 7)
 
Task * createCommand824 (s32 id)
 Command 824 of the event scripts: a thing that falls in event 150's earthquake (kind 8)
 
Task * createCommand825 (s32 id)
 Command 825 of the event scripts: the last of the ten things that fall in event 150's earthquake (kind 9)
 
s32 stepMoverBody (StageBody *body, AnimFrame *frames, s32 depth)
 Steps the animation of the mover's StageBody, holding its last frame, and returns the frame.
 
void updateMover (StageMover *task)
 Updates a StageMover: falls in mode 1 and plays an animation in modes 2 to 4.
 
void handleCommand811 (StageMover *task, s32 id)
 Handles the events 0x331 to 0x334 sent to a StageMover.
 
Task * createCommand811 (s32 id)
 Creates the task of updateMover with the given id, kind 0.
 
Task * createMover (s32 id)
 Creates the mover of event 151, where the Digimon gets away (updateMover), already falling (mode 1)
 
void drawScroller (StageScroller *task)
 Draws a StageScroller: each image twice, the second 0x200 left and 0x100 down.
 
void updateScroller (StageScroller *task)
 Loads the images of a StageScroller and scrolls it, slowing down to a stop in substate 1.
 
void handleCommand812 (Task *task, s32 id)
 Sets the substate of the task to 1 when the id is 0x336.
 
Task * createScroller (s32 kind)
 Creates the task of updateScroller (id 0x32C) of the given kind.
 
void updateStage (StageTask *task, void **children)
 Creates the event objects of progress 6, which depend on flag 0x4018.
 
void endEvent150 (void)
 After event 150, with the player: starts the stage's event battle 0 and sets flag 0x4018.
 
void setupStage (void)
 Sets the stage up: its map, actors, battles and events, playing BGM_0011.
 

Variables

StageFallParams updateFallerParams []
 Defined below, after the code that uses them.
 
AnimFrame updateMoverFrames0 []
 
AnimFrame updateMoverFrames1 []
 
AnimFrame updateMoverFrames2 []
 
s16 script150 []
 
s16 script151 []
 
AnimFrame updateFallerParams_0 []
 
AnimFrame updateFallerParams_1 []
 
AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area0Battles
 
AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area1Battles
 
AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area2Battles
 
AreaBattle area3Battle0 = { 323, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }
 
BattleList area3Battles
 
FieldBattles stageBattles []
 
ActorImage stageImages []
 
FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 1, 4, 0, 0, 7 }
 
FieldActorEntry * stageActors []
 
StageTile stageObjects []
 The tables and color setupStage gives FIELDSTG_state (FieldState)
 
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

WSTAG415: Deeper Crevice, East Sector.

The gondola ride to South Sector.

Definition in file wstag415.c.

Macro Definition Documentation

◆ BG_ARCHIVE

#define BG_ARCHIVE   0x75E

The files of the background, which the versions number differently.

Definition at line 18 of file wstag415.c.

◆ BG_FILE

#define BG_FILE   0x769

Definition at line 19 of file wstag415.c.

◆ STAGE_CHILDREN_SIZE

#define STAGE_CHILDREN_SIZE   0xC

Definition at line 467 of file wstag415.c.

◆ STAGE_TEXT

#define STAGE_TEXT   TEXT_FILE(TEXT_TALKS_06)

Definition at line 481 of file wstag415.c.

◆ EVENT_TEXT_FILE

#define EVENT_TEXT_FILE   (TEXT_EVENTS_400 - 1)

Definition at line 482 of file wstag415.c.

◆ STAGE_FILE

#define STAGE_FILE   0x75E

Definition at line 483 of file wstag415.c.

Function Documentation

◆ stepFallBody()

s32 stepFallBody ( StageBody *  body,
AnimFrame *  frames,
s32  depth 
)

Steps the looping animation of a faller's StageBody, returning its frame.

Definition at line 23 of file wstag415.c.

Referenced by stepFallBody(), and updateFaller().

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

◆ drawFaller()

void drawFaller ( StageFaller *  task,
Layer *  layer 
)

Draws a StageFaller (a layer callback)

Definition at line 48 of file wstag415.c.

Referenced by updateFaller().

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

◆ updateFaller()

void updateFaller ( StageFaller *  task)

Updates a StageFaller of kind key1: it falls from the start of its updateFallerParams with their speed and gravity, bounces once off their floorY (if they bounce), and ends below the screen.

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

Definition at line 66 of file wstag415.c.

Referenced by createFaller().

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

◆ createFaller()

static Task * createFaller ( s32  id,
s32  kind 
)
inlinestatic

Creates the task of updateFaller with the given id, of kind KIND (its updateFallerParams)

Definition at line 110 of file wstag415.c.

Referenced by createCommand816(), createCommand817(), createCommand818(), createCommand819(), createCommand820(), createCommand821(), createCommand822(), createCommand823(), createCommand824(), and createCommand825().

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

◆ createCommand816()

Task * createCommand816 ( s32  id)

The fallers of kinds 0 to 9.

Definition at line 118 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand817()

Task * createCommand817 ( s32  id)

Command 817 of the event scripts: a thing that falls in event 150's earthquake (kind 1)

Definition at line 123 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand818()

Task * createCommand818 ( s32  id)

Command 818 of the event scripts: a thing that falls in event 150's earthquake (kind 2)

Definition at line 128 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand819()

Task * createCommand819 ( s32  id)

Command 819 of the event scripts: a thing that falls in event 150's earthquake (kind 3)

Definition at line 133 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand820()

Task * createCommand820 ( s32  id)

Command 820 of the event scripts: a thing that falls in event 150's earthquake (kind 4)

Definition at line 138 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand821()

Task * createCommand821 ( s32  id)

Command 821 of the event scripts: a thing that falls in event 150's earthquake (kind 5)

Definition at line 143 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand822()

Task * createCommand822 ( s32  id)

Command 822 of the event scripts: a thing that falls in event 150's earthquake (kind 6)

Definition at line 148 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand823()

Task * createCommand823 ( s32  id)

Command 823 of the event scripts: a thing that falls in event 150's earthquake (kind 7)

Definition at line 153 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand824()

Task * createCommand824 ( s32  id)

Command 824 of the event scripts: a thing that falls in event 150's earthquake (kind 8)

Definition at line 158 of file wstag415.c.

Here is the call graph for this function:

◆ createCommand825()

Task * createCommand825 ( s32  id)

Command 825 of the event scripts: the last of the ten things that fall in event 150's earthquake (kind 9)

Definition at line 166 of file wstag415.c.

Here is the call graph for this function:

◆ stepMoverBody()

s32 stepMoverBody ( StageBody *  body,
AnimFrame *  frames,
s32  depth 
)

Steps the animation of the mover's StageBody, holding its last frame, and returns the frame.

Definition at line 171 of file wstag415.c.

Referenced by stepMoverBody(), and updateMover().

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

◆ updateMover()

void updateMover ( StageMover *  task)

Updates a StageMover: falls in mode 1 and plays an animation in modes 2 to 4.

Definition at line 196 of file wstag415.c.

Referenced by createCommand811(), and createMover().

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

◆ handleCommand811()

void handleCommand811 ( StageMover *  task,
s32  id 
)

Handles the events 0x331 to 0x334 sent to a StageMover.

Definition at line 301 of file wstag415.c.

◆ createCommand811()

Task * createCommand811 ( s32  id)

Creates the task of updateMover with the given id, kind 0.

Definition at line 336 of file wstag415.c.

Here is the call graph for this function:

◆ createMover()

Task * createMover ( s32  id)

Creates the mover of event 151, where the Digimon gets away (updateMover), already falling (mode 1)

Definition at line 347 of file wstag415.c.

Referenced by updateStage().

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

◆ drawScroller()

void drawScroller ( StageScroller *  task)

Draws a StageScroller: each image twice, the second 0x200 left and 0x100 down.

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

Definition at line 355 of file wstag415.c.

Referenced by updateScroller().

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

◆ updateScroller()

void updateScroller ( StageScroller *  task)

Loads the images of a StageScroller and scrolls it, slowing down to a stop in substate 1.

Definition at line 375 of file wstag415.c.

Referenced by createScroller().

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

◆ handleCommand812()

void handleCommand812 ( Task *  task,
s32  id 
)

Sets the substate of the task to 1 when the id is 0x336.

Definition at line 429 of file wstag415.c.

◆ createScroller()

Task * createScroller ( s32  kind)

Creates the task of updateScroller (id 0x32C) of the given kind.

Definition at line 436 of file wstag415.c.

Referenced by updateStage().

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

◆ updateStage()

void updateStage ( StageTask *  task,
void **  children 
)

Creates the event objects of progress 6, which depend on flag 0x4018.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

Definition at line 444 of file wstag415.c.

Here is the call graph for this function:

◆ endEvent150()

void endEvent150 ( void  )

After event 150, with the player: starts the stage's event battle 0 and sets flag 0x4018.

< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40

< action: FIELDSTG_battleFuncs.startEventBattle

Definition at line 471 of file wstag415.c.

◆ setupStage()

void setupStage ( void  )

Sets the stage up: its map, actors, battles and events, playing BGM_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.

< BGM_0011: the Undersea Base (Magasta), and the Deeper Crevice's gondola

< BGM_0011: the Undersea Base (Magasta), and the Deeper Crevice's gondola

Definition at line 486 of file wstag415.c.

Variable Documentation

◆ updateFallerParams

StageFallParams updateFallerParams
Initial value:
= {
{ updateFallerParams_0, -0x20, 230, 0, 0x180, 88, 0 },
{ updateFallerParams_1, 0, 230, 0x1C2, 0x200, 72, 4 },
{ updateFallerParams_0, 32, 230, 0x19A, 0x180, 88, 8 },
{ updateFallerParams_1, 64, 230, 0, 0x200, 72, 0 },
{ updateFallerParams_1, 80, 230, 0, 0x200, 72, 0 },
{ updateFallerParams_0, 16, 230, 0, 96, 88, 0 },
{ updateFallerParams_1, 48, 230, 0x1CC, 128, 72, 4 },
{ updateFallerParams_0, 80, 230, 0x1A4, 96, 88, 8 },
{ updateFallerParams_1, 112, 230, 0, 128, 72, 0 },
{ updateFallerParams_1, 140, 230, 0, 128, 72, 0 },
}
AnimFrame updateFallerParams_0[]
Definition wstag415.c:590
AnimFrame updateFallerParams_1[]
Definition wstag415.c:594

Defined below, after the code that uses them.

Definition at line 598 of file wstag415.c.

Referenced by updateFaller().

◆ updateMoverFrames0

AnimFrame updateMoverFrames0
Initial value:
= {
{ 50, 5 }, { 52, 5 }, { 53, 5 }, { 54, 40 },
{ 55, 8 }, { 56, 8 }, { 57, 10 }, { 58, 12 },
{ 59, 180 }, { 255, 0 },
}

Definition at line 610 of file wstag415.c.

Referenced by handleCommand811(), and updateMover().

◆ updateMoverFrames1

AnimFrame updateMoverFrames1
Initial value:
= {
{ 60, 4 }, { 61, 4 }, { 62, 0x3E7 }, { 255, 0 },
}

Definition at line 615 of file wstag415.c.

Referenced by handleCommand811(), and updateMover().

◆ updateMoverFrames2

AnimFrame updateMoverFrames2
Initial value:
= {
{ 1, 4 }, { 2, 4 }, { 3, 4 }, { 4, 4 },
{ 5, 4 }, { 6, 4 }, { 7, 4 }, { 8, 4 },
{ 9, 4 }, { 10, 4 }, { 11, 4 }, { 12, 4 },
{ 13, 4 }, { 14, 4 }, { 15, 4 }, { 16, 4 },
{ 17, 4 }, { 18, 4 }, { 19, 4 }, { 20, 4 },
{ 21, 4 }, { 22, 4 }, { 23, 4 }, { 24, 4 },
{ 25, 4 }, { 26, 4 }, { 27, 4 }, { 28, 4 },
{ 29, 4 }, { 30, 4 }, { 31, 4 }, { 32, 4 },
{ 33, 4 }, { 34, 4 }, { 35, 4 }, { 36, 4 },
{ 37, 4 }, { 38, 4 }, { 39, 4 }, { 40, 4 },
{ 41, 4 }, { 42, 4 }, { 43, 4 }, { 44, 4 },
{ 45, 4 }, { 46, 4 }, { 47, 4 }, { 255, 0x3E7 },
}

Definition at line 618 of file wstag415.c.

Referenced by handleCommand811(), and updateMover().

◆ script150

s16 script150[]

Definition at line 502 of file wstag415.c.

◆ script151

s16 script151[]
Initial value:
= {
0x601, 1 , 0xD8 , 0x175 ,
0x100, 1 , 0x114 , 0x157 ,
0x101, 1 , 1 , 1 ,
0x101, 0x32C , 0x336 , 1 ,
0x300, 6 ,
0x300, 0x54 ,
0x101, 0x32B , 0x334 , 1 ,
0x300, 0x9C ,
0x600, 0 , 1 ,
0x300, 0x1E ,
0x200, 0 , 2 , 1 , 2 ,
0x301 ,
0x300, 0x78 ,
0x200, 0 , 1 , 1 , 4 ,
0x101, 0x32D , 0x37D , 1 ,
0x301 ,
0x101, 0x323 , 0x325 , 1 ,
0x300, 0x3C ,
0x101, 0x323 , 0x326 , 1 ,
0x300, 0x3C ,
0x304, 0x232 , 0x1EF , 0xB9 , 1 ,
0 ,
}

Definition at line 566 of file wstag415.c.

◆ updateFallerParams_0

AnimFrame updateFallerParams_0[]
Initial value:
= {
{ 70, 8 }, { 71, 8 }, { 72, 8 }, { 73, 8 },
{ 255, 0 },
}

Definition at line 590 of file wstag415.c.

◆ updateFallerParams_1

AnimFrame updateFallerParams_1[]
Initial value:
= {
{ 74, 8 }, { 75, 8 }, { 76, 8 }, { 77, 8 },
{ 255, 0 },
}

Definition at line 594 of file wstag415.c.

◆ area0Battle0

AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 632 of file wstag415.c.

◆ area0Battle1

AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 633 of file wstag415.c.

◆ area0Battle2

AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 634 of file wstag415.c.

◆ area0Battle3

AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 635 of file wstag415.c.

◆ area0Battle4

AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 636 of file wstag415.c.

◆ area0Battle5

AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 637 of file wstag415.c.

◆ area0Battle6

AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 638 of file wstag415.c.

◆ area0Battle7

AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 639 of file wstag415.c.

◆ area0Battles

BattleList area0Battles
Initial value:
= {
0,
}
AreaBattle area0Battle7
Definition wstag415.c:639
AreaBattle area0Battle1
Definition wstag415.c:633
AreaBattle area0Battle6
Definition wstag415.c:638
AreaBattle area0Battle3
Definition wstag415.c:635
AreaBattle area0Battle5
Definition wstag415.c:637
AreaBattle area0Battle0
Definition wstag415.c:632
AreaBattle area0Battle2
Definition wstag415.c:634
AreaBattle area0Battle4
Definition wstag415.c:636

Definition at line 640 of file wstag415.c.

◆ area1Battle0

AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 645 of file wstag415.c.

◆ area1Battle1

AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 646 of file wstag415.c.

◆ area1Battle2

AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 647 of file wstag415.c.

◆ area1Battle3

AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 648 of file wstag415.c.

◆ area1Battle4

AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 649 of file wstag415.c.

◆ area1Battle5

AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 650 of file wstag415.c.

◆ area1Battle6

AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 651 of file wstag415.c.

◆ area1Battle7

AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 652 of file wstag415.c.

◆ area1Battles

BattleList area1Battles
Initial value:
= {
0,
}
AreaBattle area1Battle6
Definition wstag415.c:651
AreaBattle area1Battle2
Definition wstag415.c:647
AreaBattle area1Battle4
Definition wstag415.c:649
AreaBattle area1Battle5
Definition wstag415.c:650
AreaBattle area1Battle3
Definition wstag415.c:648
AreaBattle area1Battle0
Definition wstag415.c:645
AreaBattle area1Battle1
Definition wstag415.c:646
AreaBattle area1Battle7
Definition wstag415.c:652

Definition at line 653 of file wstag415.c.

◆ area2Battle0

AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 658 of file wstag415.c.

◆ area2Battle1

AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 659 of file wstag415.c.

◆ area2Battle2

AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 660 of file wstag415.c.

◆ area2Battle3

AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 661 of file wstag415.c.

◆ area2Battle4

AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 662 of file wstag415.c.

◆ area2Battle5

AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 663 of file wstag415.c.

◆ area2Battle6

AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 664 of file wstag415.c.

◆ area2Battle7

AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 665 of file wstag415.c.

◆ area2Battles

BattleList area2Battles
Initial value:
= {
0,
}
AreaBattle area2Battle7
Definition wstag415.c:665
AreaBattle area2Battle6
Definition wstag415.c:664
AreaBattle area2Battle0
Definition wstag415.c:658
AreaBattle area2Battle4
Definition wstag415.c:662
AreaBattle area2Battle2
Definition wstag415.c:660
AreaBattle area2Battle1
Definition wstag415.c:659
AreaBattle area2Battle5
Definition wstag415.c:663
AreaBattle area2Battle3
Definition wstag415.c:661

Definition at line 666 of file wstag415.c.

◆ area3Battle0

AreaBattle area3Battle0 = { 323, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) }

Definition at line 671 of file wstag415.c.

◆ area3Battle1

AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 672 of file wstag415.c.

◆ area3Battle2

AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 673 of file wstag415.c.

◆ area3Battle3

AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 674 of file wstag415.c.

◆ area3Battle4

AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 675 of file wstag415.c.

◆ area3Battle5

AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 676 of file wstag415.c.

◆ area3Battle6

AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 677 of file wstag415.c.

◆ area3Battle7

AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) }

Definition at line 678 of file wstag415.c.

◆ area3Battles

BattleList area3Battles
Initial value:
= {
0,
}
AreaBattle area3Battle4
Definition wstag415.c:675
AreaBattle area3Battle3
Definition wstag415.c:674
AreaBattle area3Battle0
Definition wstag415.c:671
AreaBattle area3Battle2
Definition wstag415.c:673
AreaBattle area3Battle1
Definition wstag415.c:672
AreaBattle area3Battle6
Definition wstag415.c:677
AreaBattle area3Battle5
Definition wstag415.c:676
AreaBattle area3Battle7
Definition wstag415.c:678

Definition at line 679 of file wstag415.c.

◆ stageBattles

FieldBattles stageBattles[]
Initial value:
= {
}
BattleList area3Battles
Definition wstag415.c:679
BattleList area1Battles
Definition wstag415.c:653
BattleList area2Battles
Definition wstag415.c:666
BattleList area0Battles
Definition wstag415.c:640

Definition at line 684 of file wstag415.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 },
{ 0x1C0, 0x100, 0x1CC, 0x150, 0x230, 0x50, 0x160, 0x1FF },
}

Definition at line 687 of file wstag415.c.

Referenced by setupStage().

◆ actor0

FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 1, 4, 0, 0, 7 }

Definition at line 696 of file wstag415.c.

◆ stageActors

FieldActorEntry* stageActors[]
Initial value:
= {
((void *)0) ,
}
FieldActorEntry actor0
Definition wstag415.c:696

Definition at line 697 of file wstag415.c.

Referenced by setupStage().

◆ stageObjects

StageTile stageObjects[]
Initial value:
= {
{ 1, 0, 0x6E, 6, 0, 0, 0, 0, 0, 0, 225, 318, 0, 0 },
{ 1, 1, 0x94, 4, 0x32, 0, 0, 0, 0, 0, 0, -50, 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 701 of file wstag415.c.

Referenced by setupStage().

◆ stageFuncs

void(* stageFuncs[])(void) ( void  )
Initial value:
= {
}
void setupStage(void)
Sets the stage up: its map, actors, battles and events, playing BGM_0011.
Definition wstag415.c:486

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 706 of file wstag415.c.

◆ stageEvents

FieldEvent stageEvents[]
Initial value:
= {
{ 150, script150, ( ( 0x136 - 1) << 16 | ( 4 )), ((void *)0) , endEvent150 },
{ 151, script151, ( ( 0x136 - 1) << 16 | ( 5 )), ((void *)0) , ((void *)0) },
{ -1, ((void *)0) , 0, ((void *)0) , ((void *)0) },
}
void endEvent150(void)
After event 150, with the player: starts the stage's event battle 0 and sets flag 0x4018.
Definition wstag415.c:471
s16 script150[]
Definition wstag415.c:502
s16 script151[]
Definition wstag415.c:566

Definition at line 709 of file wstag415.c.

Referenced by setupStage().