|
tmxlite
lightweight Tiled tmx map parser for C++
|
ObjectGroup layers contain a series of Objects which may be made up of shapes or images. More...
#include <ObjectGroup.hpp>
Public Types | |
| enum | DrawOrder { Index, TopDown } |
Public Types inherited from tmx::Layer | |
| enum | Type { Tile, Object, Image } |
| using | Ptr = std::unique_ptr< Layer > |
Public Member Functions | |
| Type | getType () const override |
| Returns a Type value representing the concrete type. | |
| void | parse (const pugi::xml_node &) override |
| Attempts to parse the specific node layer type. | |
| const Colour & | getColour () const |
| Returns the colour associated with this layer. | |
| DrawOrder | getDrawOrder () const |
| Returns the DrawOrder for the objects in this group. Defaults to TopDown, where Objects are drawn sorted by Y position. | |
| const std::vector< Property > & | getProperties () const |
| Returns a reference to the vector of properties for the ObjectGroup. | |
| const std::vector< Object > & | getObjects () const |
| Returns a reference to the vector of Objects which belong to the group. | |
Public Member Functions inherited from tmx::Layer | |
| const std::string & | getName () const |
| Returns the name of the layer. | |
| float | getOpacity () const |
| Returns the opacity value for the layer. | |
| bool | getVisible () const |
| Returns whether this layer is visible or not. | |
| const Vector2i & | getOffset () const |
| Returns the offset from the top left corner of the layer, in pixels. | |
| const std::vector< Property > & | getProperties () const |
| Returns the list of properties of this layer. | |
Additional Inherited Members | |
Protected Member Functions inherited from tmx::Layer | |
| void | setName (const std::string &name) |
| void | setOpacity (float opacity) |
| void | setVisible (bool visible) |
| void | setOffset (std::int32_t x, std::int32_t y) |
| void | addProperty (const pugi::xml_node &node) |
ObjectGroup layers contain a series of Objects which may be made up of shapes or images.
1.8.12