YAPOG  0.0.1
Yet Another Pokemon Online Game
BaseStat.hpp
Go to the documentation of this file.
1 #ifndef YAPOG_BASESTAT_HPP
2 # define YAPOG_BASESTAT_HPP
3 
4 # include "YAPOG/Macros.hpp"
6 
7 namespace yap
8 {
10  {
11  public:
13  BaseStat ();
14 
15  BaseStat (const UInt16& ev, const UInt16& iv);
16 
18  const UInt16& GetValue () const;
19  const UInt16& GetIndividualValue () const;
20  const UInt16& GetEffortValue () const;
21 
23  void SetIndividualValue (const UInt16& iv);
24  void SetEffortValue (const UInt16& ev);
25 
26  void AddValue (int value);
27 
28  void ComputeValue (const int& base, const UInt16 level);
29  void ComputeValue (
30  const int& base,
31  const UInt16 level,
32  const float& natureFactor);
33 
34  protected:
38 
39  private:
40  void SetValue (const UInt16& value);
41 
42  static const UInt16 INITIAL_STAT_VALUE;
44  };
45 } // namespace yap
46 
47 #endif // YAPOG_BASESTAT_HPP