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

FIGHTSTG's player turn: the command menu and the menus it opens, until the turn's action is picked. More...

Include dependency graph for player_turn.c:

Go to the source code of this file.

Functions

static void runCommandMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the command menu with the HUD, the partner view and the shot camera, then goes to the menu of the command picked.
 
static void runDigivolveMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the digivolve menu for the active partner and, once a Digimon is picked, makes digivolving the action.
 
static void runItemMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the item menu and, once an item is picked, makes using it the action.
 
static void runTechMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the technique menu and, once a technique is picked, makes using it the action.
 
static void runSwitchMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the switch menu and then the switch-in menu with the pair technique for the Digimon picked, and makes the switch the action.
 
static void runConfusedMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the confused menu with the partner view and the shot camera, and makes its pick the action.
 
static void runKnockOutSwitchMenu (PlayerTurn *task, PlayerTurnChild *children)
 Opens the switch menu after a knockout and then the switch-in menu, and makes the switch the action.
 
void FIGHTSTG_updatePlayerTurn (PlayerTurn *task, PlayerTurnChild *children)
 The player's turn: substate 2 opens the command menu (runCommandMenu) and then the menu of its command (runDigivolveMenu, runItemMenu, runTechMenu, runSwitchMenu), 3 the confused menu (runConfusedMenu) and 4 the switch menu after a knockout (runKnockOutSwitchMenu); each sets action and goes back to substate 0, which closes the children.
 
PlayerTurn * FIGHTSTG_startPlayerTurn (void)
 Starts the player's turn (FIGHTSTG_updatePlayerTurn, id 0xE)
 
void FIGHTSTG_setPlayerTurnStep (s32 substate)
 Sets the player's turn's substate, while it runs (4 picks the next fighter)
 
s32 FIGHTSTG_isPlayerChoosing (void)
 Whether the player's turn has a menu open (its substate isn't 0)
 

Detailed Description

FIGHTSTG's player turn: the command menu and the menus it opens, until the turn's action is picked.

Definition in file player_turn.c.

Function Documentation

◆ runCommandMenu()

static void runCommandMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the command menu with the HUD, the partner view and the shot camera, then goes to the menu of the command picked.

Definition at line 8 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runDigivolveMenu()

static void runDigivolveMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the digivolve menu for the active partner and, once a Digimon is picked, makes digivolving the action.

Definition at line 60 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runItemMenu()

static void runItemMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the item menu and, once an item is picked, makes using it the action.

Definition at line 88 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runTechMenu()

static void runTechMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the technique menu and, once a technique is picked, makes using it the action.

Definition at line 114 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runSwitchMenu()

static void runSwitchMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the switch menu and then the switch-in menu with the pair technique for the Digimon picked, and makes the switch the action.

Definition at line 140 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runConfusedMenu()

static void runConfusedMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the confused menu with the partner view and the shot camera, and makes its pick the action.

Definition at line 188 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ runKnockOutSwitchMenu()

static void runKnockOutSwitchMenu ( PlayerTurn *  task,
PlayerTurnChild *  children 
)
inlinestatic

Opens the switch menu after a knockout and then the switch-in menu, and makes the switch the action.

Definition at line 223 of file player_turn.c.

Referenced by FIGHTSTG_updatePlayerTurn().

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

◆ FIGHTSTG_updatePlayerTurn()

void FIGHTSTG_updatePlayerTurn ( PlayerTurn *  task,
PlayerTurnChild *  children 
)

The player's turn: substate 2 opens the command menu (runCommandMenu) and then the menu of its command (runDigivolveMenu, runItemMenu, runTechMenu, runSwitchMenu), 3 the confused menu (runConfusedMenu) and 4 the switch menu after a knockout (runKnockOutSwitchMenu); each sets action and goes back to substate 0, which closes the children.

The match depends on the menus' results being switches with case -1 first and on each of the two endings of the command menu's last step being written out.

Definition at line 269 of file player_turn.c.

Referenced by FIGHTSTG_startPlayerTurn().

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

◆ FIGHTSTG_startPlayerTurn()

PlayerTurn * FIGHTSTG_startPlayerTurn ( void  )

Starts the player's turn (FIGHTSTG_updatePlayerTurn, id 0xE)

The tasks FIGHTSTG starts for WFIGHTMN and WFIGHTTS.

Definition at line 337 of file player_turn.c.

Referenced by setUpBattle(), and WFIGHTMN_updateMenu().

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

◆ FIGHTSTG_setPlayerTurnStep()

void FIGHTSTG_setPlayerTurnStep ( s32  substate)

Sets the player's turn's substate, while it runs (4 picks the next fighter)

The events they queue for WFIGHTMN, and its turn's substate.

Definition at line 342 of file player_turn.c.

Referenced by queueFirstTurns(), runPlayPage(), setUpBattle(), WFIGHTMN_knockOut(), WFIGHTMN_runCommand(), and WFIGHTMN_runConfusedCommand().

Here is the caller graph for this function:

◆ FIGHTSTG_isPlayerChoosing()

s32 FIGHTSTG_isPlayerChoosing ( void  )

Whether the player's turn has a menu open (its substate isn't 0)

Definition at line 351 of file player_turn.c.

Referenced by WFIGHTMN_knockOut(), WFIGHTMN_runCommand(), and WFIGHTMN_runConfusedCommand().

Here is the caller graph for this function: