|
Digimon World 3 decomp
The European version, SLES_039.36
|
WSTAG750: Chamber Room, North Sector: the emergency Matrix Chamber. More...
#include "common.h"#include "field/stage.h"#include "common/step_animation_once.inc.c"#include "common/reset_tile_effect.inc.c"#include "common/create_tile_effect.inc.c"#include "common/start_stage.inc.c"#include "common/step_animation.inc.c"#include "common/draw_stage_effect.inc.c"#include "common/is_on_screen.inc.c"#include "common/update_stage_effect.inc.c"#include "common/create_stage_effect.inc.c"Go to the source code of this file.
Macros | |
| #define | STAGE_CHILDREN_SIZE 0xC |
| #define | STAGE_TEXT TEXT_FILE(TEXT_TALKS_02) |
| #define | EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1) |
| #define | STAGE_FILE 0x6C1 |
Functions | |
| void | updateTileEffect (StageTileEffect *task) |
| Moves its map objects to (x, y) and animates them when the substate is set to 1. | |
| void | handleCommand846 (StageTileEffect *task, s32 id) |
| Starts the effect at the place of map 0x335. | |
| void | updateStage (StageTask *task, void **children) |
| Creates the stage's effect, the event object of story progress 0x20 that applies, and another object. | |
| void | endEvent820 (void) |
| After event 820, with Chamber Officer: moves the story on to STORY_REAL_WORLD. | |
| void | endEvent860 (void) |
| After event 860, with Chamber Office: keeps it from playing again. | |
| void | endEvent883 (void) |
| After event 883, with Chamber Officer: keeps it from playing again. | |
| void | endEvent884 (void) |
| After event 884, with the player: keeps it from playing again. | |
| void | endEvent886 (void) |
| After event 886, with the player: moves the story on to STORY_NETWORK_OFFLINE. | |
| void | endEvent1245 (void) |
| After event 1245, with Guardromon: applies 0x7C0A, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1) | |
| void | setupStage (void) |
| Sets the stage up: its map, actors and events, playing the ambience ENV_0024. | |
WSTAG750: Chamber Room, North Sector: the emergency Matrix Chamber.
Its gates lead to the Real World and the Ice Dungeon (WSTAG735); the trip to the Real World (its 180 seconds, the Juggernaut taken) plays here.
Definition in file wstag750.c.
| #define STAGE_CHILDREN_SIZE 0xC |
Definition at line 147 of file wstag750.c.
| #define STAGE_TEXT TEXT_FILE(TEXT_TALKS_02) |
Definition at line 193 of file wstag750.c.
| #define EVENT_TEXT_FILE (TEXT_EVENTS_700 - 1) |
Definition at line 194 of file wstag750.c.
| #define STAGE_FILE 0x6C1 |
Definition at line 195 of file wstag750.c.
| void updateTileEffect | ( | StageTileEffect * | task | ) |
Moves its map objects to (x, y) and animates them when the substate is set to 1.
Definition at line 21 of file wstag750.c.
| void handleCommand846 | ( | StageTileEffect * | task, |
| s32 | id | ||
| ) |
Starts the effect at the place of map 0x335.
Definition at line 100 of file wstag750.c.
| void updateStage | ( | StageTask * | task, |
| void ** | children | ||
| ) |
Creates the stage's effect, the event object of story progress 0x20 that applies, and another object.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 118 of file wstag750.c.
| void endEvent820 | ( | void | ) |
After event 820, with Chamber Officer: moves the story on to STORY_REAL_WORLD.
Definition at line 156 of file wstag750.c.
| void endEvent860 | ( | void | ) |
After event 860, with Chamber Office: keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 161 of file wstag750.c.
| void endEvent883 | ( | void | ) |
After event 883, with Chamber Officer: keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 166 of file wstag750.c.
| void endEvent884 | ( | void | ) |
After event 884, with the player: keeps it from playing again.
< 0x40 0x00-0x40: FLAGS_00, GAME.flags02-flags40
Definition at line 171 of file wstag750.c.
| void endEvent886 | ( | void | ) |
After event 886, with the player: moves the story on to STORY_NETWORK_OFFLINE.
Definition at line 176 of file wstag750.c.
| void endEvent1245 | ( | void | ) |
After event 1245, with Guardromon: applies 0x7C0A, an action that does nothing (applyAction's mode changes 0x7C are only 0 and 1)
Definition at line 184 of file wstag750.c.
| void setupStage | ( | void | ) |
Sets the stage up: its map, actors and events, playing the ambience ENV_0024.
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_0024: the Chamber Rooms
< ENV_0024: the Chamber Rooms
< a cell's value: a direction (3 bits) and a StageSlot (5)
Definition at line 198 of file wstag750.c.
| AnimFrame* updateTileEffectFrames[] |
Defined below, after the code that uses them.
Definition at line 473 of file wstag750.c.
Referenced by updateTileEffect().
| StageEffectSpot updateStageSpots[] |
Definition at line 485 of file wstag750.c.
Referenced by updateStage().
| s8 tileEffectSortY[] |
Definition at line 476 of file wstag750.c.
Referenced by updateTileEffect().
| s8 tileEffectY[] |
Definition at line 479 of file wstag750.c.
Referenced by updateTileEffect().
| s16 tileEffectPlaces[][2] |
Definition at line 482 of file wstag750.c.
Referenced by handleCommand846().
| s16 script820[] |
Definition at line 217 of file wstag750.c.
| s16 script860[] |
Definition at line 300 of file wstag750.c.
| s16 script883[] |
Definition at line 350 of file wstag750.c.
| s16 script884[] |
Definition at line 399 of file wstag750.c.
| s16 script886[] |
Definition at line 418 of file wstag750.c.
| s16 script1245[] |
Definition at line 436 of file wstag750.c.
| AnimFrame updateTileEffectFrames_0[] |
Definition at line 456 of file wstag750.c.
| AnimFrame updateTileEffectFrames_2[] |
Definition at line 460 of file wstag750.c.
| AnimFrame updateTileEffectFrames_1[] |
Definition at line 467 of file wstag750.c.
| AnimFrame effectClutFrames[] |
Definition at line 488 of file wstag750.c.
| AnimFrame effectFrames[] |
Definition at line 492 of file wstag750.c.
| ActorImage stageImages[] |
Definition at line 500 of file wstag750.c.
Referenced by setupStage().
| u16 actor0Talk0Conditions[] = { (( 0 ) << 8 | ( 0 )) , 0, 0xFFFF } |
Definition at line 513 of file wstag750.c.
| u16 actor0Talk0Actions[] = { (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF } |
Definition at line 514 of file wstag750.c.
| u16 actor0Talk1Conditions[] = { (0x8000 | ( 0 ) << 9 | ( 0xC )), 0, (( 0 ) << 8 | ( 0 )) , 1, 0xFFFF } |
Definition at line 515 of file wstag750.c.
| u16 actor0Talk2Conditions[] |
Definition at line 516 of file wstag750.c.
| u16 actor0Talk2Actions[] = { (0x9000 | ( 0x45 )) , 1, (( 0x1C ) << 8 | ( 2 )) , 1, 0xFFFF } |
Definition at line 522 of file wstag750.c.
| u16 actor0Talk3Conditions[] |
Definition at line 523 of file wstag750.c.
| u16 actor1Talk0Actions[] = { 0x7A27, 1, 0xFFFF } |
Definition at line 529 of file wstag750.c.
| u16 actor2Talk0Actions[] = { (0x9000 | ( 0x19 )) , 1, 0xFFFF } |
Definition at line 530 of file wstag750.c.
| FieldTalk actor0Talks[] |
Definition at line 531 of file wstag750.c.
| FieldTalk actor1Talks[] |
Definition at line 538 of file wstag750.c.
| FieldTalk actor2Talks[] |
Definition at line 542 of file wstag750.c.
| FieldTalk actor3Talks[] |
Definition at line 546 of file wstag750.c.
| FieldTalk actor4Talks[] |
Definition at line 550 of file wstag750.c.
| FieldTalk actor5Talks[] |
Definition at line 554 of file wstag750.c.
| FieldTalk actor6Talks[] |
Definition at line 558 of file wstag750.c.
| FieldTalk actor7Talks[] |
Definition at line 562 of file wstag750.c.
| FieldTalk actor8Talks[] |
Definition at line 566 of file wstag750.c.
| FieldTalk actor9Talks[] |
Definition at line 570 of file wstag750.c.
| FieldTalk actor10Talks[] |
Definition at line 574 of file wstag750.c.
| FieldTalk actor11Talks[] |
Definition at line 578 of file wstag750.c.
| FieldTalk actor12Talks[] |
Definition at line 582 of file wstag750.c.
| FieldTalk actor13Talks[] |
Definition at line 586 of file wstag750.c.
| u16 actor0Conditions[] |
Definition at line 590 of file wstag750.c.
| u16 actor3Conditions[] = { (0x6000 | ( STORY_MOVIE_BATTLES )) , 1, 0xFFFF } |
Definition at line 595 of file wstag750.c.
| u16 actor4Conditions[] = { (0x6000 | ( STORY_NETWORK_OFFLINE )) , 1, 0xFFFF } |
Definition at line 596 of file wstag750.c.
| u16 actor5Conditions[] = { (0x6000 | ( STORY_WAY_TO_AMATERASU )) , 1, 0xFFFF } |
Definition at line 597 of file wstag750.c.
| u16 actor6Conditions[] = { (0x6000 | ( STORY_WHITE_ID_PASS )) , 1, 0xFFFF } |
Definition at line 598 of file wstag750.c.
| u16 actor7Conditions[] = { (0x6000 | ( STORY_BLACK_ID_PASS )) , 1, 0xFFFF } |
Definition at line 599 of file wstag750.c.
| u16 actor8Conditions[] = { (0x6000 | ( STORY_AMATERASU_BRIDGE )) , 1, 0xFFFF } |
Definition at line 600 of file wstag750.c.
| u16 actor9Conditions[] = { (0x6000 | ( STORY_PRESIDENT_ARRESTED )) , 1, 0xFFFF } |
Definition at line 601 of file wstag750.c.
| u16 actor10Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 602 of file wstag750.c.
| u16 actor11Conditions[] = { (0x6000 | ( STORY_GENBU_BADGE )) , 1, 0xFFFF } |
Definition at line 603 of file wstag750.c.
| u16 actor12Conditions[] = { (0x6000 | ( STORY_DE_KNOWLEDGE )) , 1, 0xFFFF } |
Definition at line 604 of file wstag750.c.
| u16 actor13Conditions[] = { (0x7000 | ( 0x1A )) , 1, 0xFFFF } |
Definition at line 605 of file wstag750.c.
| FieldActorEntry actor0 = { actor0Conditions, actor0Talks, 0xD, 4, 129, 281, 7 } |
Definition at line 606 of file wstag750.c.
| FieldActorEntry actor1 = { ((void *)0) , actor1Talks, 0x14, 5, 162, 473, 7 } |
Definition at line 607 of file wstag750.c.
| FieldActorEntry actor2 = { ((void *)0) , actor2Talks, 0x15, 6, 224, 441, 7 } |
Definition at line 608 of file wstag750.c.
| FieldActorEntry actor3 = { actor3Conditions, actor3Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 609 of file wstag750.c.
| FieldActorEntry actor4 = { actor4Conditions, actor4Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 610 of file wstag750.c.
| FieldActorEntry actor5 = { actor5Conditions, actor5Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 611 of file wstag750.c.
| FieldActorEntry actor6 = { actor6Conditions, actor6Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 612 of file wstag750.c.
| FieldActorEntry actor7 = { actor7Conditions, actor7Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 613 of file wstag750.c.
| FieldActorEntry actor8 = { actor8Conditions, actor8Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 614 of file wstag750.c.
| FieldActorEntry actor9 = { actor9Conditions, actor9Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 615 of file wstag750.c.
| FieldActorEntry actor10 = { actor10Conditions, actor10Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 616 of file wstag750.c.
| FieldActorEntry actor11 = { actor11Conditions, actor11Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 617 of file wstag750.c.
| FieldActorEntry actor12 = { actor12Conditions, actor12Talks, 0x23, 7, 306, 456, 7 } |
Definition at line 618 of file wstag750.c.
| FieldActorEntry actor13 = { actor13Conditions, actor13Talks, 0x9D, 8, 129, 281, 7 } |
Definition at line 619 of file wstag750.c.
| FieldActorEntry* stageActors[] |
| StageTile stageObjects[] |
The tables and color setupStage gives FIELDSTG_state (FieldState)
Definition at line 637 of file wstag750.c.
Referenced by setupStage().
| StageSlot stageSlots[] |
Definition at line 653 of file wstag750.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 658 of file wstag750.c.
| FieldEvent stageEvents[] |
Definition at line 661 of file wstag750.c.
Referenced by setupStage().