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

FIGHTSTG's partner info, the pages of a partner's stats and techniques. More...

Include dependency graph for partner_info.c:

Go to the source code of this file.

Functions

void FIGHTSTG_drawPageArrows (PartnerInfo *task)
 Draws the PartnerInfo's blinking page arrows.
 
void FIGHTSTG_showPageButtons (PartnerInfo *task, TextWindow **windows)
 Shows the PartnerInfo's page buttons (texts 0x11 and 0x12)
 
void FIGHTSTG_drawStatsFrame (PartnerInfo *task)
 Draws the frame of the stats page.
 
void FIGHTSTG_showStats (PartnerInfo *task, TextWindow **windows)
 Creates the thirteen stat numbers of FIGHTSTG_statLines (up to 999), right aligned, in palette 6 for windows 5, 6 and 9 when stats 19, 20 and 21 are set.
 
void FIGHTSTG_drawTechIcons (PartnerInfo *task)
 Draws the techniques page's icons and frame.
 
void FIGHTSTG_showTechs (PartnerInfo *task, TextWindow **windows)
 Shows the techniques page: the level (text 0x1A for none) and the six techniques' names, the partner's own in yellow and those it can pass on in green.
 
void FIGHTSTG_updatePartnerInfo (PartnerInfo *task, TextWindow **windows)
 The PartnerInfo's task: works out its page (the stats with the slot's Digimon's added, that Digimon's techniques, or those the partner's other Digimon can pass on) and makes its windows, then draws the page each frame.
 
PartnerInfo * FIGHTSTG_createPartnerInfo (s32 partner, s32 page, s32 slot)
 Shows page page about the partner in slot (0 for itself)
 

Variables

StatLine FIGHTSTG_statLines [13]
 the stat numbers of FIGHTSTG_showStats
 

Detailed Description

FIGHTSTG's partner info, the pages of a partner's stats and techniques.

Definition in file partner_info.c.

Function Documentation

◆ FIGHTSTG_drawPageArrows()

void FIGHTSTG_drawPageArrows ( PartnerInfo *  task)

Draws the PartnerInfo's blinking page arrows.

< the HUD, the menus and the messages

Definition at line 6 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_showPageButtons()

void FIGHTSTG_showPageButtons ( PartnerInfo *  task,
TextWindow **  windows 
)

Shows the PartnerInfo's page buttons (texts 0x11 and 0x12)

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

< the HUD, the menus and the messages

Definition at line 20 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_drawStatsFrame()

void FIGHTSTG_drawStatsFrame ( PartnerInfo *  task)

Draws the frame of the stats page.

< the HUD, the menus and the messages

Definition at line 32 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_showStats()

void FIGHTSTG_showStats ( PartnerInfo *  task,
TextWindow **  windows 
)

Creates the thirteen stat numbers of FIGHTSTG_statLines (up to 999), right aligned, in palette 6 for windows 5, 6 and 9 when stats 19, 20 and 21 are set.

The match depends on reading the stat through a pointer sum.

< the HUD, the menus and the messages

Definition at line 66 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_drawTechIcons()

void FIGHTSTG_drawTechIcons ( PartnerInfo *  task)

Draws the techniques page's icons and frame.

< the HUD, the menus and the messages

< the skill, from 1 (TECHS[id - 1])

Definition at line 91 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_showTechs()

void FIGHTSTG_showTechs ( PartnerInfo *  task,
TextWindow **  windows 
)

Shows the techniques page: the level (text 0x1A for none) and the six techniques' names, the partner's own in yellow and those it can pass on in green.

< MFIGHT: WFIGHTMN's

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< the HUD, the menus and the messages

< SKLNAM

< the skill, from 1 (TECHS[id - 1])

< marked in the lab (STGDGLAB_updateSkillPanel)

Definition at line 115 of file partner_info.c.

Referenced by FIGHTSTG_updatePartnerInfo().

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

◆ FIGHTSTG_updatePartnerInfo()

void FIGHTSTG_updatePartnerInfo ( PartnerInfo *  task,
TextWindow **  windows 
)

The PartnerInfo's task: works out its page (the stats with the slot's Digimon's added, that Digimon's techniques, or those the partner's other Digimon can pass on) and makes its windows, then draws the page each frame.

< the first of the seven resistances

< marked in the lab (STGDGLAB_updateSkillPanel)

< the skill, from 1 (TECHS[id - 1])

Definition at line 146 of file partner_info.c.

Referenced by FIGHTSTG_createPartnerInfo().

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

◆ FIGHTSTG_createPartnerInfo()

PartnerInfo * FIGHTSTG_createPartnerInfo ( s32  partner,
s32  page,
s32  slot 
)

Shows page page about the partner in slot (0 for itself)

Definition at line 273 of file partner_info.c.

Referenced by FIGHTSTG_updateDigivolveMenu(), and updatePartnerInfoPage().

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

Variable Documentation

◆ FIGHTSTG_statLines

StatLine FIGHTSTG_statLines[13]
Initial value:
= {
{ 60, 82, 6 },
{ 60, 96, 7 },
{ 60, 110, 8 },
{ 60, 124, 9 },
{ 60, 138, 10 },
{ 60, 152, 11 },
{ 126, 82, 12 },
{ 126, 96, 13 },
{ 126, 110, 14 },
{ 126, 124, 15 },
{ 126, 138, 16 },
{ 126, 152, 17 },
{ 126, 166, 18 },
}

the stat numbers of FIGHTSTG_showStats

Definition at line 47 of file partner_info.c.

Referenced by FIGHTSTG_showStats().