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

TileLayoutHandler that fills by default with a given Tile and allows to change any Tile from that default selection. More...

#include <SelectionTileLayoutHandler.hpp>

Inheritance diagram for yap::SelectionTileLayoutHandler:
Collaboration diagram for yap::SelectionTileLayoutHandler:

List of all members.

Public Member Functions

 SelectionTileLayoutHandler ()
virtual ~SelectionTileLayoutHandler ()
void SetSize (uint width, uint height)
void SetDefaultTile (Tile *tile)
void SetTile (uint x, uint y, Tile *tile)
- Public Member Functions inherited from yap::TileLayoutHandler
void Execute (TileLayer &tileLayer)
- Public Member Functions inherited from yap::ILoadable
virtual ~ILoadable ()

Private Member Functions

 DISALLOW_COPY (SelectionTileLayoutHandler)
virtual void HandleExecute (TileLayer &tileLayer)

Private Attributes

uint width_
uint height_
TiledefaultTile_
collection::Matrix< Tile * > tiles_

Static Private Attributes

static const uint DEFAULT_WIDTH = 0
static const uint DEFAULT_HEIGHT = 0

Additional Inherited Members

- Protected Member Functions inherited from yap::TileLayoutHandler
 TileLayoutHandler ()
virtual ~TileLayoutHandler ()

Detailed Description

TileLayoutHandler that fills by default with a given Tile and allows to change any Tile from that default selection.

Definition at line 16 of file SelectionTileLayoutHandler.hpp.


Constructor & Destructor Documentation

yap::SelectionTileLayoutHandler::SelectionTileLayoutHandler ( )

Definition at line 10 of file SelectionTileLayoutHandler.cpp.

yap::SelectionTileLayoutHandler::~SelectionTileLayoutHandler ( )
virtual

Definition at line 19 of file SelectionTileLayoutHandler.cpp.


Member Function Documentation

yap::SelectionTileLayoutHandler::DISALLOW_COPY ( SelectionTileLayoutHandler  )
private
void yap::SelectionTileLayoutHandler::HandleExecute ( TileLayer tileLayer)
privatevirtual

Implements yap::TileLayoutHandler.

Definition at line 55 of file SelectionTileLayoutHandler.cpp.

Here is the call graph for this function:

void yap::SelectionTileLayoutHandler::SetDefaultTile ( Tile tile)

Definition at line 41 of file SelectionTileLayoutHandler.cpp.

Here is the caller graph for this function:

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

Definition at line 33 of file SelectionTileLayoutHandler.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 50 of file SelectionTileLayoutHandler.cpp.

Here is the caller graph for this function:


Member Data Documentation

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

Definition at line 34 of file SelectionTileLayoutHandler.hpp.

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

Definition at line 33 of file SelectionTileLayoutHandler.hpp.

Tile* yap::SelectionTileLayoutHandler::defaultTile_
private

Definition at line 39 of file SelectionTileLayoutHandler.hpp.

uint yap::SelectionTileLayoutHandler::height_
private

Definition at line 37 of file SelectionTileLayoutHandler.hpp.

collection::Matrix<Tile*> yap::SelectionTileLayoutHandler::tiles_
private

Definition at line 40 of file SelectionTileLayoutHandler.hpp.

uint yap::SelectionTileLayoutHandler::width_
private

Definition at line 36 of file SelectionTileLayoutHandler.hpp.


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