TMXObjectGroup represents the TMX object group.
More...
#include <TMXObjectGroup.h>
Inherits Object.
|
|
virtual | ~TMXObjectGroup () |
| | @lua NA
|
| std::string_view | getGroupName () const |
| | Get the group name.
|
| void | setGroupName (std::string_view groupName) |
| | Set the group name.
|
| Value | getProperty (std::string_view propertyName) const |
| | Return the value for the specific property name.
|
| ValueMap | getObject (std::string_view 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.
|
| Object * | autorelease () |
| | Releases the ownership sometime soon automatically.
|
| unsigned int | getReferenceCount () const |
| | Returns the Object's current reference count.
|
| uint64_t | getObjectID () const noexcept |
| | Returns the process-local diagnostic identifier assigned at construction.
|
| virtual | ~Object () |
| | Destructor.
|
TMXObjectGroup represents the TMX object group.
- Since
- v0.99.0
◆ getGroupName()
| std::string_view getGroupName |
( |
| ) |
const |
|
inline |
Get the group name.
- Returns
- The group name.
◆ setGroupName()
| void setGroupName |
( |
std::string_view | groupName | ) |
|
|
inline |
Set the group name.
- Parameters
-
| groupName | A string,it is used to set the group name. |
◆ getProperty()
| Value getProperty |
( |
std::string_view | 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.
◆ getObject()
| ValueMap getObject |
( |
std::string_view | 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.
◆ getPositionOffset()
| const Vec2 & getPositionOffset |
( |
| ) |
const |
|
inline |
Gets the offset position of child objects.
- Returns
- The offset position of child objects.
◆ setPositionOffset()
| void setPositionOffset |
( |
const Vec2 & | offset | ) |
|
|
inline |
Sets the offset position of child objects.
- Parameters
-
| offset | The offset position of child objects. |
◆ getProperties()
| const ValueMap & getProperties |
( |
| ) |
const |
|
inline |
Gets the list of properties stored in a dictionary.
- Returns
- The list of properties stored in a dictionary.
◆ setProperties()
| void setProperties |
( |
const ValueMap & | properties | ) |
|
|
inline |
Sets the list of properties.
- Parameters
-
| properties | The list of properties. |
◆ getObjects()
| const ValueVector & getObjects |
( |
| ) |
const |
|
inline |
Gets the array of the objects.
- Returns
- The array of the objects.
◆ setObjects()
| 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: