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

#include <TileLayerStack.hpp>

Inheritance diagram for yap::TileLayerStack:
Collaboration diagram for yap::TileLayerStack:

List of all members.

Public Member Functions

 TileLayerStack ()
virtual ~TileLayerStack ()
void SetSize (uint width, uint height)
void AddTileLayer (uint height, TileLayoutHandler *layoutHandler)
const TileLayerGetTileLayer (uint height) const
TileLayerGetTileLayer (uint height)
 TileLayerStack (const TileLayerStack &copy)
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 TileLayerStackClone () 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 ()

Private Member Functions

 DISALLOW_ASSIGN (TileLayerStack)
void AddTileLayer (uint height, TileLayer *tileLayer)

Private Attributes

uint width_
uint height_
collection::Map< uint,
TileLayer * > 
tileLayers_

Static Private Attributes

static const uint DEFAULT_WIDTH = 0
static const uint DEFAULT_HEIGHT = 0
static const uint DEFAULT_MAX_HEIGHT = 3

Detailed Description

Definition at line 16 of file TileLayerStack.hpp.


Constructor & Destructor Documentation

yap::TileLayerStack::TileLayerStack ( )

Definition at line 13 of file TileLayerStack.cpp.

Here is the caller graph for this function:

yap::TileLayerStack::~TileLayerStack ( )
virtual

Definition at line 20 of file TileLayerStack.cpp.

yap::TileLayerStack::TileLayerStack ( const TileLayerStack copy)

Definition at line 26 of file TileLayerStack.cpp.

Here is the call graph for this function:


Member Function Documentation

void yap::TileLayerStack::AddTileLayer ( uint  height,
TileLayoutHandler layoutHandler 
)

Definition at line 51 of file TileLayerStack.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void yap::TileLayerStack::AddTileLayer ( uint  height,
TileLayer tileLayer 
)
private

Definition at line 46 of file TileLayerStack.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 102 of file TileLayerStack.cpp.

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

Implements yap::ICloneable.

Definition at line 35 of file TileLayerStack.cpp.

Here is the call graph for this function:

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

Implements yap::IDrawable.

Definition at line 81 of file TileLayerStack.cpp.

Here is the caller graph for this function:

const TileLayer & yap::TileLayerStack::GetTileLayer ( uint  height) const

Definition at line 71 of file TileLayerStack.cpp.

TileLayer & yap::TileLayerStack::GetTileLayer ( uint  height)

Definition at line 76 of file TileLayerStack.cpp.

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

Implements yap::IDrawable.

Definition at line 87 of file TileLayerStack.cpp.

void yap::TileLayerStack::SetSize ( uint  width,
uint  height 
)

Definition at line 40 of file TileLayerStack.cpp.

Here is the caller graph for this function:

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

Implements yap::IDrawable.

Definition at line 96 of file TileLayerStack.cpp.

void yap::TileLayerStack::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 108 of file TileLayerStack.cpp.


Member Data Documentation

const uint yap::TileLayerStack::DEFAULT_HEIGHT = 0
staticprivate

Definition at line 61 of file TileLayerStack.hpp.

const uint yap::TileLayerStack::DEFAULT_MAX_HEIGHT = 3
staticprivate

Definition at line 62 of file TileLayerStack.hpp.

const uint yap::TileLayerStack::DEFAULT_WIDTH = 0
staticprivate

Definition at line 60 of file TileLayerStack.hpp.

uint yap::TileLayerStack::height_
private

Definition at line 65 of file TileLayerStack.hpp.

collection::Map<uint, TileLayer*> yap::TileLayerStack::tileLayers_
private

Definition at line 66 of file TileLayerStack.hpp.

uint yap::TileLayerStack::width_
private

Definition at line 64 of file TileLayerStack.hpp.


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