28 #ifndef TMXLITE_OBJECTGROUP_HPP_ 29 #define TMXLITE_OBJECTGROUP_HPP_ 31 #include <tmxlite/Config.hpp> 32 #include <tmxlite/Layer.hpp> 33 #include <tmxlite/Object.hpp> 55 Type
getType()
const override {
return Layer::Type::Object; }
56 void parse(
const pugi::xml_node&)
override;
71 const std::vector<Property>&
getProperties()
const {
return m_properties; }
75 const std::vector<Object>&
getObjects()
const {
return m_objects; }
79 DrawOrder m_drawOrder;
81 std::vector<Property> m_properties;
82 std::vector<Object> m_objects;
86 #endif //TMXLITE_OBJECTGROUP_HPP_ 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:109
DrawOrder getDrawOrder() const
Returns the DrawOrder for the objects in this group. Defaults to TopDown, where Objects are drawn sor...
Definition: ObjectGroup.hpp:66
Represents a layer of a tmx format tile map. This is an abstract base class from which all layer type...
Definition: Layer.hpp:52
ObjectGroup layers contain a series of Objects which may be made up of shapes or images.
Definition: ObjectGroup.hpp:43
Type getType() const override
Returns a Type value representing the concrete type.
Definition: ObjectGroup.hpp:55
const std::vector< Object > & getObjects() const
Returns a reference to the vector of Objects which belong to the group.
Definition: ObjectGroup.hpp:75
const Colour & getColour() const
Returns the colour associated with this layer.
Definition: ObjectGroup.hpp:61