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

FIGHTSTG_battleFuncs. More...

#include <battle/battle_mode/battle.h>

Collaboration diagram for BattleFuncs:
[legend]

Data Fields

BattleStats stats [2]
 the player's, then the enemy's
 
BattleStats *(* computeStats )(u8 side, s32 which, s32 index)
 
s32(* computeDamage )(u8 side, s32 tech)
 of each hit
 
s32(* computeMagicDamage )(u8 side, s32 id)
 
s32(* getDamage )(s32 *args)
 of the event whose args these are
 
s32(* computeCounterDamage )(u8 side, s32 id, s32 value)
 
s32(* computeHeal )(u8 side, s32 id)
 
s32(* getHeal )(u8 side, s32 index, s32 big)
 a part of its max HP
 
s32(* rollHit )(u8 side, s32 tech)
 whether a hit lands
 
s32(* rollMagicHit )(u8 side, s32 id)
 
s32(* rollPoison )(u8 side, s32 id)
 
s32(* rollParalysis )(u8 side, s32 id)
 
s32(* rollConfusion )(u8 side, s32 id)
 
s32(* rollSleep )(u8 side, s32 id)
 
s32(* rollKnockOut )(u8 side, s32 id)
 
s32(* rollSteal )(u8 side, s32 id)
 
s32(* rollDrain )(u8 side, s32 id)
 
s32(* rollDedigivolve )(s32 actor, s32 id)
 
s32(* rollStatusRaise )(s32 actor, s32 id)
 
s32(* rollNoSwitch )(s32 actor, s32 id)
 
s32(* rollNoDigivolve )(s32 actor, s32 id)
 
s32(* rollCounter )(s32 arg0, s32 arg1)
 
s32(* testRunAway )(u8 side)
 
s32(* testWakeUp )(u8 side, s32 value)
 
s32(* testConfusion )(u8 side)
 
s32(* testParalysis )(u8 side)
 whether side's paralysis costs it the turn
 
void(* changeBoost )(u8 side, s32 index, s32 stat, s32 percent)
 changes a fighter's stat boost
 
s32(* getGaugeGain )(s32 damage)
 from the partner's damage, up to 1000
 
s32(* getTechCost )(u8 side, s32 id)
 

Detailed Description

FIGHTSTG_battleFuncs.

Definition at line 329 of file battle.h.

Field Documentation

◆ stats

◆ computeStats

◆ computeDamage

s32(* BattleFuncs::computeDamage) (u8 side, s32 tech)

of each hit

Definition at line 332 of file battle.h.

Referenced by FIGHTSTG_startAction(), and FIGHTSTG_startEndBattle().

◆ computeMagicDamage

s32(* BattleFuncs::computeMagicDamage) (u8 side, s32 id)

Definition at line 333 of file battle.h.

Referenced by FIGHTSTG_startAction(), FIGHTSTG_startDoubleMagic(), and setUpItemTech().

◆ getDamage

s32(* BattleFuncs::getDamage) (s32 *args)

of the event whose args these are

Definition at line 334 of file battle.h.

Referenced by WFIGHTMN_takeDamage().

◆ computeCounterDamage

s32(* BattleFuncs::computeCounterDamage) (u8 side, s32 id, s32 value)

Definition at line 335 of file battle.h.

Referenced by FIGHTSTG_updateCounterattack().

◆ computeHeal

s32(* BattleFuncs::computeHeal) (u8 side, s32 id)

Definition at line 336 of file battle.h.

Referenced by getHealDamage(), healEnemy(), and healWithTech().

◆ getHeal

s32(* BattleFuncs::getHeal) (u8 side, s32 index, s32 big)

a part of its max HP

Definition at line 337 of file battle.h.

Referenced by WFIGHTMN_recover().

◆ rollHit

s32(* BattleFuncs::rollHit) (u8 side, s32 tech)

whether a hit lands

Definition at line 338 of file battle.h.

Referenced by FIGHTSTG_rollMultiHit(), FIGHTSTG_startAction(), FIGHTSTG_startEndBattle(), and FIGHTSTG_updateCounterattack().

◆ rollMagicHit

s32(* BattleFuncs::rollMagicHit) (u8 side, s32 id)

Definition at line 339 of file battle.h.

Referenced by FIGHTSTG_startAction(), and FIGHTSTG_startDoubleMagic().

◆ rollPoison

s32(* BattleFuncs::rollPoison) (u8 side, s32 id)

Definition at line 340 of file battle.h.

Referenced by FIGHTSTG_tryPoison().

◆ rollParalysis

s32(* BattleFuncs::rollParalysis) (u8 side, s32 id)

Definition at line 341 of file battle.h.

Referenced by FIGHTSTG_tryParalysis().

◆ rollConfusion

s32(* BattleFuncs::rollConfusion) (u8 side, s32 id)

Definition at line 342 of file battle.h.

Referenced by FIGHTSTG_tryConfusion().

◆ rollSleep

s32(* BattleFuncs::rollSleep) (u8 side, s32 id)

Definition at line 343 of file battle.h.

Referenced by FIGHTSTG_trySleep().

◆ rollKnockOut

s32(* BattleFuncs::rollKnockOut) (u8 side, s32 id)

Definition at line 344 of file battle.h.

Referenced by FIGHTSTG_tryKnockOut().

◆ rollSteal

s32(* BattleFuncs::rollSteal) (u8 side, s32 id)

Definition at line 345 of file battle.h.

Referenced by FIGHTSTG_trySteal().

◆ rollDrain

s32(* BattleFuncs::rollDrain) (u8 side, s32 id)

Definition at line 346 of file battle.h.

Referenced by FIGHTSTG_tryDrain().

◆ rollDedigivolve

s32(* BattleFuncs::rollDedigivolve) (s32 actor, s32 id)

Definition at line 347 of file battle.h.

Referenced by useSupportTech().

◆ rollStatusRaise

s32(* BattleFuncs::rollStatusRaise) (s32 actor, s32 id)

◆ rollNoSwitch

s32(* BattleFuncs::rollNoSwitch) (s32 actor, s32 id)

Definition at line 349 of file battle.h.

Referenced by FIGHTSTG_tryNoSwitch(), and useSupportTech().

◆ rollNoDigivolve

s32(* BattleFuncs::rollNoDigivolve) (s32 actor, s32 id)

Definition at line 350 of file battle.h.

Referenced by useSupportTech().

◆ rollCounter

s32(* BattleFuncs::rollCounter) (s32 arg0, s32 arg1)

Definition at line 352 of file battle.h.

Referenced by FIGHTSTG_updateCounterattack().

◆ testRunAway

s32(* BattleFuncs::testRunAway) (u8 side)

Definition at line 355 of file battle.h.

Referenced by WFIGHTMN_runAway().

◆ testWakeUp

s32(* BattleFuncs::testWakeUp) (u8 side, s32 value)

Definition at line 356 of file battle.h.

Referenced by FIGHTSTG_updateEnemyAttack(), FIGHTSTG_updateFirstTech(), and wakeUpOrCounter().

◆ testConfusion

s32(* BattleFuncs::testConfusion) (u8 side)

Definition at line 357 of file battle.h.

Referenced by FIGHTSTG_updateConfusedMenu().

◆ testParalysis

s32(* BattleFuncs::testParalysis) (u8 side)

whether side's paralysis costs it the turn

Definition at line 358 of file battle.h.

Referenced by FIGHTSTG_updateCounterattack(), FIGHTSTG_updateEnemyTurn(), and WFIGHTMN_runCommand().

◆ changeBoost

void(* BattleFuncs::changeBoost) (u8 side, s32 index, s32 stat, s32 percent)

changes a fighter's stat boost

Definition at line 359 of file battle.h.

Referenced by boostFighterStat(), boostSideStat(), FIGHTSTG_lowerAttack(), FIGHTSTG_lowerDefense(), and FIGHTSTG_reviveFighter().

◆ getGaugeGain

s32(* BattleFuncs::getGaugeGain) (s32 damage)

from the partner's damage, up to 1000

Definition at line 360 of file battle.h.

Referenced by WFIGHTMN_chargeGauge().

◆ getTechCost

s32(* BattleFuncs::getTechCost) (u8 side, s32 id)

Definition at line 361 of file battle.h.

Referenced by FIGHTSTG_showTechPage(), and FIGHTSTG_updateTechMenu().


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