![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <Session.hpp>
Public Member Functions | |
| void | Refresh () |
| void | Login (const yap::String &login, const yap::String &password) |
| void | Register (const yap::String &login, const yap::String &password, const yap::String &email) |
| void | Disconnect () |
| User & | GetUser () |
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 () |
Static Public Member Functions | |
| static Session & | Instance () |
Public Attributes | |
| yap::Event< Session &, yap::EmptyEventArgs > | OnLoginValidation |
| yap::Event< Session &, yap::EmptyEventArgs > | OnRegistrationValidation |
| yap::Event< Session &, yap::EmptyEventArgs > | OnLoginError |
| yap::Event< Session &, yap::EmptyEventArgs > | OnRegistrationError |
Private Member Functions | |
| DISALLOW_COPY (Session) | |
| Session () | |
| virtual | ~Session () |
| bool | Connect () |
| void | HandleReception () |
| void | HandleServerInfoLoginValidation (yap::IPacket &packet) |
| void | HandleServerInfoRegistrationValidation (yap::IPacket &packet) |
| void | HandleServerInfoLoginError (yap::IPacket &packet) |
| void | HandleServerInfoRegistrationError (yap::IPacket &packet) |
| void | HandleServerInfoPrimaryData (yap::IPacket &packet) |
| void | UpdateObjectFactory (yap::IPacket &packet, yap::ObjectFactory &objectFactory) |
Static Private Attributes | |
| static const yap::String | DEFAULT_REMOTE_IP |
| static const yap::Int16 | DEFAULT_REMOTE_PORT = 8008 |
| static const yap::Time | DEFAULT_RECEPTION_SLEEP_DELAY = yap::Time (0.005f) |
Definition at line 18 of file Session.hpp.
|
private |
|
privatevirtual |
Definition at line 42 of file Session.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 123 of file Session.cpp.
|
private |
Definition at line 140 of file Session.cpp.
|
private |
| void ycl::Session::Disconnect | ( | ) |
Definition at line 159 of file Session.cpp.
| User & ycl::Session::GetUser | ( | ) |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 113 of file Session.cpp.
|
private |
Definition at line 172 of file Session.cpp.
|
private |
Definition at line 207 of file Session.cpp.
|
private |
Definition at line 189 of file Session.cpp.
|
private |
Definition at line 221 of file Session.cpp.
|
private |
Definition at line 214 of file Session.cpp.
|
private |
Definition at line 200 of file Session.cpp.
|
static |
| void ycl::Session::Login | ( | const yap::String & | login, |
| const yap::String & | password | ||
| ) |
Definition at line 73 of file Session.cpp.
| void ycl::Session::Refresh | ( | ) |
Definition at line 53 of file Session.cpp.
| void ycl::Session::Register | ( | const yap::String & | login, |
| const yap::String & | password, | ||
| const yap::String & | |||
| ) |
Definition at line 91 of file Session.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 128 of file Session.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 118 of file Session.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 135 of file Session.cpp.
|
private |
Definition at line 226 of file Session.cpp.
Definition at line 76 of file Session.hpp.
|
staticprivate |
Definition at line 73 of file Session.hpp.
|
staticprivate |
Definition at line 74 of file Session.hpp.
|
private |
Definition at line 89 of file Session.hpp.
|
private |
Definition at line 84 of file Session.hpp.
|
private |
Definition at line 85 of file Session.hpp.
| yap::Event<Session&, yap::EmptyEventArgs> ycl::Session::OnLoginError |
Definition at line 51 of file Session.hpp.
| yap::Event<Session&, yap::EmptyEventArgs> ycl::Session::OnLoginValidation |
.
Definition at line 49 of file Session.hpp.
| yap::Event<Session&, yap::EmptyEventArgs> ycl::Session::OnRegistrationError |
Definition at line 52 of file Session.hpp.
| yap::Event<Session&, yap::EmptyEventArgs> ycl::Session::OnRegistrationValidation |
Definition at line 50 of file Session.hpp.
|
private |
Definition at line 78 of file Session.hpp.
|
private |
Definition at line 81 of file Session.hpp.
|
private |
Definition at line 80 of file Session.hpp.
|
private |
Definition at line 83 of file Session.hpp.
|
private |
Definition at line 87 of file Session.hpp.