YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PokemonExperience.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_POKEMONEXPERIENCE_HPP
2
# define YAPOG_POKEMONEXPERIENCE_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/System/IntTypes.hpp
"
6
7
namespace
yap
8
{
9
class
YAPOG_LIB
PokemonExperience
10
{
11
DISALLOW_COPY
(
PokemonExperience
);
12
13
public
:
14
PokemonExperience
();
15
16
void
Init (
UInt32
experience);
17
void
InitFromLevel (
UInt16
level);
18
19
UInt32
GetValue ()
const
;
20
UInt32
GetExperienceToNextLevel ()
const
;
21
UInt32
GetTotalExperienceToNextLevel ()
const
;
22
float
GetExperiencePercentage ();
23
24
int
AddExperience (
const
UInt32
& value);
25
26
void
ComputeTotalExperienceToNextLevel (
UInt16
level);
27
UInt16
GetLevel ();
28
29
static
const
UInt16
INITIAL_LEVEL_VALUE
;
30
static
const
UInt16
MAX_LEVEL_VALUE
;
31
32
private
:
33
virtual
UInt32
ComputeExperienceFromLevel (
const
UInt16
& level) = 0;
34
35
UInt32
value_
;
36
UInt32
totalExperienceToNextLevel_
;
37
UInt32
previousValue_
;
38
UInt16
currentLevel_
;
39
static
const
UInt32
INITIAL_EXPERIENCE_VALUE
;
40
static
const
UInt32
MAX_EXPERIENCE_VALUE
;
41
};
42
}
// namespace yap
43
44
#endif // YAPOG_POKEMONEXPERIENCE_HPP
YAPOG
include
YAPOG
Game
Pokemon
PokemonExperience.hpp
Generated on Mon Sep 17 2012 22:24:23 for YAPOG by
1.8.1.1