Peoplemon  0.1.0
Peoplemon 3 game source documentation
BattleStats.hpp
Go to the documentation of this file.
1 #ifndef CORE_PEOPLEMON_BATTLESTATS_HPP
2 #define CORE_PEOPLEMON_BATTLESTATS_HPP
3 
5 
6 namespace core
7 {
8 namespace pplmn
9 {
16 struct BattleStats {
17  int acc;
18  int evade;
19  int crit;
20 
27  BattleStats(bool zero);
28 
35  static float getAccuracyMultiplier(int adjustedStage);
36 };
37 
38 } // namespace pplmn
39 } // namespace core
40 
41 #endif
Core classes and functionality for both the editor and game.
Stores stats that only exist during battle.
Definition: BattleStats.hpp:16
static float getAccuracyMultiplier(int adjustedStage)
Returns the accuracy multiplier for a move hitting.
Definition: BattleStats.cpp:12
BattleStats(bool zero)
Initializes all stats to 0 or to their defaults.
Definition: BattleStats.cpp:7