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.

Method Detail

  • ctor()
    Constructor
  • {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(Var)
    Parameters:
    {cc.Point} Var
  • setProperties(Var)
    Parameters:
    {object} Var