YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
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
"
5
# include "
YAPOG/System/IntTypes.hpp
"
6
7
namespace
yap
8
{
9
class
YAPOG_LIB
BaseStat
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
:
35
UInt16
value_
;
36
UInt16
individualValue_
;
37
UInt16
effortValue_
;
38
39
private
:
40
void
SetValue (
const
UInt16
& value);
41
42
static
const
UInt16
INITIAL_STAT_VALUE
;
43
static
const
UInt16
INITIAL_EFFORT_VALUE
;
44
};
45
}
// namespace yap
46
47
#endif // YAPOG_BASESTAT_HPP
YAPOG
include
YAPOG
Game
Pokemon
BaseStat.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1