cocos2d-x
3.3
|
TMXObjectGroup represents the TMX object group. More...
#include <CCTMXObjectGroup.h>
Public Member Functions | |
TMXObjectGroup () | |
ctor More... | |
virtual | ~TMXObjectGroup () |
NA NA More... | |
const std::string & | getGroupName () |
void | setGroupName (const std::string &groupName) |
Value | getProperty (const std::string &propertyName) const |
return the value for the specific property name More... | |
Value | propertyNamed (const std::string &propertyName) const |
ValueMap | getObject (const std::string &objectName) const |
return the dictionary for the specific object name. More... | |
ValueMap | objectNamed (const std::string &objectName) const |
const Vec2 & | getPositionOffset () const |
Gets the offset position of child objects. More... | |
void | setPositionOffset (const Vec2 &offset) |
Sets the offset position of child objects. More... | |
const ValueMap & | getProperties () const |
Gets the list of properties stored in a dictionary. More... | |
ValueMap & | getProperties () |
void | setProperties (const ValueMap &properties) |
Sets the list of properties. More... | |
const ValueVector & | getObjects () const |
Gets the array of the objects. More... | |
ValueVector & | getObjects () |
void | setObjects (const ValueVector &objects) |
Sets the array of the objects. More... | |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
Protected Attributes | |
std::string | _groupName |
name of the group More... | |
Vec2 | _positionOffset |
offset position of child objects More... | |
ValueMap | _properties |
list of properties stored in a dictionary More... | |
ValueVector | _objects |
array of the objects More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Additional Inherited Members | |
![]() | |
Ref () | |
Constructor. More... | |
TMXObjectGroup represents the TMX object group.
TMXObjectGroup | ( | ) |
ctor
|
virtual |
NA NA
|
inline |
ValueMap getObject | ( | const std::string & | objectName | ) | const |
return the dictionary for the specific object name.
It will return the 1st object found on the array for the given name.
|
inline |
Gets the array of the objects.
|
inline |
|
inline |
Gets the offset position of child objects.
|
inline |
Gets the list of properties stored in a dictionary.
|
inline |
Value getProperty | ( | const std::string & | propertyName | ) | const |
return the value for the specific property name
|
inline |
|
inline |
|
inline |
|
inline |
Sets the array of the objects.
|
inline |
Sets the offset position of child objects.
|
inline |
Sets the list of properties.
|
protected |
name of the group
|
protected |
array of the objects
|
protected |
offset position of child objects
|
protected |
list of properties stored in a dictionary