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

FIGHTSTG's command menu, the six commands of the player's turn. More...

Include dependency graph for command_menu.c:

Go to the source code of this file.

Functions

void FIGHTSTG_showCommands (CommandMenu *task)
 Shows the six commands once, greying out attack, techniques and digivolve when the active fighter is asleep and digivolve when it has flag 0x20 (the first window's setPalette is called for each)
 
void FIGHTSTG_updateCommandMenu (CommandMenu *task, CommandMenuWindows *w)
 The command menu's task: puts a cursor (FIGHTSTG_commandCursor) on the lines, starting on start; cross picks the line into *result and locks the cursor, but not the greyed-out ones (FIGHTSTG_showCommands).
 
CommandMenu * FIGHTSTG_createCommandMenu (s32 start, s32 *result)
 Opens the battle's command menu with the cursor on start; *result gets the command (PlayerTurn.command)
 

Variables

CursorLayout FIGHTSTG_commandCursor
 the battle commands' cursor (FIGHTSTG_createCursor makes the menus' cursors from these layouts)
 

Detailed Description

FIGHTSTG's command menu, the six commands of the player's turn.

Definition in file command_menu.c.

Function Documentation

◆ FIGHTSTG_showCommands()

void FIGHTSTG_showCommands ( CommandMenu *  task)

Shows the six commands once, greying out attack, techniques and digivolve when the active fighter is asleep and digivolve when it has flag 0x20 (the first window's setPalette is called for each)

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

< can't act or run away; a hit may wake it up

< what is unavailable

< can't digivolve or use a switch-in technique (TECH_EFFECT_NO_DIGIVOLVE)

< what is unavailable

Definition at line 8 of file command_menu.c.

Referenced by FIGHTSTG_updateCommandMenu().

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

◆ FIGHTSTG_updateCommandMenu()

void FIGHTSTG_updateCommandMenu ( CommandMenu *  task,
CommandMenuWindows *  w 
)

The command menu's task: puts a cursor (FIGHTSTG_commandCursor) on the lines, starting on start; cross picks the line into *result and locks the cursor, but not the greyed-out ones (FIGHTSTG_showCommands).

The match depends on the early exits being breaks out of a do/while.

< SYSTEM07

< can't act or run away; a hit may wake it up

< can't digivolve or use a switch-in technique (TECH_EFFECT_NO_DIGIVOLVE)

Definition at line 42 of file command_menu.c.

Referenced by FIGHTSTG_createCommandMenu().

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

◆ FIGHTSTG_createCommandMenu()

CommandMenu * FIGHTSTG_createCommandMenu ( s32  start,
s32 *  result 
)

Opens the battle's command menu with the cursor on start; *result gets the command (PlayerTurn.command)

Definition at line 79 of file command_menu.c.

Referenced by runCommandMenu().

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

Variable Documentation

◆ FIGHTSTG_commandCursor

CursorLayout FIGHTSTG_commandCursor
Initial value:
= {
6, 17, 110, 19, 34, 16, 109, 19,
}

the battle commands' cursor (FIGHTSTG_createCursor makes the menus' cursors from these layouts)

FIGHTSTG_updateCommandMenu's cursor.

Definition at line 34 of file command_menu.c.

Referenced by FIGHTSTG_updateCommandMenu().