tmxparser  2.1.0
 All Classes Functions Variables Pages
Public Member Functions | List of all members
Tmx::TileLayer Class Reference

Used for storing information about the tile ids for every tile layer. More...

#include <TmxTileLayer.h>

Inheritance diagram for Tmx::TileLayer:
Tmx::Layer

Public Member Functions

 TileLayer (const Tmx::Map *_map)
 Construct a TileLayer on the given map.
 
void Parse (const tinyxml2::XMLNode *tileLayerNode)
 Parse a tile layer node.
 
unsigned GetTileId (int x, int y) const
 Pick a specific tile id from the list.
 
unsigned GetTileGid (int x, int y) const
 Pick a specific tile gid from the list.
 
int GetTileTilesetIndex (int x, int y) const
 Get the tileset index for a tileset from the list.
 
bool IsTileFlippedHorizontally (int x, int y) const
 Get whether a tile is flipped horizontally.
 
bool IsTileFlippedVertically (int x, int y) const
 Get whether a tile is flipped vertically.
 
bool IsTileFlippedDiagonally (int x, int y) const
 Get whether a tile is flipped diagonally.
 
const Tmx::MapTileGetTile (int x, int y) const
 Get the tile at the given position.
 
const Tmx::MapTileGetTile (int index) const
 Get a tile by its index.
 
Tmx::TileLayerEncodingType GetEncoding () const
 Get the type of encoding that was used for parsing the tile layer data. More...
 
Tmx::TileLayerCompressionType GetCompression () const
 Get the type of compression that was used for parsing the tile layer data. More...
 
- Public Member Functions inherited from Tmx::Layer
 Layer (const Tmx::Map *_map, const std::string _name, const int _x, const int _y, const int _width, const int _height, const float _opacity, const bool _visible, const LayerType _layerType)
 Construct a new Layer used by a map's objectgroup.
 
 Layer (const Tmx::Tile *_tile, const std::string _name, const int _x, const int _y, const int _width, const int _height, const float _opacity, const bool _visible, const LayerType _layerType)
 Construct a new layer used by a tile's objectgroup.
 
const Tmx::MapmapGetMap () const
 Get the pointer to the parent map.
 
const std::string & GetName () const
 Get the name of the layer.
 
int GetX () const
 Get the value of the x attribute of the layer. Means different things for different layer types.
 
int GetY () const
 Get the value of the y attribute of the layer. Means different things for different layer types.
 
int GetWidth () const
 Get the width of the layer, in tiles. Only used in tile layers.
 
int GetHeight () const
 Get the height of the layer, in tiles. Only used in tile layers.
 
float GetOpacity () const
 Get the opacity of the layer.
 
bool IsVisible () const
 Get the visibility of the layer.
 
const Tmx::PropertySetGetProperties () const
 Get the property set.
 
int GetZOrder () const
 Get the zorder of the layer.
 
void SetZOrder (int z)
 Set the zorder of the layer.
 
int GetParseOrder () const
 Get the parse order of the layer.
 
Tmx::LayerType GetLayerType () const
 Get the type of the layer.
 

Detailed Description

Used for storing information about the tile ids for every tile layer.

This class also have a property set.

Member Function Documentation

Tmx::TileLayerCompressionType Tmx::TileLayer::GetCompression ( ) const
inline

Get the type of compression that was used for parsing the tile layer data.

See: TileLayerCompressionType

Tmx::TileLayerEncodingType Tmx::TileLayer::GetEncoding ( ) const
inline

Get the type of encoding that was used for parsing the tile layer data.

See: TileLayerEncodingType


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