30#include <tmxlite/Config.hpp>
31#include <tmxlite/Layer.hpp>
32#include <tmxlite/Object.hpp>
54 void parse(
const pugi::xml_node&,
Map*)
override;
71 const std::vector<Property>&
getProperties()
const {
return m_properties; }
76 const std::vector<Object>&
getObjects()
const {
return m_objects; }
80 DrawOrder m_drawOrder;
82 std::vector<Property> m_properties;
83 std::vector<Object> m_objects;
90 return *
static_cast<ObjectGroup*
>(
this);
97 return *
static_cast<const ObjectGroup*
>(
this);
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
ObjectGroup layers contain a series of Objects which may be made up of shapes or images.
Definition ObjectGroup.hpp:43
DrawOrder getDrawOrder() const
Returns the DrawOrder for the objects in this group. Defaults to TopDown, where Objects are drawn sor...
Definition ObjectGroup.hpp:65
const Colour & getColour() const
Returns the colour associated with this layer.
Definition ObjectGroup.hpp:59
const std::vector< Object > & getObjects() const
Returns a reference to the vector of Objects which belong to the group.
Definition ObjectGroup.hpp:76
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 ObjectGroup.hpp:53
const std::vector< Property > & getProperties() const
Returns a reference to the vector of properties for the ObjectGroup.
Definition ObjectGroup.hpp:71
Contains the red, green, blue and alpha values of a colour in the range 0 - 255.
Definition Types.hpp:111