|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG415: Deeper Crevice, East Sector. More...
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 [] |
WSTAG415: Deeper Crevice, East Sector.
The gondola ride to South Sector.
Definition in file wstag415.c.
| #define BG_ARCHIVE 0x75E |
The files of the background, which the versions number differently.
Definition at line 18 of file wstag415.c.
| #define BG_FILE 0x769 |
Definition at line 19 of file wstag415.c.
| #define STAGE_CHILDREN_SIZE 0xC |
Definition at line 467 of file wstag415.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_06) |
Definition at line 481 of file wstag415.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_400 - 1) |
Definition at line 482 of file wstag415.c.
| #define STAGE_FILE 0x75E |
Definition at line 483 of file wstag415.c.
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().
| void drawFaller | ( | StageFaller * | task, |
| Layer * | layer | ||
| ) |
Draws a StageFaller (a layer callback)
Definition at line 48 of file wstag415.c.
Referenced by 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().
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().
The fallers of kinds 0 to 9.
Definition at line 118 of file wstag415.c.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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().
| 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().
| void handleCommand811 | ( | StageMover * | task, |
| s32 | id | ||
| ) |
Handles the events 0x331 to 0x334 sent to a StageMover.
Definition at line 301 of file wstag415.c.
Creates the task of updateMover with the given id, kind 0.
Definition at line 336 of file wstag415.c.
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().
| 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().
| 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().
Sets the substate of the task to 1 when the id is 0x336.
Definition at line 429 of file wstag415.c.
Creates the task of updateScroller (id 0x32C) of the given kind.
Definition at line 436 of file wstag415.c.
Referenced by 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.
| 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.
| 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.
| StageFallParams updateFallerParams |
Defined below, after the code that uses them.
Definition at line 598 of file wstag415.c.
Referenced by updateFaller().
| AnimFrame updateMoverFrames0 |
Definition at line 610 of file wstag415.c.
Referenced by handleCommand811(), and updateMover().
| AnimFrame updateMoverFrames1 |
Definition at line 615 of file wstag415.c.
Referenced by handleCommand811(), and updateMover().
| AnimFrame updateMoverFrames2 |
Definition at line 618 of file wstag415.c.
Referenced by handleCommand811(), and updateMover().
| s16 script150[] |
Definition at line 502 of file wstag415.c.
| s16 script151[] |
Definition at line 566 of file wstag415.c.
| AnimFrame updateFallerParams_0[] |
Definition at line 590 of file wstag415.c.
| AnimFrame updateFallerParams_1[] |
Definition at line 594 of file wstag415.c.
| AreaBattle area0Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 632 of file wstag415.c.
| AreaBattle area0Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 633 of file wstag415.c.
| AreaBattle area0Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 634 of file wstag415.c.
| AreaBattle area0Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 635 of file wstag415.c.
| AreaBattle area0Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 636 of file wstag415.c.
| AreaBattle area0Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 637 of file wstag415.c.
| AreaBattle area0Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 638 of file wstag415.c.
| AreaBattle area0Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 639 of file wstag415.c.
| BattleList area0Battles |
Definition at line 640 of file wstag415.c.
| AreaBattle area1Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 645 of file wstag415.c.
| AreaBattle area1Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 646 of file wstag415.c.
| AreaBattle area1Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 647 of file wstag415.c.
| AreaBattle area1Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 648 of file wstag415.c.
| AreaBattle area1Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 649 of file wstag415.c.
| AreaBattle area1Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 650 of file wstag415.c.
| AreaBattle area1Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 651 of file wstag415.c.
| AreaBattle area1Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 652 of file wstag415.c.
| BattleList area1Battles |
Definition at line 653 of file wstag415.c.
| AreaBattle area2Battle0 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 658 of file wstag415.c.
| AreaBattle area2Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 659 of file wstag415.c.
| AreaBattle area2Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 660 of file wstag415.c.
| AreaBattle area2Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 661 of file wstag415.c.
| AreaBattle area2Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 662 of file wstag415.c.
| AreaBattle area2Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 663 of file wstag415.c.
| AreaBattle area2Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 664 of file wstag415.c.
| AreaBattle area2Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 665 of file wstag415.c.
| BattleList area2Battles |
Definition at line 666 of file wstag415.c.
| AreaBattle area3Battle0 = { 323, 10, (0x60000000 | ( 0x22 ) << 18 | ( 0 )) } |
Definition at line 671 of file wstag415.c.
| AreaBattle area3Battle1 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 672 of file wstag415.c.
| AreaBattle area3Battle2 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 673 of file wstag415.c.
| AreaBattle area3Battle3 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 674 of file wstag415.c.
| AreaBattle area3Battle4 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 675 of file wstag415.c.
| AreaBattle area3Battle5 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 676 of file wstag415.c.
| AreaBattle area3Battle6 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 677 of file wstag415.c.
| AreaBattle area3Battle7 = { 0, 0, (0x60000000 | ( 1 ) << 18 | ( 0 )) } |
Definition at line 678 of file wstag415.c.
| BattleList area3Battles |
Definition at line 679 of file wstag415.c.
| FieldBattles stageBattles[] |
| ActorImage stageImages[] |
Definition at line 687 of file wstag415.c.
Referenced by setupStage().
| FieldActorEntry actor0 = { ((void *)0) , ((void *)0) , 1, 4, 0, 0, 7 } |
Definition at line 696 of file wstag415.c.
| FieldActorEntry* stageActors[] |
Definition at line 697 of file wstag415.c.
Referenced by setupStage().
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 701 of file wstag415.c.
Referenced by setupStage().
| void(* stageFuncs[])(void) | ( | 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.
Definition at line 706 of file wstag415.c.
| FieldEvent stageEvents[] |
Definition at line 709 of file wstag415.c.
Referenced by setupStage().