YAPOG  0.0.1
Yet Another Pokemon Online Game
yse::PlayerData Class Reference

#include <PlayerData.hpp>

Collaboration diagram for yse::PlayerData:

List of all members.

Public Member Functions

 PlayerData ()
void LoadFromTable (const PlayerDataTable &pdt)
void UpdatePlayTime (const yap::Time &dt)
void ChangeMoney (int value)
const yap::IDGetAccountID () const
 Getters.
const yap::Vector2GetPosition () const
const yap::IDGetMapID () const
const yap::TimeGetPlayTime () const
int GetStepCount () const
const yap::Vector2GetRespawnSpot () 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_

Detailed Description

Definition at line 14 of file PlayerData.hpp.


Constructor & Destructor Documentation

yse::PlayerData::PlayerData ( )

Definition at line 15 of file PlayerData.cpp.


Member Function Documentation

void yse::PlayerData::ChangeMoney ( int  value)

Definition at line 48 of file PlayerData.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yse::PlayerData::DISALLOW_COPY ( PlayerData  )
private
const yap::ID & yse::PlayerData::GetAccountID ( ) const

Getters.

Definition at line 57 of file PlayerData.cpp.

Here is the caller graph for this function:

int yse::PlayerData::GetBattleCount ( ) const

Definition at line 73 of file PlayerData.cpp.

Here is the caller graph for this function:

int yse::PlayerData::GetBoxNumber ( ) const

Definition at line 71 of file PlayerData.cpp.

Here is the caller graph for this function:

int yse::PlayerData::GetFleeCount ( ) const

Definition at line 69 of file PlayerData.cpp.

Here is the caller graph for this function:

const yap::ID & yse::PlayerData::GetMapID ( ) const

Definition at line 61 of file PlayerData.cpp.

Here is the caller graph for this function:

yap::UInt32 yse::PlayerData::GetMoney ( ) const

Definition at line 75 of file PlayerData.cpp.

Here is the caller graph for this function:

const yap::Time & yse::PlayerData::GetPlayTime ( ) const

Definition at line 63 of file PlayerData.cpp.

Here is the caller graph for this function:

const yap::Vector2 & yse::PlayerData::GetPosition ( ) const

Definition at line 59 of file PlayerData.cpp.

Here is the caller graph for this function:

const yap::Vector2 & yse::PlayerData::GetRespawnSpot ( ) const

Definition at line 67 of file PlayerData.cpp.

Here is the caller graph for this function:

int yse::PlayerData::GetStepCount ( ) const

Definition at line 65 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::LoadFromTable ( const PlayerDataTable pdt)

Definition at line 29 of file PlayerData.cpp.

Here is the call graph for this function:

void yse::PlayerData::SetAccountID ( const yap::ID value)

Setters.

Definition at line 79 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetBattleCount ( int  value)

Definition at line 95 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetBoxNumber ( int  value)

Definition at line 93 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetFleeCount ( int  value)

Definition at line 91 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetMapID ( const yap::ID value)

Definition at line 83 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetMoney ( yap::UInt32  value)

Definition at line 97 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetPlayTime ( const yap::Time value)

Definition at line 85 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetPosition ( const yap::Vector2 value)

Definition at line 81 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetRespawnSpot ( const yap::Vector2 value)

Definition at line 89 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::SetStepCount ( int  value)

Definition at line 87 of file PlayerData.cpp.

Here is the caller graph for this function:

void yse::PlayerData::UpdatePlayTime ( const yap::Time dt)

Definition at line 43 of file PlayerData.cpp.

Here is the caller graph for this function:


Member Data Documentation

yap::ID yse::PlayerData::accountID_
private

Definition at line 57 of file PlayerData.hpp.

int yse::PlayerData::battleCount_
private

Definition at line 65 of file PlayerData.hpp.

int yse::PlayerData::boxNumber_
private

Definition at line 64 of file PlayerData.hpp.

const yap::ID yse::PlayerData::DEFAULT_ACCOUNT_ID
static

Definition at line 49 of file PlayerData.hpp.

const int yse::PlayerData::DEFAULT_BOX_NUMBER = 1
static

Definition at line 53 of file PlayerData.hpp.

const yap::ID yse::PlayerData::DEFAULT_MAP_ID
static

Definition at line 51 of file PlayerData.hpp.

const int yse::PlayerData::DEFAULT_MONEY = 500
static

Definition at line 54 of file PlayerData.hpp.

const yap::Vector2 yse::PlayerData::DEFAULT_POSITION
static

Definition at line 50 of file PlayerData.hpp.

const yap::Vector2 yse::PlayerData::DEFAULT_RESPAWN_SPOT
static

Definition at line 52 of file PlayerData.hpp.

int yse::PlayerData::fleeCount_
private

Definition at line 63 of file PlayerData.hpp.

yap::ID yse::PlayerData::mapID_
private

Definition at line 59 of file PlayerData.hpp.

yap::UInt32 yse::PlayerData::money_
private

Definition at line 66 of file PlayerData.hpp.

yap::Time yse::PlayerData::playTime_
private

Definition at line 60 of file PlayerData.hpp.

yap::Vector2 yse::PlayerData::position_
private

Definition at line 58 of file PlayerData.hpp.

yap::Vector2 yse::PlayerData::respawnSpot_
private

Definition at line 62 of file PlayerData.hpp.

int yse::PlayerData::stepCount_
private

Definition at line 61 of file PlayerData.hpp.


The documentation for this class was generated from the following files: