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

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::EllipseGetEllipse () const
 Get the ellipse.
 
const Tmx::PolygonGetPolygon () const
 Get the Polygon.
 
const Tmx::PolylineGetPolyline () const
 Get the Polyline.
 
const Tmx::TextGetText () const
 Get the Text.
 
const Tmx::PropertySetGetProperties () const
 Get the property set.
 

Detailed Description

Class used for representing a single object from the objectgroup.


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