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

WFIGHTTS.PRO: the battle test, a debug menu. More...

Include dependency graph for battle_test.h:
This graph shows which files directly or indirectly include this file:

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 []
 

Detailed Description

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.

Function Documentation

◆ WFIGHTTS_initLayers()

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().

Here is the caller graph for this function:

◆ WFIGHTTS_loadImages()

void WFIGHTTS_loadImages ( void  )

Loads the battle test's images into VRAM.

Definition at line 9 of file battle_test.c.

Referenced by setUpBattle().

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

◆ WFIGHTTS_battleTest()

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().

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

◆ WFIGHTTS_createFighterList()

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().

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

◆ WFIGHTTS_createCameraList()

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().

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

◆ WFIGHTTS_createStageList()

BattleTestStageList * WFIGHTTS_createStageList ( s32 *  result)

Starts the stage list, which sets *RESULT.

Definition at line 680 of file battle_test.c.

Referenced by runStageList().

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

◆ WFIGHTTS_createMotionList()

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().

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

◆ WFIGHTTS_createEffectList()

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().

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

◆ WFIGHTTS_fighterList()

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().

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

◆ WFIGHTTS_cameraList()

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().

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

◆ WFIGHTTS_stageList()

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().

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

◆ WFIGHTTS_motionList()

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().

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

◆ WFIGHTTS_effectList()

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().

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

Variable Documentation

◆ WFIGHTTS_screen

RECT WFIGHTTS_screen
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().

◆ WFIGHTTS_stageCursor

s32 WFIGHTTS_stageCursor
extern

Definition at line 1333 of file battle_test.c.

Referenced by WFIGHTTS_stageList().

◆ WFIGHTTS_stageScroll

s32 WFIGHTTS_stageScroll
extern

Definition at line 1334 of file battle_test.c.

Referenced by WFIGHTTS_stageList().

◆ WFIGHTTS_stageNames

char* WFIGHTTS_stageNames[]
extern

Definition at line 1335 of file battle_test.c.

Referenced by WFIGHTTS_stageList().

◆ WFIGHTTS_fighters

s16 WFIGHTTS_fighters[][2]
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().

◆ WFIGHTTS_backPoints

DVECTOR WFIGHTTS_backPoints[4]
extern

the full-screen quad behind the lists, and its grey

Definition at line 1308 of file battle_test.c.

Referenced by WFIGHTTS_battleTest().

◆ WFIGHTTS_backColors

CVECTOR WFIGHTTS_backColors[4]
extern

Definition at line 1311 of file battle_test.c.

Referenced by WFIGHTTS_battleTest().

◆ WFIGHTTS_speedMode

s32 WFIGHTTS_speedMode
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().

◆ WFIGHTTS_fighterSide

s32 WFIGHTTS_fighterSide
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().

◆ WFIGHTTS_fighterCursors

s32 WFIGHTTS_fighterCursors[2]
extern

Definition at line 1319 of file battle_test.c.

Referenced by WFIGHTTS_fighterList().

◆ WFIGHTTS_fighterScrolls

s32 WFIGHTTS_fighterScrolls[2]
extern

Definition at line 1320 of file battle_test.c.

Referenced by WFIGHTTS_fighterList().

◆ WFIGHTTS_cameraSide

s32 WFIGHTTS_cameraSide
extern

the camera list's side, and each side's camera

Definition at line 1322 of file battle_test.c.

Referenced by WFIGHTTS_cameraList().

◆ WFIGHTTS_cameraPicks

s32 WFIGHTTS_cameraPicks[2]
extern

Definition at line 1323 of file battle_test.c.

Referenced by WFIGHTTS_cameraList().

◆ WFIGHTTS_partnerCameraNames

char* WFIGHTTS_partnerCameraNames[]
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().

◆ WFIGHTTS_enemyCameraNames

char* WFIGHTTS_enemyCameraNames[]
extern

Definition at line 1330 of file battle_test.c.

Referenced by WFIGHTTS_cameraList().

◆ WFIGHTTS_partnerView

CameraView WFIGHTTS_partnerView
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().

◆ WFIGHTTS_enemyView

CameraView WFIGHTTS_enemyView
extern

Definition at line 1381 of file battle_test.c.

Referenced by runCameraList().

◆ WFIGHTTS_displayX

s32 WFIGHTTS_displayX
extern

where R2 with the pad moves the display to

Definition at line 1383 of file battle_test.c.

Referenced by moveDisplay().

◆ WFIGHTTS_displayY

s32 WFIGHTTS_displayY
extern

Definition at line 1384 of file battle_test.c.

Referenced by moveDisplay().

◆ WFIGHTTS_motionCursors

BattleTestCursors WFIGHTTS_motionCursors
extern

Definition at line 1385 of file battle_test.c.

Referenced by WFIGHTTS_motionList().

◆ WFIGHTTS_effectCursors

BattleTestCursors WFIGHTTS_effectCursors
extern

Definition at line 1386 of file battle_test.c.

Referenced by drawEffectNames(), fillEffectLists(), and WFIGHTTS_effectList().

◆ WFIGHTTS_motionNames

char* WFIGHTTS_motionNames[]
extern

the motions' and the effects' names, for their lists

Definition at line 1352 of file battle_test.c.

Referenced by WFIGHTTS_motionList().

◆ WFIGHTTS_effectNames

char* WFIGHTTS_effectNames[]
extern

Definition at line 1370 of file battle_test.c.

Referenced by drawEffectNames().