Class cc.TMXObjectGroup

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.TMXObjectGroup represents the TMX object group.

Method Summary

Class Detail

cc.TMXObjectGroup()
cc.TMXObjectGroup represents the TMX object group.

Field Detail

{String} groupName
- Name of the group
{Array} properties
- Properties from the group. They can be added using tilemap editors

Method Detail

  • {String} getGroupName()
    Returns:
    {String}
  • {Array} getObjects()
    Returns:
    {Array}
  • {cc.Point} getPositionOffset()
    Offset position of child objects
    Returns:
    {cc.Point}
  • {Array} getProperties()
    List of properties stored in a dictionary
    Returns:
    {Array}
  • {object|Null} objectNamed(objectName)

    Return the dictionary for the specific object name.
    It will return the 1st object found on the array for the given name.

    Parameters:
    {String} objectName
    Returns:
    {object|Null}
  • {object} propertyNamed(propertyName)
    Return the value for the specific property name
    Parameters:
    {String} propertyName
    Returns:
    {object}
  • setGroupName(groupName)
    Parameters:
    {String} groupName
  • setObjects(objects)
    Parameters:
    {object} objects
  • setPositionOffset(offset)
    Parameters:
    {cc.Point} offset
  • setProperties(Var)
    Parameters:
    {object} Var