32 #include "TmxPropertySet.h"
55 void Parse(
const tinyxml2::XMLNode *objectNode);
58 const std::string &
GetName()
const {
return name; }
61 const std::string &
GetType()
const {
return type; }
64 int GetX()
const {
return x; }
67 int GetY()
const {
return y; }
76 double GetRot()
const {
return rotation; }
82 int GetId()
const {
return id; }
const Tmx::Text * GetText() const
Get the Text.
Definition: TmxObject.h:97
Class to store an Ellipse of an Object.
Definition: TmxEllipse.h:39
const std::string & GetType() const
Get the type of the object.
Definition: TmxObject.h:61
int GetHeight() const
Get the height of the object, in pixels.
Definition: TmxObject.h:73
const Tmx::Polyline * GetPolyline() const
Get the Polyline.
Definition: TmxObject.h:94
int GetX() const
Get the left side of the object, in pixels.
Definition: TmxObject.h:64
Class to store a Polygon of an Object.
Definition: TmxPolygon.h:43
Class to store a Polyline of an Object.
Definition: TmxPolyline.h:43
bool IsVisible() const
Get the visibility of the object.
Definition: TmxObject.h:85
This class contains a map of properties.
Definition: TmxPropertySet.h:47
Class used for representing a single object from the objectgroup.
Definition: TmxObject.h:48
const Tmx::Ellipse * GetEllipse() const
Get the ellipse.
Definition: TmxObject.h:88
const std::string & GetName() const
Get the name of the object.
Definition: TmxObject.h:58
int GetWidth() const
Get the width of the object, in pixels.
Definition: TmxObject.h:70
const Tmx::Polygon * GetPolygon() const
Get the Polygon.
Definition: TmxObject.h:91
double GetRot() const
Get the rotation of the object, in degrees.
Definition: TmxObject.h:76
int GetGid() const
Get the Global ID of the tile associated with this object.
Definition: TmxObject.h:79
const Tmx::PropertySet & GetProperties() const
Get the property set.
Definition: TmxObject.h:100
int GetId() const
Get the ID of this object.
Definition: TmxObject.h:82
void Parse(const tinyxml2::XMLNode *objectNode)
Parse an object node.
Definition: TmxObject.cpp:80
int GetY() const
Get the top side of the object, in pixels.
Definition: TmxObject.h:67
Class to store an Text of an Object.
Definition: TmxText.h:62