FIGHTSTG.PRO: the battle.
CameraView WFIGHTTS_enemyView
char * WFIGHTTS_stageNames[]
s16 WFIGHTTS_fighters[][2]
The partner and the enemy the battle test starts with, by the mode's argument.
void WFIGHTTS_initLayers(void)
Sets up the display and the battle test's layers.
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 ...
char * WFIGHTTS_effectNames[]
s32 WFIGHTTS_fighterScrolls[2]
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 (RI...
s32 WFIGHTTS_fighterCursors[2]
BattleTestMotions * WFIGHTTS_createMotionList(s32 *side, s32 *motion)
Starts the motion list, which sets *SIDE and *MOTION.
char * WFIGHTTS_partnerCameraNames[]
the cameras' names: the partner's 12 and the enemy's 3
void WFIGHTTS_loadImages(void)
Loads the battle test's images into VRAM.
BattleTestList * WFIGHTTS_createFighterList(s32 *side, s32 *pick)
Starts the fighter list, which sets *SIDE and *PICK.
BattleTestCursors WFIGHTTS_effectCursors
DVECTOR WFIGHTTS_backPoints[4]
the full-screen quad behind the lists, and its grey
void WFIGHTTS_effectList(BattleTestEffects *task, BattleTestWindows *windows)
The effect list, like the motion list: fills its lists (fillEffectLists), then CROSS sets the side an...
CVECTOR WFIGHTTS_backColors[4]
BattleTestList * WFIGHTTS_createCameraList(s32 *side, s32 *pick)
Starts the camera list, which sets *SIDE and *PICK.
s32 WFIGHTTS_displayX
where R2 with the pad moves the display to
s32 WFIGHTTS_cameraSide
the camera list's side, and each side's camera
void WFIGHTTS_battleTest(BattleTest *task, BattleTestChildren *children)
The battle test: sets up the battle (setUpBattle), then runs its pages.
BattleTestStageList * WFIGHTTS_createStageList(s32 *result)
Starts the stage list, which sets *RESULT.
s32 WFIGHTTS_cameraPicks[2]
s32 WFIGHTTS_fighterSide
the fighter list's side, and each side's cursor and scroll
char * WFIGHTTS_motionNames[]
the motions' and the effects' names, for their lists
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 ...
s32 WFIGHTTS_speedMode
the battle's speed (FIGHTSTG_battle.speed.mode), which SELECT cycles
BattleTestCursors WFIGHTTS_motionCursors
char * WFIGHTTS_enemyCameraNames[]
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...
CameraView WFIGHTTS_partnerView
the views the camera list fades to, from the partner's and the enemy's cameras
BattleTestEffects * WFIGHTTS_createEffectList(s32 *side, s32 *effect)
Starts the effect list, which sets *SIDE and *EFFECT.
RECT WFIGHTTS_screen
The battle test's data, defined after its code.
#define TASK_HEADER(Type)
The battle camera (FIGHTSTG_createBattleCamera), registered as BATTLE_TASK_CAMERA on a layer: set put...
The battle test's children.
BattleChild task
what plays, NULL when done
BattleTestList * fighters
BattleTestStageList * stages
BattleTestMotions * motions
PlayerTurn * commands
the player's turn (FIGHTSTG_startPlayerTurn)
BattleTestEffects * effects
Where the motion and the effect lists are: the fighters they were made for, the list LEFT and RIGHT p...
A fighter's effects, in the effect list (WFIGHTTS_effectList): each one plus 1, or just a 0 for a fig...
BattleTestEffectList lists[2]
the partner's, the enemy's
s32 * effect
the effect picked
The fighters' and the cameras' lists (WFIGHTTS_fighterList, WFIGHTTS_cameraList)
s32 * side
0 the partner, 1 the enemy, -1 for none
s32 * pick
set to 0 when it starts
A fighter's motions, in the motion list (WFIGHTTS_motionList)
s32 motions[0x3E]
the ones the fighter has
BattleTestMotionList lists[2]
the partner's, the enemy's
s32 * motion
the motion picked
s32 * result
the stage picked, 1-55, or -1
The fighter, motion and effect lists' windows, by list.
TextWindow * windows[2][14]
The battle test (WFIGHTTS_battleTest).
s32 page
the last list, which CROSS goes back to
s32 camera
by the fighter's motion
s32 side
0 the partner, 1 the enemy, -1 for none
The camera list's windows: the partners' cameras and the enemies'.
Where the battle camera looks from and to, as a GsRVIEW2 with the transform of its coordinate system.
The fight stage (FIGHTSTG_createStage), registered as BATTLE_TASK_STAGE: its model,...
The stage lights (FIGHTSTG_createLights), registered as BATTLE_TASK_LIGHTS: set puts a light set,...
The fighters' models (FIGHTSTG_createModels), registered as BATTLE_TASK_MODELS: up to four,...
The player's turn (FIGHTSTG_updatePlayerTurn, BATTLE_TASK_PLAYER_TURN): the battle menu,...
A text window (createTextWindow): up to six text buffers (0 is shown, 1-5 are "work" buffers that con...
A turn's or a counterattack's one child, and what WFIGHTMN's battle menu waits for (NULL when it is d...