YAPOG  0.0.1
Yet Another Pokemon Online Game
yap::TileLayer Class Reference

#include <TileLayer.hpp>

Inheritance diagram for yap::TileLayer:
Collaboration diagram for yap::TileLayer:

List of all members.

Public Member Functions

 TileLayer (uint width, uint height)
virtual ~TileLayer ()
const TileGetTile (uint x, uint y) const
TileGetTile (uint x, uint y)
void SetTile (uint x, uint y, Tile *tile)
const uintGetWidth () const
const uintGetHeight () const
IDrawable members.
virtual void Draw (IDrawingContext &context)
virtual bool IsVisible () const
virtual void Show (bool isVisible)
virtual void ChangeColor (const sf::Color &color)
IUpdateable members.
virtual void Update (const Time &dt)
 Makes the object evolve for one frame of the game.
ICloneable members.
virtual TileLayerClone () const
- Public Member Functions inherited from yap::IDrawable
virtual ~IDrawable ()
- Public Member Functions inherited from yap::IUpdateable
virtual ~IUpdateable ()
- Public Member Functions inherited from yap::ICloneable
virtual ~ICloneable ()

Protected Member Functions

 TileLayer (const TileLayer &copy)

Private Member Functions

 DISALLOW_ASSIGN (TileLayer)

Private Attributes

uint width_
uint height_
collection::Array< Tile * > tiles_
bool isVisible_
sf::Color color_

Static Private Attributes

static const bool DEFAULT_VISIBLE_STATE = true
static const sf::Color DEFAULT_COLOR = sf::Color ()
static const uint DEFAULT_DRAW_MARGIN = 4

Detailed Description

Definition at line 16 of file TileLayer.hpp.


Constructor & Destructor Documentation

yap::TileLayer::TileLayer ( uint  width,
uint  height 
)

Definition at line 13 of file TileLayer.cpp.

Here is the caller graph for this function:

yap::TileLayer::~TileLayer ( )
virtual

Definition at line 22 of file TileLayer.cpp.

yap::TileLayer::TileLayer ( const TileLayer copy)
protected

Definition at line 28 of file TileLayer.cpp.


Member Function Documentation

void yap::TileLayer::ChangeColor ( const sf::Color &  color)
virtual

Implements yap::IDrawable.

Definition at line 123 of file TileLayer.cpp.

TileLayer * yap::TileLayer::Clone ( ) const
virtual

Implements yap::ICloneable.

Definition at line 41 of file TileLayer.cpp.

Here is the call graph for this function:

yap::TileLayer::DISALLOW_ASSIGN ( TileLayer  )
private
void yap::TileLayer::Draw ( IDrawingContext context)
virtual

Implements yap::IDrawable.

Definition at line 82 of file TileLayer.cpp.

Here is the call graph for this function:

const uint & yap::TileLayer::GetHeight ( ) const

Definition at line 77 of file TileLayer.cpp.

Here is the caller graph for this function:

const Tile & yap::TileLayer::GetTile ( uint  x,
uint  y 
) const

Definition at line 46 of file TileLayer.cpp.

Tile & yap::TileLayer::GetTile ( uint  x,
uint  y 
)

Definition at line 53 of file TileLayer.cpp.

const uint & yap::TileLayer::GetWidth ( ) const

Definition at line 72 of file TileLayer.cpp.

Here is the caller graph for this function:

bool yap::TileLayer::IsVisible ( ) const
virtual

Implements yap::IDrawable.

Definition at line 113 of file TileLayer.cpp.

Here is the caller graph for this function:

void yap::TileLayer::SetTile ( uint  x,
uint  y,
Tile tile 
)

Definition at line 60 of file TileLayer.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TileLayer::Show ( bool  isVisible)
virtual

Implements yap::IDrawable.

Definition at line 118 of file TileLayer.cpp.

void yap::TileLayer::Update ( const Time dt)
virtual

Makes the object evolve for one frame of the game.

Parameters:
dtDelta time since the last frame.

Implements yap::IUpdateable.

Definition at line 131 of file TileLayer.cpp.


Member Data Documentation

sf::Color yap::TileLayer::color_
private

Definition at line 71 of file TileLayer.hpp.

const sf::Color yap::TileLayer::DEFAULT_COLOR = sf::Color ()
staticprivate

Definition at line 62 of file TileLayer.hpp.

const uint yap::TileLayer::DEFAULT_DRAW_MARGIN = 4
staticprivate

Definition at line 63 of file TileLayer.hpp.

const bool yap::TileLayer::DEFAULT_VISIBLE_STATE = true
staticprivate

Definition at line 61 of file TileLayer.hpp.

uint yap::TileLayer::height_
private

Definition at line 66 of file TileLayer.hpp.

bool yap::TileLayer::isVisible_
private

Definition at line 70 of file TileLayer.hpp.

collection::Array<Tile*> yap::TileLayer::tiles_
private

Definition at line 68 of file TileLayer.hpp.

uint yap::TileLayer::width_
private

Definition at line 65 of file TileLayer.hpp.


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