7 return (
u8 *)file + offset;
31 while (entry->
id != 0) {
32 if (entry->
id ==
id) {
67 cache->
id = entry->
id;
97 while (entry->
id != 0) {
98 if ((entry->
kind >= 0x3A) == enemy) {
FighterCache FIGHTSTG_fighterCache
the fighters' data, loaded one at a time
FIGHTSTG.PRO: the battle.
void FIGHTSTG_cacheFighter(s32 index)
Loads entry index of the fighters file into FIGHTSTG_fighterCache: its id and kind,...
FaceRect * FIGHTSTG_getFighterFace(s32 id)
Fighter id's face parts (FaceRect), in the fighters file.
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,...
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.
FileCache FILE_CACHE
The file cache.
#define FILE_FIGHTERS
The fighters' file, which FIGHTSTG_fighterCache.funcs reads.
A part of a fighter's face (its eyes, then up to 14 more) and where its three frames are in its textu...
FIGHTSTG_fighterCache: the last fighter getInfo found, and the fighters' file's functions.
s32 isEnemy
the kind is 0x3A or more
s32 index
in the partners' or the enemies' table
FighterInfo * partnerInfo
both hold the info found, read by isEnemy
An entry of the fighters' file's list.
u8 kind
0x3A and up: an enemy
u8 index
in the partners' or the enemies' table
An enemy's FighterInfo: it has 3 cameras where a partner has 12.
A fighter's entry in its file, from FIGHTSTG_fighterCache.funcs.getInfo.
s32 face
its FaceRects: an offset in the fighters' file
The fighters' file: offsets from its start.
s32 enemies
FighterInfoEnemy.
s32 base
the address FighterInfo.face assumes the file is at
s32 entries
FighterEntry, up to an id 0.