Digimon World 3 decomp
The European version, SLES_039.36
Loading...
Searching...
No Matches
BattleSetup Struct Reference

The next battle: FIELDSTG_startEncounter fills it (the stage select its first words), FIGHTSTG and WFIGHTMN read it; the gauges carry over from battle to battle. More...

#include <engine/game_state.h>

Collaboration diagram for BattleSetup:
[legend]

Data Fields

s32 randomBattles
 the field starts random battles; the stage select toggles it (Select)
 
s32 debugUpDown
 -1 to 3, set by the stage select (pad 2's up/down); nothing reads it
 
s32 debugLeftRight
 -1 to 7, set by the stage select (pad 2's left/right); nothing reads it
 
s32 stage
 the battle's fight stage
 
s32 battle
 the battle (BattleResult.battle)
 
s32 music
 the battle's music
 
BattleEnemy enemies [3]
 
u8 ambushChance
 a chance that WFIGHTMN scales by level
 
u8 encounterKind
 Encounter.kind; only the enemies' condition 13 reads it.
 
u8 blocks [12]
 by BATTLE_BLOCK_*: what the player can't do in the battle
 
s32 hasPrize
 1: the battle always gives prize
 
s32 prize
 an item (BattleResult.item)
 
void(* clearGauges )(void)
 
s16 gauges [8]
 filled in battle, up to 1000
 

Detailed Description

The next battle: FIELDSTG_startEncounter fills it (the stage select its first words), FIGHTSTG and WFIGHTMN read it; the gauges carry over from battle to battle.

Definition at line 379 of file game_state.h.

Field Documentation

◆ randomBattles

s32 BattleSetup::randomBattles

the field starts random battles; the stage select toggles it (Select)

Definition at line 380 of file game_state.h.

Referenced by FIELDSTG_countBattleSteps(), STAGSLCT_startStageSelect(), and STAGSLCT_updateStageSelect().

◆ debugUpDown

s32 BattleSetup::debugUpDown

-1 to 3, set by the stage select (pad 2's up/down); nothing reads it

Definition at line 381 of file game_state.h.

Referenced by editBattleDebug().

◆ debugLeftRight

s32 BattleSetup::debugLeftRight

-1 to 7, set by the stage select (pad 2's left/right); nothing reads it

Definition at line 382 of file game_state.h.

Referenced by editBattleDebug().

◆ stage

◆ battle

s32 BattleSetup::battle

◆ music

◆ enemies

◆ ambushChance

u8 BattleSetup::ambushChance

a chance that WFIGHTMN scales by level

Definition at line 387 of file game_state.h.

Referenced by FIELDSTG_startEncounter(), and WFIGHTMN_rollAmbush().

◆ encounterKind

u8 BattleSetup::encounterKind

Encounter.kind; only the enemies' condition 13 reads it.

Definition at line 388 of file game_state.h.

Referenced by FIELDSTG_startEncounter(), and FIGHTSTG_testEnemyCondition().

◆ blocks

◆ hasPrize

s32 BattleSetup::hasPrize

1: the battle always gives prize

Definition at line 390 of file game_state.h.

Referenced by FIELDSTG_startEncounter(), and WFIGHTMN_endBattle().

◆ prize

s32 BattleSetup::prize

an item (BattleResult.item)

Definition at line 391 of file game_state.h.

Referenced by WFIGHTMN_endBattle().

◆ clearGauges

void(* BattleSetup::clearGauges) (void)

Definition at line 392 of file game_state.h.

Referenced by STDWTITL_leaveTitle().

◆ gauges

s16 BattleSetup::gauges[8]

filled in battle, up to 1000

Definition at line 393 of file game_state.h.

Referenced by clearBattleGauges(), FIGHTSTG_drawHud(), fillGauge(), WFIGHTMN_cancelBlast(), and WFIGHTMN_chargeGauge().


The documentation for this struct was generated from the following file: