cocos2d-x  3.0-alpha0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
TMXObjectGroup Class Reference

TMXObjectGroup represents the TMX object group. More...

#include <CCTMXObjectGroup.h>

Inheritance diagram for TMXObjectGroup:
Object

Public Member Functions

 TMXObjectGroup ()
virtual ~TMXObjectGroup ()
const char * getGroupName ()
void setGroupName (const char *groupName)
StringgetProperty (const char *propertyName) const
 return the value for the specific property name More...
 
CC_DEPRECATED_ATTRIBUTE StringpropertyNamed (const char *propertyName) const
local propertyNamed ( local propertyName)
DictionarygetObject (const char *objectName) const
 return the dictionary for the specific object name. More...
 
local getObject ( local objectName)
 return the dictionary for the specific object name. More...
 
CC_DEPRECATED_ATTRIBUTE
Dictionary
objectNamed (const char *objectName) const
local objectNamed ( local objectName)
const PointgetPositionOffset () const
 Gets the offset position of child objects. More...
 
local getPositionOffset ()
 Gets the offset position of child objects. More...
 
void setPositionOffset (const Point &offset)
 Sets the offset position of child objects. More...
 
var setPositionOffset ( var offset)
 Sets the offset position of child objects. More...
 
local setPositionOffset ( local offset)
 Sets the offset position of child objects. More...
 
DictionarygetProperties () const
 Gets the list of properties stored in a dictionary. More...
 
void setProperties (Dictionary *properties)
 Sets the list of properties. More...
 
ArraygetObjects () const
 Gets the array of the objects. More...
 
void setObjects (Array *objects)
 Sets the array of the objects. More...
 
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Protected Attributes

std::string _groupName
 name of the group More...
 
Point _positionOffset
 offset position of child objects More...
 
Dictionary_properties
 list of properties stored in a dictionary More...
 
var _properties
 list of properties stored in a dictionary More...
 
local _properties
 list of properties stored in a dictionary More...
 
Array_objects
 array of the objects More...
 
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
var _reference
 count of references More...
 
local _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 
var _autoReleaseCount
 count of autorelease More...
 
local _autoReleaseCount
 count of autorelease More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Detailed Description

TMXObjectGroup represents the TMX object group.

Since
v0.99.0

Constructor & Destructor Documentation

var ctor ( )
local TMXObjectGroup ( )
virtual ~TMXObjectGroup ( )
virtual

Member Function Documentation

const char* getGroupName ( )
inline
var getGroupName ( )
inline
local getGroupName ( )
inline
Dictionary* getObject ( const char *  objectName) const

return the dictionary for the specific object name.

It will return the 1st object found on the array for the given name.

var getObject ( var  objectName)

return the dictionary for the specific object name.

It will return the 1st object found on the array for the given name.

local getObject ( local  objectName)

return the dictionary for the specific object name.

It will return the 1st object found on the array for the given name.

Array* getObjects ( ) const
inline

Gets the array of the objects.

var getObjects ( )
inline

Gets the array of the objects.

local getObjects ( )
inline

Gets the array of the objects.

const Point& getPositionOffset ( ) const
inline

Gets the offset position of child objects.

var getPositionOffset ( )
inline

Gets the offset position of child objects.

local getPositionOffset ( )
inline

Gets the offset position of child objects.

Dictionary* getProperties ( ) const
inline

Gets the list of properties stored in a dictionary.

var getProperties ( )
inline

Gets the list of properties stored in a dictionary.

local getProperties ( )
inline

Gets the list of properties stored in a dictionary.

String* getProperty ( const char *  propertyName) const

return the value for the specific property name

var getProperty ( var  propertyName)

return the value for the specific property name

local getProperty ( local  propertyName)

return the value for the specific property name

CC_DEPRECATED_ATTRIBUTE
Dictionary* objectNamed
( const char *  objectName) const
inline
var objectNamed ( var  objectName)
inline
local objectNamed ( local  objectName)
inline
CC_DEPRECATED_ATTRIBUTE String*
propertyNamed
( const char *  propertyName) const
inline
var propertyNamed ( var  propertyName)
inline
local propertyNamed ( local  propertyName)
inline
void setGroupName ( const char *  groupName)
inline
var setGroupName ( var  groupName)
inline
local setGroupName ( local  groupName)
inline
void setObjects ( Array objects)
inline

Sets the array of the objects.

var setObjects ( var  objects)
inline

Sets the array of the objects.

local setObjects ( local  objects)
inline

Sets the array of the objects.

void setPositionOffset ( const Point offset)
inline

Sets the offset position of child objects.

var setPositionOffset ( var  offset)
inline

Sets the offset position of child objects.

local setPositionOffset ( local  offset)
inline

Sets the offset position of child objects.

void setProperties ( Dictionary properties)
inline

Sets the list of properties.

var setProperties ( var  properties)
inline

Sets the list of properties.

local setProperties ( local  properties)
inline

Sets the list of properties.

Member Data Documentation

std::string _groupName
protected

name of the group

var _groupName
protected

name of the group

local _groupName
protected

name of the group

Array* _objects
protected

array of the objects

var _objects
protected

array of the objects

local _objects
protected

array of the objects

Point _positionOffset
protected

offset position of child objects

var _positionOffset
protected

offset position of child objects

local _positionOffset
protected

offset position of child objects

Dictionary* _properties
protected

list of properties stored in a dictionary

var _properties
protected

list of properties stored in a dictionary

local _properties
protected

list of properties stored in a dictionary


The documentation for this class was generated from the following file: