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

The report: its windows, its drawing, its run through the partners, the money and the item won, and its files. More...

#include "battle/report.h"
Include dependency graph for report.c:

Go to the source code of this file.

Functions

void STFGTREP_createWindows (FightReport *report, FightReportChildren *children)
 Creates the report's text windows: the exp, its label and the two-line message.
 
void STFGTREP_drawReport (FightReport *report)
 Draws the report's message arrow, background, header and footer.
 
static void selectNextPartner (FightReport *report, FightReportChildren *children)
 Selects the next partner that got exp and fades the header in; after the last one goes on to the money.
 
static void showExp (FightReport *report, FightReportChildren *children)
 Shows the current partner's exp in the message and in the exp window.
 
static void turnMessagePage (FightReport *report, FightReportChildren *children)
 While the message types, cross shows its whole page; at a page end the arrow shows until cross, which plays the confirm sound.
 
static void hideExp (FightReport *report, FightReportChildren *children)
 Fades the header out and hides the exp once the partner's raise is shown, moving on to the next partner.
 
static void giveMoney (FightReport *report, FightReportChildren *children)
 Gives the money the battle won, a fifth more with item 0x142 equipped, and shows it in the message.
 
static void giveItem (FightReport *report, FightReportChildren *children)
 Gives the item the battle won, up to 99, and shows it in the message; with none the report ends.
 
static void startFadeOut (FightReport *report, FightReportChildren *children)
 Starts fading the screen and the footer out and hides the message.
 
void STFGTREP_runReport (FightReport *report, FightReportChildren *children)
 The report while it runs: shows the panels, then for each partner that got exp its message and the raise (selectNextPartner, showExp, hideExp), then the money and the item won (giveMoney, giveItem), and fades out (startFadeOut)
 
void STFGTREP_updateReport (FightReport *report, FightReportChildren *children)
 The report's main task: loads the files, shares the battle's exp among the partners who fought and creates their panels.
 
FightReport * STFGTREP_createScreen (void)
 Creates the report (STFGTREP_updateReport) on the screen layer.
 
void STFGTREP_loadFiles (void)
 Loads the report's sprites and requests its texts, the Digimon names and the item names.
 
s32 STFGTREP_filesLoading (void)
 Whether STFGTREP_loadFiles's texts are still loading.
 

Detailed Description

The report: its windows, its drawing, its run through the partners, the money and the item won, and its files.

Definition in file report.c.

Function Documentation

◆ STFGTREP_createWindows()

void STFGTREP_createWindows ( FightReport *  report,
FightReportChildren *  children 
)

Creates the report's text windows: the exp, its label and the two-line message.

report.c

Definition at line 8 of file report.c.

Referenced by STFGTREP_updateReport().

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

◆ STFGTREP_drawReport()

void STFGTREP_drawReport ( FightReport *  report)

Draws the report's message arrow, background, header and footer.

Definition at line 19 of file report.c.

Referenced by STFGTREP_updateReport().

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

◆ selectNextPartner()

static void selectNextPartner ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Selects the next partner that got exp and fades the header in; after the last one goes on to the money.

Definition at line 65 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ showExp()

static void showExp ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Shows the current partner's exp in the message and in the exp window.

< FGTRPT: STFGTREP's

< FGTRPT: STFGTREP's

Definition at line 80 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ turnMessagePage()

static void turnMessagePage ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

While the message types, cross shows its whole page; at a page end the arrow shows until cross, which plays the confirm sound.

< SYSTEM07

Definition at line 91 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ hideExp()

static void hideExp ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Fades the header out and hides the exp once the partner's raise is shown, moving on to the next partner.

Definition at line 105 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ giveMoney()

static void giveMoney ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Gives the money the battle won, a fifth more with item 0x142 equipped, and shows it in the message.

< FGTRPT: STFGTREP's

Definition at line 115 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ giveItem()

static void giveItem ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Gives the item the battle won, up to 99, and shows it in the message; with none the report ends.

< FGTRPT: STFGTREP's

< ITMNAM

Definition at line 137 of file report.c.

Referenced by STFGTREP_runReport().

Here is the caller graph for this function:

◆ startFadeOut()

static void startFadeOut ( FightReport *  report,
FightReportChildren *  children 
)
inlinestatic

Starts fading the screen and the footer out and hides the message.

Definition at line 154 of file report.c.

Referenced by STFGTREP_runReport().

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

◆ STFGTREP_runReport()

void STFGTREP_runReport ( FightReport *  report,
FightReportChildren *  children 
)

The report while it runs: shows the panels, then for each partner that got exp its message and the raise (selectNextPartner, showExp, hideExp), then the money and the item won (giveMoney, giveItem), and fades out (startFadeOut)

Definition at line 166 of file report.c.

Referenced by STFGTREP_updateReport().

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

◆ STFGTREP_updateReport()

void STFGTREP_updateReport ( FightReport *  report,
FightReportChildren *  children 
)

The report's main task: loads the files, shares the battle's exp among the partners who fought and creates their panels.

Definition at line 288 of file report.c.

Referenced by STFGTREP_createScreen().

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

◆ STFGTREP_createScreen()

FightReport * STFGTREP_createScreen ( void  )

Creates the report (STFGTREP_updateReport) on the screen layer.

Definition at line 363 of file report.c.

Referenced by STFGTREP_updateScene().

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

◆ STFGTREP_loadFiles()

void STFGTREP_loadFiles ( void  )

Loads the report's sprites and requests its texts, the Digimon names and the item names.

< FGTRPT: STFGTREP's

< DIGNAM

< ITMNAM

Definition at line 373 of file report.c.

Here is the call graph for this function:

◆ STFGTREP_filesLoading()

s32 STFGTREP_filesLoading ( void  )

Whether STFGTREP_loadFiles's texts are still loading.

< FGTRPT: STFGTREP's

< DIGNAM

< ITMNAM

Definition at line 385 of file report.c.