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

#include <User.hpp>

Inheritance diagram for yse::User:
Collaboration diagram for yse::User:

List of all members.

Public Member Functions

 User ()
virtual ~User ()
void SaveAccountData ()
void ChangeMap (const yap::ID &mapWorldID, const yap::Vector2 &mapPoint)
WorldGetWorld ()
MapGetMap ()
AccountGetAccount ()
const PlayerGetPlayer () const
void SetWorld (World *world)
void RemoveFromWorld ()
const yap::StringGetLogin () const
bool Login (const yap::String &login, const yap::String &password, const yap::String &ip)
bool Register (const yap::String &login, const yap::String &password, const yap::String &email, const yap::String &ip)
void SetDatabaseManager (yap::DatabaseManager *databaseManager)
void ServerTick (const yap::Time &dt)
IPacketHandler members.
virtual bool HandlePacket (yap::IPacket &packet)
virtual bool SendPacket (yap::IPacket &packet)
virtual void AddRelay (yap::IPacketHandler *relay)
virtual void RemoveRelay (yap::IPacketHandler *relay)
virtual void SetParent (yap::IPacketHandler *parent)
- Public Member Functions inherited from yap::IPacketHandler
virtual ~IPacketHandler ()

Private Member Functions

 DISALLOW_COPY (User)
void SetMap (Map *map)
void SetPlayer (Player *player)
void HandleClientRequestStartInfo (yap::IPacket &packet)
void HandleClientInfoApplyForce (yap::IPacket &packet)
void HandleClientInfoGameMessage (yap::IPacket &packet)
void SendChangeMap (Map &map)
void SendGameMessage (const yap::GameMessage &message)
void SendPokemonTeam (PokemonTeam &pokemonTeam)
void SendChangeMoney (int value)

Private Attributes

yap::PacketHandler packetHandler_
yap::String login_
Worldworld_
Mapmap_
Playerplayer_
yap::DatabaseManagerdatabaseManager_
Accountaccount_

Detailed Description

Definition at line 24 of file User.hpp.


Constructor & Destructor Documentation

yse::User::User ( )

Definition at line 20 of file User.cpp.

Here is the call graph for this function:

yse::User::~User ( )
virtual

Definition at line 33 of file User.cpp.


Member Function Documentation

void yse::User::AddRelay ( yap::IPacketHandler relay)
virtual

Implements yap::IPacketHandler.

Definition at line 94 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::ChangeMap ( const yap::ID mapWorldID,
const yap::Vector2 mapPoint 
)

Definition at line 138 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

yse::User::DISALLOW_COPY ( User  )
private
Account & yse::User::GetAccount ( )

Definition at line 119 of file User.cpp.

Here is the caller graph for this function:

const yap::String & yse::User::GetLogin ( ) const

Definition at line 52 of file User.cpp.

Here is the caller graph for this function:

Map & yse::User::GetMap ( )

Definition at line 114 of file User.cpp.

Here is the caller graph for this function:

const Player & yse::User::GetPlayer ( ) const

Definition at line 124 of file User.cpp.

Here is the caller graph for this function:

World & yse::User::GetWorld ( )

Definition at line 109 of file User.cpp.

Here is the caller graph for this function:

void yse::User::HandleClientInfoApplyForce ( yap::IPacket packet)
private

Definition at line 225 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::HandleClientInfoGameMessage ( yap::IPacket packet)
private

Definition at line 245 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::HandleClientRequestStartInfo ( yap::IPacket packet)
private
 \xrefitem todo 17.
Todo:
Reach from DB

Definition at line 182 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yse::User::HandlePacket ( yap::IPacket packet)
virtual

Implements yap::IPacketHandler.

Definition at line 84 of file User.cpp.

Here is the call graph for this function:

bool yse::User::Login ( const yap::String login,
const yap::String password,
const yap::String ip 
)

Definition at line 57 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yse::User::Register ( const yap::String login,
const yap::String password,
const yap::String email,
const yap::String ip 
)

Definition at line 70 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::RemoveFromWorld ( )

Definition at line 47 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::RemoveRelay ( yap::IPacketHandler relay)
virtual

Implements yap::IPacketHandler.

Definition at line 99 of file User.cpp.

Here is the call graph for this function:

void yse::User::SaveAccountData ( )

Definition at line 37 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SendChangeMap ( Map map)
private

Definition at line 232 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SendChangeMoney ( int  value)
private

Definition at line 341 of file User.cpp.

Here is the call graph for this function:

void yse::User::SendGameMessage ( const yap::GameMessage message)
private

Definition at line 257 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool yse::User::SendPacket ( yap::IPacket packet)
virtual

Implements yap::IPacketHandler.

Definition at line 89 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SendPokemonTeam ( PokemonTeam pokemonTeam)
private

Definition at line 268 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::ServerTick ( const yap::Time dt)

Definition at line 176 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SetDatabaseManager ( yap::DatabaseManager databaseManager)

Definition at line 171 of file User.cpp.

Here is the caller graph for this function:

void yse::User::SetMap ( Map map)
private

Definition at line 129 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SetParent ( yap::IPacketHandler parent)
virtual

Implements yap::IPacketHandler.

Definition at line 104 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SetPlayer ( Player player)
private

Definition at line 156 of file User.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yse::User::SetWorld ( World world)

Definition at line 42 of file User.cpp.

Here is the caller graph for this function:


Member Data Documentation

Account* yse::User::account_
private

Definition at line 97 of file User.hpp.

yap::DatabaseManager* yse::User::databaseManager_
private

Definition at line 96 of file User.hpp.

yap::String yse::User::login_
private

Definition at line 91 of file User.hpp.

Map* yse::User::map_
private

Definition at line 94 of file User.hpp.

yap::PacketHandler yse::User::packetHandler_
private

Definition at line 89 of file User.hpp.

Player* yse::User::player_
private

Definition at line 95 of file User.hpp.

World* yse::User::world_
private

Definition at line 93 of file User.hpp.


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