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

What a battle starts from: WFIGHTMN_start zeroes it as one block, and FIGHTSTG_testRunAway reads runAttempts through a pointer to it. More...

#include <battle/battle_mode/battle.h>

Collaboration diagram for BattleState:
[legend]

Data Fields

s32 active [2]
 each side's fighter
 
BattleFighter fighters [2][3]
 
ElementBoost boost
 
s16 runAttempts
 the player's, each of which makes running away likelier (FIGHTSTG_testRunAway)
 
s16 kind
 the kind of battle
 
s16 tech
 a technique id, set by WFIGHTMN
 
s8 hitCount
 BATTLE_KIND_FINAL_LAST: the partner's hits that did damage.
 
u8 weakened
 BATTLE_KIND_FINAL_LAST: the enemy is weakened (FIGHTSTG_weakenEnemy)
 

Detailed Description

What a battle starts from: WFIGHTMN_start zeroes it as one block, and FIGHTSTG_testRunAway reads runAttempts through a pointer to it.

Definition at line 225 of file battle.h.

Field Documentation

◆ active

s32 BattleState::active[2]

each side's fighter

Definition at line 226 of file battle.h.

Referenced by addFighters(), announceFirstTech(), announceKnockOut(), applyStatusEvent(), boostAttack(), boostDefense(), boostFieldElement(), boostFighterStat(), boostSpeed(), bringSecondEnemy(), confirmSwitchIn(), confuseFighters(), cureStatus(), cureStatusTech(), damageEnemy(), damagePlayer(), drainEnemy(), drainMp(), drainMp(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeDamage(), FIGHTSTG_computeHeal(), FIGHTSTG_computeMagicDamage(), FIGHTSTG_createTechWindows(), FIGHTSTG_drainMp(), FIGHTSTG_drawHud(), FIGHTSTG_getActiveFighter(), FIGHTSTG_getDamage(), FIGHTSTG_getEnemyAction(), FIGHTSTG_getEventDelay(), FIGHTSTG_getGaugeGain(), FIGHTSTG_getTechCost(), FIGHTSTG_inflictConfusion(), FIGHTSTG_inflictParalysis(), FIGHTSTG_inflictSleep(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), FIGHTSTG_pickEnemySwitch(), FIGHTSTG_queueAutoRecoverEnd(), FIGHTSTG_queueBlastEnd(), FIGHTSTG_queueDigidevolve(), FIGHTSTG_queueKnockOut(), FIGHTSTG_queuePartnerTech(), FIGHTSTG_queueRunAway(), FIGHTSTG_queueSpecialEnd(), FIGHTSTG_raiseAllStatus(), FIGHTSTG_raiseEachStatus(), FIGHTSTG_raiseOneStatus(), FIGHTSTG_rollCounter(), FIGHTSTG_rollCritical(), FIGHTSTG_rollDedigivolve(), FIGHTSTG_rollDrain(), FIGHTSTG_rollHit(), FIGHTSTG_rollMagicCritical(), FIGHTSTG_rollMagicHit(), FIGHTSTG_rollPoison(), FIGHTSTG_rollSleep(), FIGHTSTG_rollStatusRaise(), FIGHTSTG_rollSteal(), FIGHTSTG_setConfusedName(), FIGHTSTG_showCommands(), FIGHTSTG_showFighterNames(), FIGHTSTG_showMessage(), FIGHTSTG_showSwitchInChoices(), FIGHTSTG_showTechPage(), FIGHTSTG_startRestriction(), FIGHTSTG_testConfusion(), FIGHTSTG_testEnemyCondition(), FIGHTSTG_testParalysis(), FIGHTSTG_testRunAway(), FIGHTSTG_testWakeUp(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryParalysis(), FIGHTSTG_tryPoison(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateActionEvents(), FIGHTSTG_updateCommandMenu(), FIGHTSTG_updateCounterattack(), FIGHTSTG_updateDigivolveMenu(), FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateEnemyTurn(), FIGHTSTG_updateFirstTech(), FIGHTSTG_updateHpTweens(), FIGHTSTG_updateHud(), FIGHTSTG_updateOneHpTurn(), FIGHTSTG_updateSwitchMenu(), FIGHTSTG_updateTechMenu(), fillGauge(), findPairTech(), fleeWhenWeak(), healEnemy(), healPartner(), healWithTech(), lowerEnemySpeed(), lowerEnemyStat(), playCounterTech(), queueFirstTurns(), restoreHalfHpMp(), rollStatus(), runDigivolveMenu(), setUpDrain(), setUpItemTech(), showCounterResult(), showEnemyName(), showLoweredStat(), showOtherAttackResult(), showRunAway(), startTechScript(), stealEnemyItem(), useEnemyTech(), useItemTech(), wakeCounteredUp(), wakePlayerUp(), wakeUpOrCounter(), weakenEnemyDefense(), WFIGHTMN_blast(), WFIGHTMN_bringLastEnemy(), WFIGHTMN_cancelBlast(), WFIGHTMN_chargeGauge(), WFIGHTMN_digidevolve(), WFIGHTMN_digivolve(), WFIGHTMN_endBattle(), WFIGHTMN_endBlast(), WFIGHTMN_knockOut(), WFIGHTMN_limitDamage(), WFIGHTMN_markFought(), WFIGHTMN_recover(), WFIGHTMN_runCommand(), WFIGHTMN_setIdleMotion(), WFIGHTMN_startTech(), WFIGHTMN_tag(), and WFIGHTMN_takeDamage().

◆ fighters

BattleFighter BattleState::fighters[2][3]

Definition at line 227 of file battle.h.

Referenced by addFighters(), announceFirstTech(), boostAttack(), boostDefense(), boostSideStat(), boostSpeed(), bringSecondEnemy(), confirmSwitchIn(), confuseFighters(), cureStatus(), cureStatusTech(), damageEnemy(), damagePlayer(), drainEnemy(), drainMp(), drainMp(), FIGHTSTG_changeBoost(), FIGHTSTG_computeCounterDamage(), FIGHTSTG_computeStats(), FIGHTSTG_createTechWindows(), FIGHTSTG_cureStatus(), FIGHTSTG_drainMp(), FIGHTSTG_drawHud(), FIGHTSTG_findFighters(), FIGHTSTG_getActiveFighter(), FIGHTSTG_getDamage(), FIGHTSTG_getEnemyAction(), FIGHTSTG_getGaugeGain(), FIGHTSTG_getHeal(), FIGHTSTG_getPairDigimon(), FIGHTSTG_inflictConfusion(), FIGHTSTG_inflictParalysis(), FIGHTSTG_inflictPoison(), FIGHTSTG_inflictSleep(), FIGHTSTG_pickEnemySwitch(), FIGHTSTG_reviveFighter(), FIGHTSTG_rollCounter(), FIGHTSTG_rollCritical(), FIGHTSTG_rollDedigivolve(), FIGHTSTG_rollMagicCritical(), FIGHTSTG_rollSteal(), FIGHTSTG_setMessageName(), FIGHTSTG_showCommands(), FIGHTSTG_showDigivolveNames(), FIGHTSTG_showFightersMessage(), FIGHTSTG_showSwitchFighters(), FIGHTSTG_showSwitchInChoices(), FIGHTSTG_showTechPage(), FIGHTSTG_startRestriction(), FIGHTSTG_testConfusion(), FIGHTSTG_testEnemyCondition(), FIGHTSTG_testParalysis(), FIGHTSTG_testWakeUp(), FIGHTSTG_tryConfusion(), FIGHTSTG_tryDrain(), FIGHTSTG_tryParalysis(), FIGHTSTG_tryPoison(), FIGHTSTG_trySleep(), FIGHTSTG_trySteal(), FIGHTSTG_updateActionEvents(), FIGHTSTG_updateCommandMenu(), FIGHTSTG_updateCounterattack(), FIGHTSTG_updateDigivolveMenu(), FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateEnemyTurn(), FIGHTSTG_updateFirstTech(), FIGHTSTG_updateHpTweens(), FIGHTSTG_updateHud(), FIGHTSTG_updateOneHpTurn(), FIGHTSTG_updateSwitchMenu(), FIGHTSTG_updateTechMenu(), FIGHTSTG_weakenEnemy(), findPairTech(), fleeWhenWeak(), healEnemy(), healPartner(), healWithTech(), lowerEnemySpeed(), lowerEnemyStat(), playCounterTech(), restoreHalfHpMp(), restoreSide(), reviveParty(), reviveSide(), setUpDrain(), setUpItemTech(), showCounterResult(), showEnemyName(), showOtherAttackResult(), startTechScript(), stealEnemyItem(), switchConfusionMusic(), useEnemyTech(), weakenEnemyDefense(), WFIGHTMN_blast(), WFIGHTMN_bringLastEnemy(), WFIGHTMN_cancelBlast(), WFIGHTMN_chargeGauge(), WFIGHTMN_cureStatus(), WFIGHTMN_digidevolve(), WFIGHTMN_digivolve(), WFIGHTMN_endBattle(), WFIGHTMN_endBlast(), WFIGHTMN_endBoost(), WFIGHTMN_endRestriction(), WFIGHTMN_endSpecial(), WFIGHTMN_initFighters(), WFIGHTMN_knockOut(), WFIGHTMN_limitDamage(), WFIGHTMN_markFought(), WFIGHTMN_pairTech(), WFIGHTMN_recover(), WFIGHTMN_restoreEnemy(), WFIGHTMN_runCommand(), WFIGHTMN_setIdleMotion(), WFIGHTMN_startTech(), WFIGHTMN_tag(), and WFIGHTMN_takeDamage().

◆ boost

◆ runAttempts

s16 BattleState::runAttempts

the player's, each of which makes running away likelier (FIGHTSTG_testRunAway)

Definition at line 229 of file battle.h.

Referenced by FIGHTSTG_testRunAway(), and WFIGHTMN_runCommand().

◆ kind

◆ tech

s16 BattleState::tech

a technique id, set by WFIGHTMN

Definition at line 231 of file battle.h.

Referenced by announceEnemyTech(), setBattleKind(), WFIGHTMN_bringLastEnemy(), and WFIGHTMN_recordTech().

◆ hitCount

s8 BattleState::hitCount

BATTLE_KIND_FINAL_LAST: the partner's hits that did damage.

Definition at line 232 of file battle.h.

Referenced by announceEnemyTech(), setBattleKind(), and WFIGHTMN_countHit().

◆ weakened

u8 BattleState::weakened

BATTLE_KIND_FINAL_LAST: the enemy is weakened (FIGHTSTG_weakenEnemy)

Definition at line 233 of file battle.h.

Referenced by announceEnemyTech(), FIGHTSTG_weakenEnemy(), setBattleKind(), WFIGHTMN_countHit(), WFIGHTMN_endWeakness(), and WFIGHTMN_setIdleMotion().


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