![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <World.hpp>
Public Member Functions | |
| World () | |
| virtual | ~World () |
| void | AddMap (const yap::ID &worldID, const yap::ID &id) |
| void | ChangeMap (const yap::ID &worldID) |
| Map & | GetCurrentMap () |
| void | SetDrawingPolicy (const yap::IWorldDrawingPolicy &drawingPolicy) |
| virtual void | HandleUpdate (const yap::Time &dt) |
| virtual void | HandleDraw (yap::IDrawingContext &context) |
| virtual void | HandleShow (bool isVisible) |
| virtual void | HandleChangeColor (const sf::Color &color) |
IDrawable members. | |
| virtual void | Draw (yap::IDrawingContext &context) |
| virtual bool | IsVisible () const |
| virtual void | Show (bool isVisible) |
| virtual void | ChangeColor (const sf::Color &color) |
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::World | |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Member Functions inherited from yap::IPacketHandler | |
| virtual | ~IPacketHandler () |
Public Attributes | |
Events. | |
| yap::Event< const World &, const yap::ChangeEventArgs < Map * > & > | OnMapChanged |
Private Member Functions | |
| DISALLOW_COPY (World) | |
| void | AddMap (Map *map) |
| void | RemoveMap (const yap::ID &worldID) |
Private Attributes | |
| bool | isVisible_ |
| sf::Color | color_ |
| const yap::IWorldDrawingPolicy * | drawingPolicy_ |
| yap::ID | currentMapID_ |
| Map * | currentMap_ |
| yap::collection::Map< yap::ID, Map * > | maps_ |
| yap::PacketHandler | packetHandler_ |
Static Private Attributes | |
| static const bool | DEFAULT_VISIBLE_STATE = true |
| static const sf::Color | DEFAULT_COLOR = sf::Color () |
| ycl::World::World | ( | ) |
Reimplemented from yap::World.
|
virtual |
Reimplemented from yap::World.
|
private |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 125 of file World.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 108 of file World.cpp.
| void ycl::World::ChangeMap | ( | const yap::ID & | worldID | ) |
|
private |
|
virtual |
Implements yap::IDrawable.
Definition at line 88 of file World.cpp.
| Map & ycl::World::GetCurrentMap | ( | ) |
|
virtual |
|
virtual |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 115 of file World.cpp.
|
virtual |
|
virtual |
Reimplemented from yap::World.
Definition at line 140 of file World.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 96 of file World.cpp.
|
private |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 130 of file World.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 120 of file World.cpp.
| void ycl::World::SetDrawingPolicy | ( | const yap::IWorldDrawingPolicy & | drawingPolicy | ) |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 135 of file World.cpp.
|
virtual |
Implements yap::IDrawable.
Definition at line 101 of file World.cpp.
|
staticprivate |
|
staticprivate |
|
private |
|
private |
| yap::Event<const World&, const yap::ChangeEventArgs<Map*>&> ycl::World::OnMapChanged |
|
private |