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

FIGHTSTG's fighter data, loaded into FIGHTSTG_fighterCache. More...

Include dependency graph for fighter_info.c:

Go to the source code of this file.

Functions

static void * getFightersPart (FightersFile *file, s32 offset)
 The part of the fighters' file at an offset from its start.
 
FighterInfo * FIGHTSTG_getFighterInfo (s32 id)
 the match depends on reaching the cache through the symbol until a fighter is found, and on each branch storing and returning its own info
 
void FIGHTSTG_cacheFighter (s32 index)
 Loads entry index of the fighters file into FIGHTSTG_fighterCache: its id and kind, and its info, an enemy's from kind 0x3A on or else a partner's.
 
FaceRect * FIGHTSTG_getFighterFace (s32 id)
 Fighter id's face parts (FaceRect), in the fighters file.
 
void FIGHTSTG_getFighterRange (u32 enemy, s32 *min, s32 *max)
 The first and last entries of the fighters file that are enemies (enemy set) or partners.
 

Detailed Description

FIGHTSTG's fighter data, loaded into FIGHTSTG_fighterCache.

Definition in file fighter_info.c.

Function Documentation

◆ getFightersPart()

static void * getFightersPart ( FightersFile *  file,
s32  offset 
)
inlinestatic

The part of the fighters' file at an offset from its start.

Definition at line 6 of file fighter_info.c.

Referenced by FIGHTSTG_cacheFighter(), FIGHTSTG_getFighterInfo(), and FIGHTSTG_getFighterRange().

Here is the caller graph for this function:

◆ FIGHTSTG_getFighterInfo()

FighterInfo * FIGHTSTG_getFighterInfo ( s32  id)

the match depends on reaching the cache through the symbol until a fighter is found, and on each branch storing and returning its own info

Definition at line 12 of file fighter_info.c.

Referenced by FIGHTSTG_getFighterFace().

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

◆ FIGHTSTG_cacheFighter()

void FIGHTSTG_cacheFighter ( s32  index)

Loads entry index of the fighters file into FIGHTSTG_fighterCache: its id and kind, and its info, an enemy's from kind 0x3A on or else a partner's.

Definition at line 57 of file fighter_info.c.

Here is the call graph for this function:

◆ FIGHTSTG_getFighterFace()

FaceRect * FIGHTSTG_getFighterFace ( s32  id)

Fighter id's face parts (FaceRect), in the fighters file.

Definition at line 81 of file fighter_info.c.

Here is the call graph for this function:

◆ FIGHTSTG_getFighterRange()

void FIGHTSTG_getFighterRange ( u32  enemy,
s32 *  min,
s32 *  max 
)

The first and last entries of the fighters file that are enemies (enemy set) or partners.

Definition at line 90 of file fighter_info.c.

Here is the call graph for this function: