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

FIGHTSTG's switch menu, the partners that can come in. More...

Include dependency graph for switch_menu.c:

Go to the source code of this file.

Functions

s32 FIGHTSTG_getPairDigimon (SwitchMenu *task, s32 index, s32 member)
 Returns the Digimon fighter index has a pair technique with (its pairPartner, a 1-based DIGIMON_DATA entry) when party member member has it among its digivolutions, else 0.
 
void FIGHTSTG_drawSwitchMenu (SwitchMenu *task)
 Draws the pair technique icon by the fighters that have one with the active fighter.
 
void FIGHTSTG_createSwitchWindows (SwitchMenu *task, SwitchMenuWindows *w)
 Makes the switch menu's windows, two lines a fighter: the name, HP over max HP and MP over max MP.
 
void FIGHTSTG_showSwitchFighters (SwitchMenu *task, SwitchMenuWindows *w)
 Shows the switch menu's fighters' names, HP and MP, the knocked out ones' names in palette 7.
 
void FIGHTSTG_updateSwitchMenu (SwitchMenu *task, SwitchMenuWindows *w)
 The switch menu's task: puts a cursor on the other fighters, starting on line; cross picks one with HP into *result, triangle gives -2 when it can cancel.
 
SwitchMenu * FIGHTSTG_createSwitchMenu (s32 *result, s32 *line, s32 canCancel)
 Opens the switch menu; *result gets the fighter to bring in, or -2.
 

Detailed Description

FIGHTSTG's switch menu, the partners that can come in.

Definition in file switch_menu.c.

Function Documentation

◆ FIGHTSTG_getPairDigimon()

s32 FIGHTSTG_getPairDigimon ( SwitchMenu *  task,
s32  index,
s32  member 
)

Returns the Digimon fighter index has a pair technique with (its pairPartner, a 1-based DIGIMON_DATA entry) when party member member has it among its digivolutions, else 0.

Definition at line 8 of file switch_menu.c.

Referenced by FIGHTSTG_updateSwitchMenu().

Here is the caller graph for this function:

◆ FIGHTSTG_drawSwitchMenu()

void FIGHTSTG_drawSwitchMenu ( SwitchMenu *  task)

Draws the pair technique icon by the fighters that have one with the active fighter.

< the HUD, the menus and the messages

Definition at line 33 of file switch_menu.c.

Referenced by FIGHTSTG_updateSwitchMenu().

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

◆ FIGHTSTG_createSwitchWindows()

void FIGHTSTG_createSwitchWindows ( SwitchMenu *  task,
SwitchMenuWindows *  w 
)

Makes the switch menu's windows, two lines a fighter: the name, HP over max HP and MP over max MP.

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

Definition at line 51 of file switch_menu.c.

Referenced by FIGHTSTG_updateSwitchMenu().

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

◆ FIGHTSTG_showSwitchFighters()

void FIGHTSTG_showSwitchFighters ( SwitchMenu *  task,
SwitchMenuWindows *  w 
)

Shows the switch menu's fighters' names, HP and MP, the knocked out ones' names in palette 7.

< what is unavailable

Definition at line 75 of file switch_menu.c.

Referenced by FIGHTSTG_updateSwitchMenu().

Here is the caller graph for this function:

◆ FIGHTSTG_updateSwitchMenu()

void FIGHTSTG_updateSwitchMenu ( SwitchMenu *  task,
SwitchMenuWindows *  w 
)

The switch menu's task: puts a cursor on the other fighters, starting on line; cross picks one with HP into *result, triangle gives -2 when it can cancel.

With none to pick it shows message 0x14 and its blinking arrow until cross gives -2

< the HUD, the menus and the messages

< SYSTEM01

< SYSTEM07

< SYSTEM07

< the HUD, the menus and the messages

< MFIGHT: WFIGHTMN's

Definition at line 102 of file switch_menu.c.

Referenced by FIGHTSTG_createSwitchMenu().

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

◆ FIGHTSTG_createSwitchMenu()

SwitchMenu * FIGHTSTG_createSwitchMenu ( s32 *  result,
s32 *  line,
s32  canCancel 
)

Opens the switch menu; *result gets the fighter to bring in, or -2.

Definition at line 201 of file switch_menu.c.

Referenced by runKnockOutSwitchMenu(), and runSwitchMenu().

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