|
Digimon World 3 decomp
The European version, SLES_039.36
|
WFIGHTTS.PRO: the battle test, a debug menu. More...
#include "battle/battle_mode.h"Go to the source code of this file.
Data Structures | |
| struct | BattleTestList |
| The fighters' and the cameras' lists (WFIGHTTS_fighterList, WFIGHTTS_cameraList) More... | |
| struct | BattleTestStageList |
| The stage list's task. More... | |
| struct | BattleTestMotionList |
| A fighter's motions, in the motion list (WFIGHTTS_motionList) More... | |
| struct | BattleTestEffectList |
| A fighter's effects, in the effect list (WFIGHTTS_effectList): each one plus 1, or just a 0 for a fighter without any. More... | |
| struct | BattleTestCursors |
| Where the motion and the effect lists are: the fighters they were made for, the list LEFT and RIGHT pick and the lists' cursors and scrolls. More... | |
| struct | BattleTestWindows |
| The fighter, motion and effect lists' windows, by list. More... | |
| struct | CameraListWindows |
| The camera list's windows: the partners' cameras and the enemies'. More... | |
| struct | BattleTestMotions |
| The motion list's task. More... | |
| struct | BattleTestEffects |
| The effect list's task. More... | |
| struct | BattleTest |
| The battle test (WFIGHTTS_battleTest). More... | |
| struct | BattleTestChildren |
| The battle test's children. More... | |
Functions | |
| void | WFIGHTTS_initLayers (void) |
| Sets up the display and the battle test's layers. | |
| void | WFIGHTTS_loadImages (void) |
| Loads the battle test's images into VRAM. | |
| void | WFIGHTTS_battleTest (BattleTest *task, BattleTestChildren *children) |
| The battle test: sets up the battle (setUpBattle), then runs its pages. | |
| BattleTestList * | WFIGHTTS_createFighterList (s32 *side, s32 *pick) |
| Starts the fighter list, which sets *SIDE and *PICK. | |
| BattleTestList * | WFIGHTTS_createCameraList (s32 *side, s32 *pick) |
| Starts the camera list, which sets *SIDE and *PICK. | |
| BattleTestStageList * | WFIGHTTS_createStageList (s32 *result) |
| Starts the stage list, which sets *RESULT. | |
| BattleTestMotions * | WFIGHTTS_createMotionList (s32 *side, s32 *motion) |
| Starts the motion list, which sets *SIDE and *MOTION. | |
| BattleTestEffects * | WFIGHTTS_createEffectList (s32 *side, s32 *effect) |
| Starts the effect list, which sets *SIDE and *EFFECT. | |
| void | WFIGHTTS_fighterList (BattleTestList *task, BattleTestWindows *windows) |
| The fighter list: the partners on the right and the enemies on the left, fourteen shown at a time (RIGHT and LEFT pick the list, UP and DOWN the fighter, ten at a time with SQUARE held), the cursor's one blinking; CROSS sets the side and the fighter, TRIANGLE the side to -1. | |
| void | WFIGHTTS_cameraList (BattleTestList *task, CameraListWindows *windows) |
| The camera list: the partner's 12 cameras on the right and the enemy's 3 on the left (RIGHT and LEFT pick the list, UP and DOWN the camera, ten at a time with R1 held); CROSS sets the side to 0 or 1 and the camera, TRIANGLE the side to -1. | |
| void | WFIGHTTS_stageList (BattleTestStageList *task, TextWindow **windows) |
| The fight stage list: 14 of the 55 stages at a time (UP and DOWN, ten at a time with SQUARE held); it sets *result to the stage, 1-55, or to -1. | |
| void | WFIGHTTS_motionList (BattleTestMotions *task, BattleTestWindows *windows) |
| The motion list: the partner's motions on the right and the enemy's on the left, fourteen shown at a time (RIGHT and LEFT pick the list, UP and DOWN the motion, ten at a time with SQUARE held); CROSS sets the side and the motion plus 1, TRIANGLE the side to -1. | |
| void | WFIGHTTS_effectList (BattleTestEffects *task, BattleTestWindows *windows) |
| The effect list, like the motion list: fills its lists (fillEffectLists), then CROSS sets the side and the effect, on any but a fighter's "none", while the names are drawn (drawEffectNames). | |
Variables | |
| RECT | WFIGHTTS_screen |
| The battle test's data, defined after its code. | |
| s32 | WFIGHTTS_stageCursor |
| s32 | WFIGHTTS_stageScroll |
| char * | WFIGHTTS_stageNames [] |
| s16 | WFIGHTTS_fighters [][2] |
| The partner and the enemy the battle test starts with, by the mode's argument. | |
| DVECTOR | WFIGHTTS_backPoints [4] |
| the full-screen quad behind the lists, and its grey | |
| CVECTOR | WFIGHTTS_backColors [4] |
| s32 | WFIGHTTS_speedMode |
| the battle's speed (FIGHTSTG_battle.speed.mode), which SELECT cycles | |
| s32 | WFIGHTTS_fighterSide |
| the fighter list's side, and each side's cursor and scroll | |
| s32 | WFIGHTTS_fighterCursors [2] |
| s32 | WFIGHTTS_fighterScrolls [2] |
| s32 | WFIGHTTS_cameraSide |
| the camera list's side, and each side's camera | |
| s32 | WFIGHTTS_cameraPicks [2] |
| char * | WFIGHTTS_partnerCameraNames [] |
| the cameras' names: the partner's 12 and the enemy's 3 | |
| char * | WFIGHTTS_enemyCameraNames [] |
| CameraView | WFIGHTTS_partnerView |
| the views the camera list fades to, from the partner's and the enemy's cameras | |
| CameraView | WFIGHTTS_enemyView |
| s32 | WFIGHTTS_displayX |
| where R2 with the pad moves the display to | |
| s32 | WFIGHTTS_displayY |
| BattleTestCursors | WFIGHTTS_motionCursors |
| BattleTestCursors | WFIGHTTS_effectCursors |
| char * | WFIGHTTS_motionNames [] |
| the motions' and the effects' names, for their lists | |
| char * | WFIGHTTS_effectNames [] |
WFIGHTTS.PRO: the battle test, a debug menu.
FIGHTSTG loads it (file 0x1FB) in place of WFIGHTMN when the battle mode's argument is set. It picks the fighters, their motions (ウェイト, ダメージ, ガード...), the effects (MEFT00xx) and the fight stage (MFSTG0xx) from lists.
Definition in file battle_test.h.
| void WFIGHTTS_initLayers | ( | void | ) |
Sets up the display and the battle test's layers.
< the battle camera's and the lights'
< the models' wireframe copies, in a Digimon change
< the HUD, the menus and the messages
< the fades, the flashes and the sprite effects over all
Definition at line 4 of file battle_test.c.
Referenced by setUpBattle().
| void WFIGHTTS_loadImages | ( | void | ) |
Loads the battle test's images into VRAM.
Definition at line 9 of file battle_test.c.
Referenced by setUpBattle().
| void WFIGHTTS_battleTest | ( | BattleTest * | task, |
| BattleTestChildren * | children | ||
| ) |
The battle test: sets up the battle (setUpBattle), then runs its pages.
Page 0 (runPlayPage) plays things on CROSS (back to the last list), R1, R2 and L2; the lists pick the fighters, the camera, the stage, a motion and an effect (runFighterList, runCameraList, runStageList, runMotionList, pickEffect). SELECT cycles WFIGHTTS_speedMode and R2 with the pad moves the display (moveDisplay)
< the HUD, the menus and the messages
Definition at line 322 of file battle_test.c.
Referenced by WFIGHTTS_start().
| BattleTestList * WFIGHTTS_createFighterList | ( | s32 * | side, |
| s32 * | pick | ||
| ) |
Starts the fighter list, which sets *SIDE and *PICK.
Definition at line 506 of file battle_test.c.
Referenced by runFighterList().
| BattleTestList * WFIGHTTS_createCameraList | ( | s32 * | side, |
| s32 * | pick | ||
| ) |
Starts the camera list, which sets *SIDE and *PICK.
Definition at line 605 of file battle_test.c.
Referenced by runCameraList().
| BattleTestStageList * WFIGHTTS_createStageList | ( | s32 * | result | ) |
Starts the stage list, which sets *RESULT.
Definition at line 680 of file battle_test.c.
Referenced by runStageList().
| BattleTestMotions * WFIGHTTS_createMotionList | ( | s32 * | side, |
| s32 * | motion | ||
| ) |
Starts the motion list, which sets *SIDE and *MOTION.
Definition at line 806 of file battle_test.c.
Referenced by runMotionList().
| BattleTestEffects * WFIGHTTS_createEffectList | ( | s32 * | side, |
| s32 * | effect | ||
| ) |
Starts the effect list, which sets *SIDE and *EFFECT.
Definition at line 958 of file battle_test.c.
Referenced by WFIGHTTS_battleTest().
| void WFIGHTTS_fighterList | ( | BattleTestList * | task, |
| BattleTestWindows * | windows | ||
| ) |
The fighter list: the partners on the right and the enemies on the left, fourteen shown at a time (RIGHT and LEFT pick the list, UP and DOWN the fighter, ten at a time with SQUARE held), the cursor's one blinking; CROSS sets the side and the fighter, TRIANGLE the side to -1.
Match depends on the loop around the pad handling, whose breaks leave it early, and on each list having its own counter
< the HUD, the menus and the messages
< DIGNAM
< DIGNAM
Definition at line 403 of file battle_test.c.
Referenced by WFIGHTTS_createFighterList().
| void WFIGHTTS_cameraList | ( | BattleTestList * | task, |
| CameraListWindows * | windows | ||
| ) |
The camera list: the partner's 12 cameras on the right and the enemy's 3 on the left (RIGHT and LEFT pick the list, UP and DOWN the camera, ten at a time with R1 held); CROSS sets the side to 0 or 1 and the camera, TRIANGLE the side to -1.
Match depends on the loop around the pad handling, whose breaks leave it early
< the HUD, the menus and the messages
< the HUD, the menus and the messages
Definition at line 520 of file battle_test.c.
Referenced by WFIGHTTS_createCameraList().
| void WFIGHTTS_stageList | ( | BattleTestStageList * | task, |
| TextWindow ** | windows | ||
| ) |
The fight stage list: 14 of the 55 stages at a time (UP and DOWN, ten at a time with SQUARE held); it sets *result to the stage, 1-55, or to -1.
< the HUD, the menus and the messages
Definition at line 616 of file battle_test.c.
Referenced by WFIGHTTS_createStageList().
| void WFIGHTTS_motionList | ( | BattleTestMotions * | task, |
| BattleTestWindows * | windows | ||
| ) |
The motion list: the partner's motions on the right and the enemy's on the left, fourteen shown at a time (RIGHT and LEFT pick the list, UP and DOWN the motion, ten at a time with SQUARE held); CROSS sets the side and the motion plus 1, TRIANGLE the side to -1.
The cursors stay while the fighters do. Match depends on the loop around the pad handling, whose breaks leave it early
< the fighters'
< the HUD, the menus and the messages
Definition at line 693 of file battle_test.c.
Referenced by WFIGHTTS_createMotionList().
| void WFIGHTTS_effectList | ( | BattleTestEffects * | task, |
| BattleTestWindows * | windows | ||
| ) |
The effect list, like the motion list: fills its lists (fillEffectLists), then CROSS sets the side and the effect, on any but a fighter's "none", while the names are drawn (drawEffectNames).
Match depends on the loop around the pad handling, whose breaks leave it early
Definition at line 888 of file battle_test.c.
Referenced by WFIGHTTS_createEffectList().
|
extern |
The battle test's data, defined after its code.
The battle test's data, defined after its code.
Definition at line 1300 of file battle_test.c.
Referenced by WFIGHTTS_initLayers().
|
extern |
Definition at line 1333 of file battle_test.c.
Referenced by WFIGHTTS_stageList().
|
extern |
Definition at line 1334 of file battle_test.c.
Referenced by WFIGHTTS_stageList().
|
extern |
Definition at line 1335 of file battle_test.c.
Referenced by WFIGHTTS_stageList().
|
extern |
The partner and the enemy the battle test starts with, by the mode's argument.
Definition at line 1303 of file battle_test.c.
Referenced by setUpBattle().
|
extern |
the full-screen quad behind the lists, and its grey
Definition at line 1308 of file battle_test.c.
Referenced by WFIGHTTS_battleTest().
|
extern |
Definition at line 1311 of file battle_test.c.
Referenced by WFIGHTTS_battleTest().
|
extern |
the battle's speed (FIGHTSTG_battle.speed.mode), which SELECT cycles
Definition at line 1316 of file battle_test.c.
Referenced by WFIGHTTS_battleTest().
|
extern |
the fighter list's side, and each side's cursor and scroll
Definition at line 1318 of file battle_test.c.
Referenced by WFIGHTTS_fighterList().
|
extern |
Definition at line 1319 of file battle_test.c.
Referenced by WFIGHTTS_fighterList().
|
extern |
Definition at line 1320 of file battle_test.c.
Referenced by WFIGHTTS_fighterList().
|
extern |
the camera list's side, and each side's camera
Definition at line 1322 of file battle_test.c.
Referenced by WFIGHTTS_cameraList().
|
extern |
Definition at line 1323 of file battle_test.c.
Referenced by WFIGHTTS_cameraList().
|
extern |
the cameras' names: the partner's 12 and the enemy's 3
Definition at line 1325 of file battle_test.c.
Referenced by WFIGHTTS_cameraList().
|
extern |
Definition at line 1330 of file battle_test.c.
Referenced by WFIGHTTS_cameraList().
|
extern |
the views the camera list fades to, from the partner's and the enemy's cameras
Definition at line 1379 of file battle_test.c.
Referenced by runCameraList().
|
extern |
Definition at line 1381 of file battle_test.c.
Referenced by runCameraList().
|
extern |
where R2 with the pad moves the display to
Definition at line 1383 of file battle_test.c.
Referenced by moveDisplay().
|
extern |
Definition at line 1384 of file battle_test.c.
Referenced by moveDisplay().
|
extern |
Definition at line 1385 of file battle_test.c.
Referenced by WFIGHTTS_motionList().
|
extern |
Definition at line 1386 of file battle_test.c.
Referenced by drawEffectNames(), fillEffectLists(), and WFIGHTTS_effectList().
|
extern |
the motions' and the effects' names, for their lists
Definition at line 1352 of file battle_test.c.
Referenced by WFIGHTTS_motionList().
|
extern |
Definition at line 1370 of file battle_test.c.
Referenced by drawEffectNames().