Class used for representing a single object from the objectgroup. More...
#include <TmxObject.h>
Public Member Functions | |
void | Parse (const tinyxml2::XMLNode *objectNode) |
Parse an object node. | |
const std::string & | GetName () const |
Get the name of the object. | |
const std::string & | GetType () const |
Get the type of the object. | |
int | GetX () const |
Get the left side of the object, in pixels. | |
int | GetY () const |
Get the top side of the object, in pixels. | |
int | GetWidth () const |
Get the width of the object, in pixels. | |
int | GetHeight () const |
Get the height of the object, in pixels. | |
double | GetRot () const |
Get the rotation of the object, in degrees. | |
int | GetGid () const |
Get the Global ID of the tile associated with this object. | |
int | GetId () const |
Get the ID of this object. | |
bool | IsVisible () const |
Get the visibility of the object. | |
const Tmx::Ellipse * | GetEllipse () const |
Get the ellipse. | |
const Tmx::Polygon * | GetPolygon () const |
Get the Polygon. | |
const Tmx::Polyline * | GetPolyline () const |
Get the Polyline. | |
const Tmx::Text * | GetText () const |
Get the Text. | |
const Tmx::PropertySet & | GetProperties () const |
Get the property set. | |
Class used for representing a single object from the objectgroup.