Class cc.TMXObjectGroup
Extends
cc.Class.
Defined in: CCTMXObjectGroup.js.
Constructor Attributes | Constructor Name and Description |
---|---|
cc.TMXObjectGroup represents the TMX object group.
|
Method Attributes | Method Name and Description |
---|---|
ctor()
Constructor
|
|
Offset position of child objects
|
|
List of properties stored in a dictionary
|
|
objectNamed(objectName)
Return the dictionary for the specific object name. |
|
propertyNamed(propertyName)
Return the value for the specific property name
|
|
setGroupName(groupName)
|
|
setObjects(objects)
|
|
setPositionOffset(Var)
|
|
setProperties(Var)
|
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