Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
battle_table.c
Go to the documentation of this file.
1/* FIGHTSTG's battle table lookups. */
2
4
5/* Enemy Digimon id's index in the battle table (FILE_BATTLE_TABLE: each
6 enemy's stats, techniques and actions), or -1 */
9 s32 i;
10
11 for (i = 0; table[i].id != 0; i++) {
12 if (table[i].id == id) {
13 return i;
14 }
15 }
16 return -1;
17}
18
19/* Enemy Digimon id's entry in the battle table, or NULL */
23
24 if (i >= 0) {
25 return &table[i];
26 }
27 return NULL;
28}
#define FILE_BATTLE_TABLE
A table of 0x46-byte entries that start with an s16 id, 0 after the last (FIGHTSTG_findBattleTableInd...
Definition battle.h:18
FIGHTSTG.PRO: the battle.
s32 FIGHTSTG_findBattleTableIndex(s32 id)
Enemy Digimon id's index in the battle table (FILE_BATTLE_TABLE: each enemy's stats,...
Definition battle_table.c:7
BattleTableEntry * FIGHTSTG_getBattleTableEntry(s32 id)
Enemy Digimon id's entry in the battle table, or NULL.
#define NULL
Definition common.h:17
signed int s32
Definition common.h:11
FileCache FILE_CACHE
The file cache.
Definition file_cache.c:7
void *(* load)(u32 file)
Definition file.h:92