|
cocos2d-x
3.3
|
#include <CCActionManagerEx.h>
Public Member Functions | |
| ActionManagerEx () | |
| Default constructor ctor. More... | |
| virtual | ~ActionManagerEx () |
| Default destructor NA NA. 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, cocos2d::CallFunc *func) |
| Play an Action with a name. More... | |
| void | initWithDictionary (const char *jsonName, const rapidjson::Value &dic, Ref *root) |
| void | initWithBinary (const char *file, Ref *root, CocoLoader *cocoLoader, stExpCocoNode *pCocoNode) |
| void | releaseActions () |
| Release all actions. More... | |
Public Member Functions inherited from Ref | |
| void | retain () |
| Retains the ownership. More... | |
| void | release () |
| Releases the ownership immediately. More... | |
| Ref * | autorelease () |
| Releases the ownership sometime soon automatically. More... | |
| unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More... | |
| virtual | ~Ref () |
| NA NA More... | |
Static Public Member Functions | |
| static ActionManagerEx * | getInstance () |
| Gets the static instance of ActionManager. More... | |
| static void | destroyInstance () |
| Purges ActionManager point. More... | |
Protected Attributes | |
| std::unordered_map < std::string, cocos2d::Vector < ActionObject * > > | _actionDic |
Protected Attributes inherited from Ref | |
| unsigned int | _referenceCount |
| count of references More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Ref | |
| Ref () | |
| Constructor. More... | |
| ActionManagerEx | ( | ) |
Default constructor ctor.
|
virtual |
Default destructor NA NA.
|
static |
Purges ActionManager point.
purge destroyActionManager
| 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. |
|
static |
Gets the static instance of ActionManager.
getInstance getInstance
| void initWithBinary | ( | const char * | file, |
| Ref * | root, | ||
| CocoLoader * | cocoLoader, | ||
| stExpCocoNode * | pCocoNode | ||
| ) |
| void initWithDictionary | ( | const char * | jsonName, |
| const rapidjson::Value & | dic, | ||
| Ref * | 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, | ||
| cocos2d::CallFunc * | func | ||
| ) |
Play an Action with a name.
| jsonName | UI file name |
| actionName | action name in teh UIfile. |
| func | ui action call back |
| void releaseActions | ( | ) |
Release all actions.
|
protected |