File hp/tmx/TMXLayer.lua

Functions

M:checkBounds (x, y) Tests whether the position is within the range specified.
M:getGid (x, y) Returns the gid of the specified position.
M:getProperty (key) Returns the property.
M:init (tmxMap) The constructor.
M:setGid (x, y, gid) Sets gid of the specified position.

Tables

TMXLayer Class is a layer of TMXMap.


Functions

M:checkBounds (x, y)
Tests whether the position is within the range specified.

Parameters

  • x: potision of x.
  • y: potision of y.

Return value:

True if in the range.
M:getGid (x, y)
Returns the gid of the specified position.
If is out of range, return nil.

Parameters

  • x: potision of x.
  • y: potision of y.

Return value:

gid.
M:getProperty (key)
Returns the property.

Parameters

  • key: key.

Return value:

value.
M:init (tmxMap)
The constructor.

Parameters

  • tmxMap:
M:setGid (x, y, gid)
Sets gid of the specified position.
If you set the position is out of range to error.

Parameters

  • x: potision of x.
  • y: potision of y.
  • gid: global id.

Tables

TMXLayer
Class is a layer of TMXMap.

Valid XHTML 1.0!