TMXObjectGroup represents the TMX object group.
More...
Inherits Ref.
|
| TMXObjectGroup () |
| ctor
|
|
virtual | ~TMXObjectGroup () |
| NA NA
|
|
const std::string & | getGroupName () const |
| Get the group name.
|
|
void | setGroupName (const std::string &groupName) |
| Set the group name.
|
|
Value | getProperty (const std::string &propertyName) const |
| Return the value for the specific property name.
|
|
ValueMap | getObject (const std::string &objectName) const |
| Return the dictionary for the specific object name.
|
|
const Vec2 & | getPositionOffset () const |
| Gets the offset position of child objects.
|
|
void | setPositionOffset (const Vec2 &offset) |
| Sets the offset position of child objects.
|
|
const ValueMap & | getProperties () const |
| Gets the list of properties stored in a dictionary.
|
|
void | setProperties (const ValueMap &properties) |
| Sets the list of properties.
|
|
const ValueVector & | getObjects () const |
| Gets the array of the objects.
|
|
void | setObjects (const ValueVector &objects) |
| Sets the array of the objects.
|
|
void | retain () |
| Retains the ownership.
|
|
void | release () |
| Releases the ownership immediately.
|
|
Ref * | autorelease () |
| Releases the ownership sometime soon automatically.
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count.
|
|
virtual | ~Ref () |
| Destructor.
|
|
|
unsigned int | _ID |
| object id, ScriptSupport need public _ID
|
|
int | _luaID |
| Lua reference id.
|
|
void * | _scriptObject |
| scriptObject, support for swift
|
|
bool | _rooted |
| When true, it means that the object was already rooted.
|
|
TMXObjectGroup represents the TMX object group.
- Since
- v0.99.0
const std::string& getGroupName |
( |
| ) |
const |
|
inline |
Get the group name.
- Returns
- The group name.
void setGroupName |
( |
const std::string & |
groupName | ) |
|
|
inline |
Set the group name.
- Parameters
-
groupName | A string,it is used to set the group name. |
Value getProperty |
( |
const std::string & |
propertyName | ) |
const |
Return the value for the specific property name.
- Parameters
-
propertyName | The specific property name. |
- Returns
- Return the value for the specific property name. NA
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.
- Returns
- Return the dictionary for the specific object name.
const Vec2& getPositionOffset |
( |
| ) |
const |
|
inline |
Gets the offset position of child objects.
- Returns
- The offset position of child objects.
void setPositionOffset |
( |
const Vec2 & |
offset | ) |
|
|
inline |
Sets the offset position of child objects.
- Parameters
-
offset | The offset position of child objects. |
const ValueMap& getProperties |
( |
| ) |
const |
|
inline |
Gets the list of properties stored in a dictionary.
- Returns
- The list of properties stored in a dictionary.
void setProperties |
( |
const ValueMap & |
properties | ) |
|
|
inline |
Sets the list of properties.
- Parameters
-
properties | The list of properties. |
const ValueVector& getObjects |
( |
| ) |
const |
|
inline |
Gets the array of the objects.
- Returns
- The array of the objects.
void setObjects |
( |
const ValueVector & |
objects | ) |
|
|
inline |
Sets the array of the objects.
- Parameters
-
objects | The array of the objects. |
The documentation for this class was generated from the following file: