29#include <tmxlite/Config.hpp>
30#include <tmxlite/Layer.hpp>
31#include <tmxlite/Types.hpp>
55 void parse(
const pugi::xml_node&,
Map*)
override;
63 const std::vector<Layer::Ptr>&
getLayers()
const {
return m_layers; }
67 std::vector<Layer::Ptr> m_layers;
69 std::string m_workingDir;
77 return *
static_cast<LayerGroup*
>(
this);
84 return *
static_cast<const LayerGroup*
>(
this);
Layer groups are used to organize the layers of the map in a hierarchy. They can contain all other la...
Definition LayerGroup.hpp:43
const std::vector< Layer::Ptr > & getLayers() const
Returns a reference to the vector containing the layer data. Layers are pointer-to-baseclass,...
Definition LayerGroup.hpp:63
void parse(const pugi::xml_node &, Map *) override
Attempts to parse the specific node layer type.
Type getType() const override
Returns a Type value representing the concrete type. Use this when deciding which conrete layer type ...
Definition LayerGroup.hpp:54
Represents a layer of a tmx format tile map. This is an abstract base class from which all layer type...
Definition Layer.hpp:56
T & getLayerAs()
Use this to get a reference to the concrete layer type which this layer points to....
Type
Layer type as returned by getType() Tile: this layer is a TileLayer type Object: This layer is an Obj...
Definition Layer.hpp:71
virtual Type getType() const =0
Returns a Type value representing the concrete type. Use this when deciding which conrete layer type ...
Parser for TMX format tile maps. This class can be used to parse the XML format tile maps created wit...
Definition Map.hpp:94