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

#include <CCActionManagerEx.h>

Inheritance diagram for ActionManagerEx:
Ref

Public Member Functions

 ActionManagerEx ()
 Default constructor ctor. More...
 
virtual ~ActionManagerEx ()
 Default destructor NA NA. 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, 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...
 
Refautorelease ()
 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 ActionManagerExgetInstance ()
 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...
 

Constructor & Destructor Documentation

Default constructor ctor.

virtual ~ActionManagerEx ( )
virtual

Default destructor NA NA.

Member Function Documentation

static void destroyInstance ( )
static

Purges ActionManager point.

purge destroyActionManager

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
static ActionManagerEx* getInstance ( )
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.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
Returns
ActionObject which named as the param name
ActionObject* playActionByName ( const char *  jsonName,
const char *  actionName,
cocos2d::CallFunc func 
)

Play an Action with a name.

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

Release all actions.

Member Data Documentation

std::unordered_map<std::string, cocos2d::Vector<ActionObject*> > _actionDic
protected

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