|
Digimon World 3 decomp
The European version, SLES_039.36
|
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>
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 | |
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.
| 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().
| 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().
| 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().
| s32 BattleSetup::stage |
the battle's fight stage
Definition at line 383 of file game_state.h.
Referenced by applyEntranceExtras(), FIELDSTG_startBattle(), FIGHTSTG_runScriptStage(), FIGHTSTG_updateDigimonChange(), FIGHTSTG_updateRoot(), runStageList(), setUpBattle(), turnAroundFighters(), and WFIGHTMN_updateMenu().
| s32 BattleSetup::battle |
the battle (BattleResult.battle)
Definition at line 384 of file game_state.h.
Referenced by FIELDSTG_startEncounter(), FIGHTSTG_testEnemyCondition(), setBattleKind(), and WFIGHTMN_endBattle().
| s32 BattleSetup::music |
the battle's music
Definition at line 385 of file game_state.h.
Referenced by applyEntranceExtras(), FIELDSTG_startBattle(), FIGHTSTG_playBattleSound(), returnToBattle(), setUpBattle(), switchConfusionMusic(), and WFIGHTMN_updateMenu().
| BattleEnemy BattleSetup::enemies[3] |
Definition at line 386 of file game_state.h.
Referenced by addFighters(), computeEnemyStats(), FIELDSTG_startEncounter(), FIGHTSTG_computeDamage(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_showFighterNames(), WFIGHTMN_initFighters(), and WFIGHTMN_rollAmbush().
| 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().
| 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().
| u8 BattleSetup::blocks[12] |
by BATTLE_BLOCK_*: what the player can't do in the battle
Definition at line 389 of file game_state.h.
Referenced by boostFighterStat(), confuseFighters(), drainEnemy(), FIELDSTG_startEncounter(), FIGHTSTG_lowerAttack(), FIGHTSTG_rollDrain(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollSteal(), FIGHTSTG_runItemScript(), FIGHTSTG_testRunAway(), lowerEnemySpeed(), lowerEnemyStat(), rollStatus(), setUpDrain(), and weakenEnemyDefense().
| 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().
| s32 BattleSetup::prize |
an item (BattleResult.item)
Definition at line 391 of file game_state.h.
Referenced by WFIGHTMN_endBattle().
| void(* BattleSetup::clearGauges) (void) |
Definition at line 392 of file game_state.h.
Referenced by STDWTITL_leaveTitle().
| 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().