32 #include "TmxPropertySet.h"
33 #include "TmxMapTile.h"
45 TMX_LAYERTYPE_TILE = 0X01,
46 TMX_LAYERTYPE_OBJECTGROUP = 0X02,
47 TMX_LAYERTYPE_IMAGE_LAYER = 0X04,
48 TMX_LAYERTYPE_GROUP_LAYER = 0X08
62 Layer(
const Tmx::Map *_map,
const std::string _name,
const int _x,
const int _y,
63 const int _width,
const int _height,
const float _opacity,
const bool _visible,
const LayerType _layerType);
66 Layer(
const Tmx::Tile *_tile,
const std::string _name,
const int _x,
const int _y,
67 const int _width,
const int _height,
const float _opacity,
const bool _visible,
const LayerType _layerType);
72 virtual void Parse(
const tinyxml2::XMLNode *layerNode) = 0;
78 const std::string &
GetName()
const {
return name; }
81 int GetX()
const {
return x; }
84 int GetY()
const {
return y; }
127 const int parseOrder;
129 const Tmx::LayerType layerType;
133 static int nextParseOrder;
const Tmx::PropertySet & GetProperties() const
Get the property set.
Definition: TmxLayer.h:99
Base class for other layer types.
Definition: TmxLayer.h:54
const Tmx::Map * mapGetMap() const
Get the pointer to the parent map.
Definition: TmxLayer.h:75
void SetZOrder(int z)
Set the zorder of the layer.
Definition: TmxLayer.h:105
int GetHeight() const
Get the height of the layer, in tiles. Only used in tile layers.
Definition: TmxLayer.h:90
int GetY() const
Get the value of the y attribute of the layer. Means different things for different layer types...
Definition: TmxLayer.h:84
float GetOpacity() const
Get the opacity of the layer.
Definition: TmxLayer.h:93
int GetParseOrder() const
Get the parse order of the layer.
Definition: TmxLayer.h:108
int GetX() const
Get the value of the x attribute of the layer. Means different things for different layer types...
Definition: TmxLayer.h:81
int GetZOrder() const
Get the zorder of the layer.
Definition: TmxLayer.h:102
This class is the root class of the parser.
Definition: TmxMap.h:115
This class contains a map of properties.
Definition: TmxPropertySet.h:47
bool IsVisible() const
Get the visibility of the layer.
Definition: TmxLayer.h:96
int GetWidth() const
Get the width of the layer, in tiles. Only used in tile layers.
Definition: TmxLayer.h:87
Tmx::LayerType GetLayerType() const
Get the type of the layer.
Definition: TmxLayer.h:111
virtual void Parse(const tinyxml2::XMLNode *layerNode)=0
Parse a layer element.
Class to contain information about every tile in the tileset/tiles element.
Definition: TmxTile.h:51
const std::string & GetName() const
Get the name of the layer.
Definition: TmxLayer.h:78