#include <CCActionManager.h>
Public Member Functions | |
ActionManager () | |
virtual | ~ActionManager () |
Default destructor. More... | |
ActionObject * | getActionByName (const char *jsonName, const char *actionName) |
Gets an ActionObject with a name. More... | |
ActionObject * | playActionByName (const char *jsonName, const char *actionName) |
Play an Action with a name. More... | |
ActionObject * | playActionByName (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) |
CCObject * | autorelease (void) |
CCObject * | copy (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 CCObject * | copyWithZone (CCZone *pZone) |
Static Public Member Functions | |
static ActionManager * | shareManager () |
Gets the static instance of ActionManager. More... | |
static void | purge () |
Purges ActionManager point. More... | |
Protected Attributes | |
CCDictionary * | m_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 |
ActionManager | ( | ) |
|
virtual |
Default destructor.
ActionObject* getActionByName | ( | const char * | jsonName, |
const char * | actionName | ||
) |
Gets an ActionObject with a name.
jsonName | UI file name |
actionName | action name in the UI file. |
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.
jsonName | UI file name |
actionName | action name in teh UIfile. |
ActionObject* playActionByName | ( | const char * | jsonName, |
const char * | actionName, | ||
CCCallFunc * | func | ||
) |
Play an Action with a name.
jsonName | UI file name |
actionName | action name in teh UIfile. |
func | ui action call back |
|
static |
Purges ActionManager point.
void releaseActions | ( | ) |
Release all actions.
|
static |
Gets the static instance of ActionManager.
|
protected |