Class: TMXObject

me. TMXObject

new TMXObject()

a TMX Object defintion, as defined in Tiled.
note : object definition are translated into the virtual `me.game.world` using `me.Entity`.
Source:
TMXObjectGroup.js, line 130
See:

Extends

Members

<static> gid :Number

object gid value when defined the object is a tiled object
Type:
  • Number
Source:
TMXObjectGroup.js, line 199

<static> height :Number

object height
Type:
  • Number
Source:
TMXObjectGroup.js, line 190

<static> id :Number

object unique identifier per level (Tiled 0.11.x+)
Type:
  • Number
Source:
TMXObjectGroup.js, line 227

<static> isEllipse :Boolean

if true, the object is an Ellipse
Type:
  • Boolean
Source:
TMXObjectGroup.js, line 254

<static> isPolygon :Boolean

if true, the object is a Polygon
Type:
  • Boolean
Source:
TMXObjectGroup.js, line 263

<static> isPolyLine :Boolean

if true, the object is a PolyLine
Type:
  • Boolean
Source:
TMXObjectGroup.js, line 272

<static> name :String

object name
Type:
  • String
Source:
TMXObjectGroup.js, line 145

<static> orientation :String

object orientation (orthogonal or isometric)
Type:
  • String
Source:
TMXObjectGroup.js, line 236

<static> points :Array.<Vector2d>

object point list (for Polygon and PolyLine)
Type:
  • Array.<Vector2d>
Source:
TMXObjectGroup.js, line 136

<static> rotation :Number

The rotation of the object in radians clockwise (defaults to 0)
Type:
  • Number
Source:
TMXObjectGroup.js, line 218

<static> shapes :Array

the collision shapes defined for this object
Type:
  • Array
Source:
TMXObjectGroup.js, line 245

<static> type :String

object type
Type:
  • String
Source:
TMXObjectGroup.js, line 209

<static> width :Number

object width
Type:
  • Number
Source:
TMXObjectGroup.js, line 181

<static> x :Number

object x position
Type:
  • Number
Source:
TMXObjectGroup.js, line 154

<static> y :Number

object y position
Type:
  • Number
Source:
TMXObjectGroup.js, line 163

<static> z :Number

object z order
Type:
  • Number
Source:
TMXObjectGroup.js, line 172

Methods

<private, static> parseTMXShapes() → {Array.<me.Polygon>|Array.<me.Line>|Array.<me.Ellipse>}

parses the TMX shape definition and returns a corresponding array of me.Shape object
Source:
TMXObjectGroup.js, line 339
Returns:
an array of shape objects
Type
Array.<me.Polygon> | Array.<me.Line> | Array.<me.Ellipse>
Copyright © 2011 - 2017, Olivier Biot, Jason Oster, Aaron McLeod
Documentation generated by JSDoc 3.4.0 on 2017-02-28T11:37:41+08:00 using the DocStrap template modified by codename-.