![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Stores stats that only exist during battle. More...
#include <BattleStats.hpp>
Public Member Functions | |
BattleStats (bool zero) | |
Initializes all stats to 0 or to their defaults. More... | |
Static Public Member Functions | |
static float | getAccuracyMultiplier (int adjustedStage) |
Returns the accuracy multiplier for a move hitting. More... | |
Public Attributes | |
int | acc |
int | evade |
int | crit |
Stores stats that only exist during battle.
Definition at line 16 of file BattleStats.hpp.
core::pplmn::BattleStats::BattleStats | ( | bool | zero | ) |
Initializes all stats to 0 or to their defaults.
zero | True to zero, false for defaults |
Definition at line 7 of file BattleStats.cpp.
|
static |
Returns the accuracy multiplier for a move hitting.
adjustedStage | Users acc stage minus defenders evd stage, clamped to [-6, 6] |
Definition at line 12 of file BattleStats.cpp.
int core::pplmn::BattleStats::acc |
Definition at line 17 of file BattleStats.hpp.
int core::pplmn::BattleStats::crit |
Definition at line 19 of file BattleStats.hpp.
int core::pplmn::BattleStats::evade |
Definition at line 18 of file BattleStats.hpp.