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

FIGHTSTG's confused menu, the commands of a confused partner. More...

Include dependency graph for confused_menu.c:

Go to the source code of this file.

Functions

void FIGHTSTG_showConfusedCommands (ConfusedMenu *task)
 Shows the confused menu's six lines once, in FIGHTSTG_confusedLines's order.
 
void FIGHTSTG_drawConfusedMessageBox (ConfusedMenu *task)
 Draws the confused menu's message box and, once its lines are out, its blinking arrow.
 
void FIGHTSTG_stepConfusedMessage (ConfusedMenu *task, ConfusedMenuWindows *w)
 Shows the confused message's lines one by one, 3 frames apart, then ends on cross.
 
void FIGHTSTG_setConfusedName (ConfusedMenu *task, ConfusedMenuWindows *windows, s32 side)
 Puts the active partner's name into the message's first line (side 0 only)
 
void FIGHTSTG_showConfusedMessage (ConfusedMenu *task, s32 index, s32 unused)
 Sets up confused message index (FIGHTSTG_confusedMessages) with the partner's name and starts showing it.
 
void FIGHTSTG_updateConfusedMenu (ConfusedMenu *task, ConfusedMenuWindows *w)
 The confused menu's task: shuffles the lines, then on cross attacks (*result 0) when FIGHTSTG_battleFuncs.testConfusion fails; else closes the lines, the partner view and the camera and shows one of the picked line's two messages at random, giving 1 when it is done.
 
ConfusedMenu * FIGHTSTG_createConfusedMenu (s32 *result, Task *partnerView, Task *shotCamera)
 Opens a confused partner's command menu; *result gets 0 for an attack or 1 for a lost turn.
 

Variables

ConfusedMessage FIGHTSTG_confusedMessages [16]
 the confused menu's (FIGHTSTG_updateConfusedMenu) results, two per line, each a message (task->queue[0]) and its line of text 0x80
 
s16 FIGHTSTG_confusedLines [8]
 the confused menu's lines, which it shuffles
 
CursorLayout FIGHTSTG_confusedCursor
 the confused menu's cursor
 

Detailed Description

FIGHTSTG's confused menu, the commands of a confused partner.

Definition in file confused_menu.c.

Function Documentation

◆ FIGHTSTG_showConfusedCommands()

void FIGHTSTG_showConfusedCommands ( ConfusedMenu *  task)

Shows the confused menu's six lines once, in FIGHTSTG_confusedLines's order.

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

Definition at line 6 of file confused_menu.c.

Referenced by FIGHTSTG_updateConfusedMenu().

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

◆ FIGHTSTG_drawConfusedMessageBox()

void FIGHTSTG_drawConfusedMessageBox ( ConfusedMenu *  task)

Draws the confused menu's message box and, once its lines are out, its blinking arrow.

< the HUD, the menus and the messages

Definition at line 22 of file confused_menu.c.

Referenced by FIGHTSTG_updateConfusedMenu().

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

◆ FIGHTSTG_stepConfusedMessage()

void FIGHTSTG_stepConfusedMessage ( ConfusedMenu *  task,
ConfusedMenuWindows *  w 
)

Shows the confused message's lines one by one, 3 frames apart, then ends on cross.

< SYSTEM07

Definition at line 48 of file confused_menu.c.

Referenced by FIGHTSTG_updateConfusedMenu().

Here is the caller graph for this function:

◆ FIGHTSTG_setConfusedName()

void FIGHTSTG_setConfusedName ( ConfusedMenu *  task,
ConfusedMenuWindows *  windows,
s32  side 
)

Puts the active partner's name into the message's first line (side 0 only)

Definition at line 87 of file confused_menu.c.

Referenced by FIGHTSTG_showConfusedMessage().

Here is the caller graph for this function:

◆ FIGHTSTG_showConfusedMessage()

void FIGHTSTG_showConfusedMessage ( ConfusedMenu *  task,
s32  index,
s32  unused 
)

Sets up confused message index (FIGHTSTG_confusedMessages) with the partner's name and starts showing it.

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< MFIGHT: WFIGHTMN's

< MFIGHT: WFIGHTMN's

Definition at line 108 of file confused_menu.c.

Referenced by FIGHTSTG_updateConfusedMenu().

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

◆ FIGHTSTG_updateConfusedMenu()

void FIGHTSTG_updateConfusedMenu ( ConfusedMenu *  task,
ConfusedMenuWindows *  w 
)

The confused menu's task: shuffles the lines, then on cross attacks (*result 0) when FIGHTSTG_battleFuncs.testConfusion fails; else closes the lines, the partner view and the camera and shows one of the picked line's two messages at random, giving 1 when it is done.

< SYSTEM07

Definition at line 136 of file confused_menu.c.

Referenced by FIGHTSTG_createConfusedMenu().

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

◆ FIGHTSTG_createConfusedMenu()

ConfusedMenu * FIGHTSTG_createConfusedMenu ( s32 *  result,
Task *  partnerView,
Task *  shotCamera 
)

Opens a confused partner's command menu; *result gets 0 for an attack or 1 for a lost turn.

Definition at line 198 of file confused_menu.c.

Referenced by runConfusedMenu().

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

Variable Documentation

◆ FIGHTSTG_confusedMessages

ConfusedMessage FIGHTSTG_confusedMessages[16]
Initial value:
= {
{ 1, 0x73 }, { 2, 0x74 }, { 3, 0x75 }, { 4, 0x76 },
{ 5, 0x77 }, { 6, 0x78 }, { 7, 0x79 }, { 8, 0x7A },
{ 9, 0x7B }, { 10, 0x7C }, { 11, 0x7D }, { 12, 0x7E },
{ 13, 0x7F }, { 14, 0x80 }, { 15, 0x81 }, { 16, 0x82 },
}

the confused menu's (FIGHTSTG_updateConfusedMenu) results, two per line, each a message (task->queue[0]) and its line of text 0x80

Definition at line 95 of file confused_menu.c.

Referenced by FIGHTSTG_showConfusedMessage().

◆ FIGHTSTG_confusedLines

s16 FIGHTSTG_confusedLines[8]
Initial value:
= {
7, 1, 0, 3, 2, 5, 4, 6,
}

the confused menu's lines, which it shuffles

FIGHTSTG_updateConfusedMenu's lines, shuffled.

Definition at line 102 of file confused_menu.c.

Referenced by FIGHTSTG_showConfusedCommands(), and FIGHTSTG_updateConfusedMenu().

◆ FIGHTSTG_confusedCursor

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

the confused menu's cursor

FIGHTSTG_updateConfusedMenu's.

Definition at line 128 of file confused_menu.c.

Referenced by FIGHTSTG_updateConfusedMenu().