tmxparser  2.1.0
 All Classes Functions Variables Pages
Public Member Functions | List of all members
Tmx::ObjectGroup Class Reference

A class used for holding a list of objects. More...

#include <TmxObjectGroup.h>

Inheritance diagram for Tmx::ObjectGroup:
Tmx::Layer

Public Member Functions

 ObjectGroup (const Tmx::Map *_map)
 Construct a new ObjectGroup.
 
 ObjectGroup (const Tmx::Tile *_tile)
 Construct a new ObjectGroup used by a Tile.
 
void Parse (const tinyxml2::XMLNode *objectGroupNode)
 Parse an objectgroup node.
 
const Tmx::ObjectGetObject (int index) const
 Get a single object.
 
int GetNumObjects () const
 Get the number of objects in the list.
 
Tmx::Color GetColor () const
 Get the color used to display the objects in this group.
 
const std::vector< Tmx::Object * > & GetObjects () const
 Get the whole list of objects.
 
const Tmx::PropertySetGetProperties () const
 Get the property set.
 
- Public Member Functions inherited from Tmx::Layer
 Layer (const Tmx::Map *_map, const std::string _name, const int _x, const int _y, const int _width, const int _height, const float _opacity, const bool _visible, const LayerType _layerType)
 Construct a new Layer used by a map's objectgroup.
 
 Layer (const Tmx::Tile *_tile, const std::string _name, const int _x, const int _y, const int _width, const int _height, const float _opacity, const bool _visible, const LayerType _layerType)
 Construct a new layer used by a tile's objectgroup.
 
const Tmx::MapmapGetMap () const
 Get the pointer to the parent map.
 
const std::string & GetName () const
 Get the name of the layer.
 
int GetX () const
 Get the value of the x attribute of the layer. Means different things for different layer types.
 
int GetY () const
 Get the value of the y attribute of the layer. Means different things for different layer types.
 
int GetWidth () const
 Get the width of the layer, in tiles. Only used in tile layers.
 
int GetHeight () const
 Get the height of the layer, in tiles. Only used in tile layers.
 
float GetOpacity () const
 Get the opacity of the layer.
 
bool IsVisible () const
 Get the visibility of the layer.
 
const Tmx::PropertySetGetProperties () const
 Get the property set.
 
int GetZOrder () const
 Get the zorder of the layer.
 
void SetZOrder (int z)
 Set the zorder of the layer.
 
int GetParseOrder () const
 Get the parse order of the layer.
 
Tmx::LayerType GetLayerType () const
 Get the type of the layer.
 

Detailed Description

A class used for holding a list of objects.

This class has a property set.


The documentation for this class was generated from the following files: