A layer container.
More...
#include <Layer.h>
List of all members.
Public Member Functions |
| | mapLayer (TiXmlNode *node, const std::string &name, int width, int height) |
| | mapLayer (const std::string &name, int width, int height) |
| | ~mapLayer () |
| void | setTile (Uint x, Uint y, Uint tsetId, Uint tsetIndex) |
| Uint | getTileSetId (Uint x, Uint y) |
| Uint | getTileIndex (Uint x, Uint y) |
| Tile & | getTile (Uint x, Uint y) |
| bool | isLoaded () |
| const std::string & | getName () |
Private Member Functions |
| bool | parseTiles (TiXmlNode *node) |
Private Attributes |
| Uint | mWidth |
| Uint | mHeight |
| bool | mIsLoaded |
| TileGrid | mTileGrid |
| string | mName |
Detailed Description
A layer container.
The mapLayer class contains tiles associated with a layer. Note that this class should not be used by itself outside of the Map Class.
Constructor & Destructor Documentation
| mapLayer::mapLayer |
( |
TiXmlNode * |
node, |
|
|
const std::string & |
name, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
| mapLayer::mapLayer |
( |
const std::string & |
name, |
|
|
int |
width, |
|
|
int |
height | |
|
) |
| | |
Member Function Documentation
| const std::string& mapLayer::getName |
( |
|
) |
[inline] |
| bool mapLayer::isLoaded |
( |
|
) |
[inline] |
| bool mapLayer::parseTiles |
( |
TiXmlNode * |
node |
) |
[private] |
Internal parser function.
- Parameters:
-
This function is only called internally and should never be accessed outside the Class.
Inserts a Tile from a TileSet at the given map X/Y coordinates.
- Parameters:
-
| x | Map X Location. |
| y | Map Y Location. |
| tset | Tset ID. |
| tsetIndex | Tset Tile Index. |
Member Data Documentation
Internal flag indicating whether or not we properly loaded.
Name of the Layer. Used in the editor.
A 2D array of Tile objects.
The documentation for this class was generated from the following files:
- C:/Development/LoM/client/src/Core/Map/Components/Layer.h
- C:/Development/LoM/client/src/Core/Map/Components/Layer.cpp