|
Digimon World 3 decomp
The European version, SLES_039.36
|
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>
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) | |
What a battle starts from: WFIGHTMN_start zeroes it as one block, and FIGHTSTG_testRunAway reads runAttempts through a pointer to it.
| 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().
| 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().
| ElementBoost BattleState::boost |
Definition at line 228 of file battle.h.
Referenced by boostElement(), boostFieldElement(), boostRandomElement(), FIGHTSTG_getElementBoost(), FIGHTSTG_testEnemyCondition(), and WFIGHTMN_clearField().
| 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().
| s16 BattleState::kind |
the kind of battle
Definition at line 230 of file battle.h.
Referenced by bringSecondEnemy(), endBattleOnKnockOut(), FIGHTSTG_drawHud(), FIGHTSTG_rollHit(), FIGHTSTG_rollMagicHit(), FIGHTSTG_rollMultiHit(), FIGHTSTG_runItemScript(), FIGHTSTG_startAction(), FIGHTSTG_startEndBattle(), FIGHTSTG_updateCounterattack(), FIGHTSTG_updateFirstTech(), FIGHTSTG_updateItem(), FIGHTSTG_updateTechAction(), fleeWhenWeak(), setBattleKind(), WFIGHTMN_bringLastEnemy(), WFIGHTMN_countHit(), WFIGHTMN_endBattle(), WFIGHTMN_endWeakness(), WFIGHTMN_knockOut(), WFIGHTMN_limitDamage(), WFIGHTMN_recordTech(), WFIGHTMN_runTurn(), and WFIGHTMN_setIdleMotion().
| 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().
| 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().
| 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().