YAPOG
0.0.1
Yet Another Pokemon Online Game
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
PlayerDataTable.hpp
Go to the documentation of this file.
1
#ifndef YAPOG_PLAYERDATATABLE_HPP
2
# define YAPOG_PLAYERDATATABLE_HPP
3
4
# include "
YAPOG/Macros.hpp
"
5
# include "
YAPOG/Game/ID.hpp
"
6
# include "
Database/Tables/ITable.hpp
"
7
# include "
YAPOG/Graphics/Vector2.hpp
"
8
9
namespace
yse
10
{
11
class
PlayerData;
12
13
class
PlayerDataTable
:
public
ITable
14
{
15
DISALLOW_COPY
(
PlayerDataTable
);
16
public
:
17
explicit
PlayerDataTable
(
const
yap::ID
& accountID);
18
19
void
LoadFromPlayerData
(
const
PlayerData
& playerData);
20
21
void
DisplayData
();
22
24
const
yap::ID
&
GetAccountID
()
const
;
25
const
yap::Vector2
&
GetPosition
()
const
;
26
const
yap::ID
&
GetMapID
()
const
;
27
int
GetPlayTime
()
const
;
28
int
GetStepCount
()
const
;
29
const
yap::Vector2
&
GetRespawnSpot
()
const
;
30
int
GetFleeCount
()
const
;
31
int
GetBoxNumber
()
const
;
32
int
GetBattleCount
()
const
;
33
int
GetMoney
()
const
;
34
36
void
SetAccountID
(
const
yap::ID
& value);
37
void
SetPosition
(
const
yap::Vector2
& value);
38
void
SetMapID
(
const
yap::ID
& value);
39
void
SetPlayTime
(
int
value);
40
void
SetStepCount
(
int
value);
41
void
SetRespawnSpot
(
const
yap::Vector2
& value);
42
void
SetFleeCount
(
int
value);
43
void
SetBoxNumber
(
int
value);
44
void
SetBattleCount
(
int
value);
45
void
SetMoney
(
int
value);
46
47
private
:
48
yap::ID
accountID_
;
49
yap::Vector2
position_
;
50
yap::ID
mapID_
;
51
int
playTime_
;
52
int
stepCount_
;
53
yap::Vector2
respawnSpot_
;
54
int
fleeCount_
;
55
int
boxNumber_
;
56
int
battleCount_
;
57
int
money_
;
58
};
59
}
// namespace yse
60
61
#endif // YAPOG_PLAYERDATATABLE_HPP
YAPOG.Server
include
Database
Tables
PlayerDataTable.hpp
Generated on Mon Sep 17 2012 22:24:22 for YAPOG by
1.8.1.1