YAPOG  0.0.1
Yet Another Pokemon Online Game
ycl::World Class Reference

#include <World.hpp>

Inheritance diagram for ycl::World:
Collaboration diagram for ycl::World:

List of all members.

Public Member Functions

 World ()
virtual ~World ()
void AddMap (const yap::ID &worldID, const yap::ID &id)
void ChangeMap (const yap::ID &worldID)
MapGetCurrentMap ()
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::IWorldDrawingPolicydrawingPolicy_
yap::ID currentMapID_
MapcurrentMap_
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 ()

Detailed Description

Definition at line 22 of file World.hpp.


Constructor & Destructor Documentation

ycl::World::World ( )

Reimplemented from yap::World.

Definition at line 11 of file World.cpp.

ycl::World::~World ( )
virtual

Reimplemented from yap::World.

Definition at line 24 of file World.cpp.


Member Function Documentation

void ycl::World::AddMap ( const yap::ID worldID,
const yap::ID id 
)

Definition at line 56 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::World::AddMap ( Map map)
private

Definition at line 67 of file World.cpp.

Here is the call graph for this function:

void ycl::World::AddRelay ( yap::IPacketHandler relay)
virtual

Implements yap::IPacketHandler.

Definition at line 125 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::World::ChangeColor ( const sf::Color &  color)
virtual

Implements yap::IDrawable.

Definition at line 108 of file World.cpp.

Here is the call graph for this function:

void ycl::World::ChangeMap ( const yap::ID worldID)

Definition at line 28 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

ycl::World::DISALLOW_COPY ( World  )
private
void ycl::World::Draw ( yap::IDrawingContext context)
virtual

Implements yap::IDrawable.

Definition at line 88 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Map & ycl::World::GetCurrentMap ( )

Definition at line 51 of file World.cpp.

Here is the caller graph for this function:

void ycl::World::HandleChangeColor ( const sf::Color &  color)
virtual

Definition at line 156 of file World.cpp.

Here is the caller graph for this function:

void ycl::World::HandleDraw ( yap::IDrawingContext context)
virtual

Definition at line 146 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ycl::World::HandlePacket ( yap::IPacket packet)
virtual

Implements yap::IPacketHandler.

Definition at line 115 of file World.cpp.

Here is the call graph for this function:

void ycl::World::HandleShow ( bool  isVisible)
virtual

Definition at line 152 of file World.cpp.

Here is the caller graph for this function:

void ycl::World::HandleUpdate ( const yap::Time dt)
virtual

Reimplemented from yap::World.

Definition at line 140 of file World.cpp.

Here is the call graph for this function:

bool ycl::World::IsVisible ( ) const
virtual

Implements yap::IDrawable.

Definition at line 96 of file World.cpp.

Here is the caller graph for this function:

void ycl::World::RemoveMap ( const yap::ID worldID)
private

Definition at line 75 of file World.cpp.

Here is the call graph for this function:

void ycl::World::RemoveRelay ( yap::IPacketHandler relay)
virtual

Implements yap::IPacketHandler.

Definition at line 130 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

bool ycl::World::SendPacket ( yap::IPacket packet)
virtual

Implements yap::IPacketHandler.

Definition at line 120 of file World.cpp.

Here is the call graph for this function:

void ycl::World::SetDrawingPolicy ( const yap::IWorldDrawingPolicy drawingPolicy)

Definition at line 80 of file World.cpp.

Here is the caller graph for this function:

void ycl::World::SetParent ( yap::IPacketHandler parent)
virtual

Implements yap::IPacketHandler.

Definition at line 135 of file World.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void ycl::World::Show ( bool  isVisible)
virtual

Implements yap::IDrawable.

Definition at line 101 of file World.cpp.

Here is the call graph for this function:


Member Data Documentation

sf::Color ycl::World::color_
private

Definition at line 81 of file World.hpp.

Map* ycl::World::currentMap_
private

Definition at line 86 of file World.hpp.

yap::ID ycl::World::currentMapID_
private

Definition at line 85 of file World.hpp.

const sf::Color ycl::World::DEFAULT_COLOR = sf::Color ()
staticprivate

Definition at line 78 of file World.hpp.

const bool ycl::World::DEFAULT_VISIBLE_STATE = true
staticprivate

Definition at line 77 of file World.hpp.

const yap::IWorldDrawingPolicy* ycl::World::drawingPolicy_
private

Definition at line 83 of file World.hpp.

bool ycl::World::isVisible_
private

Definition at line 80 of file World.hpp.

yap::collection::Map<yap::ID, Map*> ycl::World::maps_
private

Definition at line 87 of file World.hpp.

yap::Event<const World&, const yap::ChangeEventArgs<Map*>&> ycl::World::OnMapChanged

Definition at line 62 of file World.hpp.

yap::PacketHandler ycl::World::packetHandler_
private

Definition at line 89 of file World.hpp.


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