cocos2d-x  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ActionManager Class Reference

#include <CCActionManager.h>

Inheritance diagram for ActionManager:
CCObject CCCopying

Public Member Functions

 ActionManager ()
virtual ~ActionManager ()
 Default destructor. More...
 
ActionObjectgetActionByName (const char *jsonName, const char *actionName)
 Gets an ActionObject with a name. More...
 
ActionObjectplayActionByName (const char *jsonName, const char *actionName)
 Play an Action with a name. More...
 
ActionObjectplayActionByName (const char *jsonName, const char *actionName, CCCallFunc *func)
 Play an Action with a name. More...
 
void initWithDictionary (const char *jsonName, const rapidjson::Value &dic, CCObject *root)
void releaseActions ()
 Release all actions. More...
 
- Public Member Functions inherited from CCObject
 CCObject (void)
virtual ~CCObject (void)
void release (void)
void retain (void)
CCObjectautorelease (void)
CCObjectcopy (void)
bool isSingleReference (void) const
unsigned int retainCount (void) const
virtual bool isEqual (const CCObject *pObject)
virtual void acceptVisitor (CCDataVisitor &visitor)
virtual void update (float dt)
- Public Member Functions inherited from CCCopying
virtual CCObjectcopyWithZone (CCZone *pZone)

Static Public Member Functions

static ActionManagershareManager ()
 Gets the static instance of ActionManager. More...
 
static void purge ()
 Purges ActionManager point. More...
 

Protected Attributes

CCDictionarym_pActionDic
- Protected Attributes inherited from CCObject
unsigned int m_uReference
unsigned int m_uAutoReleaseCount

Additional Inherited Members

- Public Attributes inherited from CCObject
unsigned int m_uID
int m_nLuaID

Constructor & Destructor Documentation

virtual ~ActionManager ( )
virtual

Default destructor.

Member Function Documentation

ActionObject* getActionByName ( const char *  jsonName,
const char *  actionName 
)

Gets an ActionObject with a name.

Parameters
jsonNameUI file name
actionNameaction name in the UI file.
Returns
ActionObject which named as the param name
void initWithDictionary ( const char *  jsonName,
const rapidjson::Value dic,
CCObject root 
)
ActionObject* playActionByName ( const char *  jsonName,
const char *  actionName 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
ActionObject* playActionByName ( const char *  jsonName,
const char *  actionName,
CCCallFunc func 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
funcui action call back
static void purge ( )
static

Purges ActionManager point.

void releaseActions ( )

Release all actions.

static ActionManager* shareManager ( )
static

Gets the static instance of ActionManager.

Member Data Documentation

CCDictionary* m_pActionDic
protected

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