![]() |
YAPOG
0.0.1
Yet Another Pokemon Online Game
|
#include <Map.hpp>
Public Member Functions | |
| Map (const yap::ID &id) | |
| virtual | ~Map () |
| void | AddTileLayer (yap::uint height, yap::TileLayoutHandler *tileLayoutHandler) |
| Player & | GetPlayer (const yap::ID &worldID) |
| bool | ContainsPlayer (const yap::ID &worldID) const |
| void | AddPlayer (Player *player) |
| void | RemovePlayer (Player *player) |
| void | RemovePlayer (const yap::ID &worldID) |
| template<typename T > | |
| void | AddDrawableStaticObject (T *object) |
| template<typename T > | |
| void | RemoveDrawableStaticObject (T *object) |
| template<typename T > | |
| void | AddDrawableDynamicObject (T *object) |
| void | RemoveDrawableDynamicObject (const yap::ID &worldID) |
| void | ClearDynamicObjects () |
| void | SetWorldDrawingPolicy (const yap::IWorldDrawingPolicy &worldDrawingPolicy) |
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::Map | |
| const ID & | GetID () const |
| void | SetID (const ID &id) |
| const String & | GetName () const |
| void | SetName (const String &name) |
| const ID & | GetWorldID () const |
| void | SetWorldID (const ID &worldID) |
| const uint & | GetWidth () const |
| const uint & | GetHeight () const |
| void | SetSize (uint width, uint height) |
| const Vector2 & | GetSize () const |
| void | SetCollidableArea (CollidableArea *collidableArea) |
| virtual void | Update (const Time &dt) |
| Makes the object evolve for one frame of the game. | |
| virtual Map * | Clone () const |
Public Member Functions inherited from yap::IUpdateable | |
| virtual | ~IUpdateable () |
Public Member Functions inherited from yap::IIDLoadable | |
| virtual | ~IIDLoadable () |
Public Member Functions inherited from yap::ICloneable | |
| virtual | ~ICloneable () |
Public Member Functions inherited from yap::IDrawable | |
| virtual | ~IDrawable () |
Public Member Functions inherited from yap::IPacketHandler | |
| virtual | ~IPacketHandler () |
Public Attributes | |
| yap::Event< Map &, Player & > | OnPlayerAdded |
| yap::Event< Map &, Player & > | OnPlayerRemoved |
Private Member Functions | |
| DISALLOW_COPY (Map) | |
| void | AddDrawableDynamicObject (const yap::ID &worldID, yap::IDrawableDynamicWorldObject *drawableObject) |
| void | AddDrawableObject (yap::IDrawableWorldObject *drawableObject) |
| void | RemoveDrawableObject (yap::IDrawableWorldObject *drawableObject) |
| virtual bool | SupportsEvents () const |
| void | HandleServerInfoObjectMoveInfo (yap::IPacket &packet) |
| void | HandleServerInfoUpdateObjectState (yap::IPacket &packet) |
Static Private Attributes | |
| static const yap::String | DRAW_ORDER_HANDLER_NAME = "DrawOrder" |
|
explicit |
|
inline |
|
private |
|
private |
|
inline |
| void ycl::Map::AddPlayer | ( | Player * | player | ) |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 128 of file Map.cpp.
| void ycl::Map::AddTileLayer | ( | yap::uint | height, |
| yap::TileLayoutHandler * | tileLayoutHandler | ||
| ) |
|
virtual |
Implements yap::IDrawable.
| void ycl::Map::ClearDynamicObjects | ( | ) |
| bool ycl::Map::ContainsPlayer | ( | const yap::ID & | worldID | ) | const |
|
private |
|
virtual |
Implements yap::IDrawable.
Definition at line 94 of file Map.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 118 of file Map.cpp.
|
private |
|
private |
|
protectedvirtual |
|
virtual |
Implements yap::IDrawable.
Definition at line 105 of file Map.cpp.
| void ycl::Map::RemoveDrawableDynamicObject | ( | const yap::ID & | worldID | ) |
|
private |
|
inline |
| void ycl::Map::RemovePlayer | ( | Player * | player | ) |
| void ycl::Map::RemovePlayer | ( | const yap::ID & | worldID | ) |
|
virtual |
Implements yap::IPacketHandler.
Definition at line 133 of file Map.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 123 of file Map.cpp.
|
virtual |
Implements yap::IPacketHandler.
Definition at line 138 of file Map.cpp.
| void ycl::Map::SetWorldDrawingPolicy | ( | const yap::IWorldDrawingPolicy & | worldDrawingPolicy | ) |
|
virtual |
Implements yap::IDrawable.
|
privatevirtual |
|
staticprivate |
|
private |
|
private |
| yap::Event<Map&, Player&> ycl::Map::OnPlayerAdded |
| yap::Event<Map&, Player&> ycl::Map::OnPlayerRemoved |
|
private |
|
private |
|
private |
|
private |