![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <PlayerData.hpp>
Public Member Functions | |
| PlayerData () | |
| void | LoadFromTable (const PlayerDataTable &pdt) |
| void | UpdatePlayTime (const yap::Time &dt) |
| void | ChangeMoney (int value) |
| const yap::ID & | GetAccountID () const |
| Getters. | |
| const yap::Vector2 & | GetPosition () const |
| const yap::ID & | GetMapID () const |
| const yap::Time & | GetPlayTime () const |
| int | GetStepCount () const |
| const yap::Vector2 & | GetRespawnSpot () const |
| int | GetFleeCount () const |
| int | GetBoxNumber () const |
| int | GetBattleCount () const |
| yap::UInt32 | GetMoney () const |
| void | SetAccountID (const yap::ID &value) |
| Setters. | |
| void | SetPosition (const yap::Vector2 &value) |
| void | SetMapID (const yap::ID &value) |
| void | SetPlayTime (const yap::Time &value) |
| void | SetStepCount (int value) |
| void | SetRespawnSpot (const yap::Vector2 &value) |
| void | SetFleeCount (int value) |
| void | SetBoxNumber (int value) |
| void | SetBattleCount (int value) |
| void | SetMoney (yap::UInt32 value) |
Static Public Attributes | |
| static const yap::ID | DEFAULT_ACCOUNT_ID |
| static const yap::Vector2 | DEFAULT_POSITION |
| static const yap::ID | DEFAULT_MAP_ID |
| static const yap::Vector2 | DEFAULT_RESPAWN_SPOT |
| static const int | DEFAULT_BOX_NUMBER = 1 |
| static const int | DEFAULT_MONEY = 500 |
Private Member Functions | |
| DISALLOW_COPY (PlayerData) | |
Private Attributes | |
| yap::ID | accountID_ |
| yap::Vector2 | position_ |
| yap::ID | mapID_ |
| yap::Time | playTime_ |
| int | stepCount_ |
| yap::Vector2 | respawnSpot_ |
| int | fleeCount_ |
| int | boxNumber_ |
| int | battleCount_ |
| yap::UInt32 | money_ |
Definition at line 14 of file PlayerData.hpp.
| yse::PlayerData::PlayerData | ( | ) |
Definition at line 15 of file PlayerData.cpp.
| void yse::PlayerData::ChangeMoney | ( | int | value | ) |
Definition at line 48 of file PlayerData.cpp.
|
private |
| const yap::ID & yse::PlayerData::GetAccountID | ( | ) | const |
| int yse::PlayerData::GetBattleCount | ( | ) | const |
| int yse::PlayerData::GetBoxNumber | ( | ) | const |
| int yse::PlayerData::GetFleeCount | ( | ) | const |
| const yap::ID & yse::PlayerData::GetMapID | ( | ) | const |
| yap::UInt32 yse::PlayerData::GetMoney | ( | ) | const |
| const yap::Time & yse::PlayerData::GetPlayTime | ( | ) | const |
| const yap::Vector2 & yse::PlayerData::GetPosition | ( | ) | const |
| const yap::Vector2 & yse::PlayerData::GetRespawnSpot | ( | ) | const |
| int yse::PlayerData::GetStepCount | ( | ) | const |
| void yse::PlayerData::LoadFromTable | ( | const PlayerDataTable & | pdt | ) |
| void yse::PlayerData::SetAccountID | ( | const yap::ID & | value | ) |
| void yse::PlayerData::SetBattleCount | ( | int | value | ) |
| void yse::PlayerData::SetBoxNumber | ( | int | value | ) |
| void yse::PlayerData::SetFleeCount | ( | int | value | ) |
| void yse::PlayerData::SetMapID | ( | const yap::ID & | value | ) |
| void yse::PlayerData::SetMoney | ( | yap::UInt32 | value | ) |
| void yse::PlayerData::SetPlayTime | ( | const yap::Time & | value | ) |
| void yse::PlayerData::SetPosition | ( | const yap::Vector2 & | value | ) |
| void yse::PlayerData::SetRespawnSpot | ( | const yap::Vector2 & | value | ) |
| void yse::PlayerData::SetStepCount | ( | int | value | ) |
| void yse::PlayerData::UpdatePlayTime | ( | const yap::Time & | dt | ) |
|
private |
Definition at line 57 of file PlayerData.hpp.
|
private |
Definition at line 65 of file PlayerData.hpp.
|
private |
Definition at line 64 of file PlayerData.hpp.
|
static |
Definition at line 49 of file PlayerData.hpp.
|
static |
Definition at line 53 of file PlayerData.hpp.
|
static |
Definition at line 51 of file PlayerData.hpp.
|
static |
Definition at line 54 of file PlayerData.hpp.
|
static |
Definition at line 50 of file PlayerData.hpp.
|
static |
Definition at line 52 of file PlayerData.hpp.
|
private |
Definition at line 63 of file PlayerData.hpp.
|
private |
Definition at line 59 of file PlayerData.hpp.
|
private |
Definition at line 66 of file PlayerData.hpp.
|
private |
Definition at line 60 of file PlayerData.hpp.
|
private |
Definition at line 58 of file PlayerData.hpp.
|
private |
Definition at line 62 of file PlayerData.hpp.
|
private |
Definition at line 61 of file PlayerData.hpp.