cocos2d-x  3.0rc2
 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. More...
 
virtual ~ActionManagerEx ()
 Default destructor. More...
 
ActionObject * getActionByName (const char *jsonName, const char *actionName)
 Gets an ActionObject with a name. More...
 
local getActionByName ( local jsonName, local actionName)
 Gets an ActionObject with a name. More...
 
ActionObject * playActionByName (const char *jsonName, const char *actionName)
 Play an Action with a name. More...
 
local playActionByName ( local jsonName, local 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...
 
local playActionByName ( local jsonName, local actionName, local func)
 Play an Action with a name. More...
 
void initWithDictionary (const char *jsonName, const rapidjson::Value &dic, Ref *root)
void releaseActions ()
 Release all actions. More...
 
- Public Member Functions inherited from Ref
void retain ()
 Retains the ownership. More...
 
void release ()
 Release the ownership immediately. More...
 
local release ()
 Release the ownership immediately. More...
 
Ref * autorelease ()
 Release the ownership sometime soon automatically. More...
 
unsigned int getReferenceCount () const
 Returns the Ref's current reference count. More...
 
virtual ~Ref ()

Static Public Member Functions

static ActionManagerEx * getInstance ()
 Gets the static instance of ActionManager. More...
 
local 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...
 
 Ref ()
 Constructor. More...
 

Constructor & Destructor Documentation

Default constructor.

var ctor ( )

Default constructor.

local ActionManagerEx ( )

Default constructor.

virtual ~ActionManagerEx ( )
virtual

Default destructor.

Member Function Documentation

static void destroyInstance ( )
static

Purges ActionManager point.

var purge ( )
static

Purges ActionManager point.

local destroyActionManager ( )
static

Purges ActionManager point.

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
var getActionByName ( var  jsonName,
var  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
local getActionByName ( local  jsonName,
local  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.

var getInstance ( )
static

Gets the static instance of ActionManager.

local getInstance ( )
static

Gets the static instance of ActionManager.

void initWithDictionary ( const char *  jsonName,
const rapidjson::Value &  dic,
Ref *  root 
)
var initWithDictionary ( var  jsonName,
var  dic,
var  root 
)
local initWithDictionary ( local  jsonName,
local  dic,
local  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
var playActionByName ( var  jsonName,
var  actionName 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
Returns
ActionObject which named as the param name
local playActionByName ( local  jsonName,
local  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
var playActionByName ( var  jsonName,
var  actionName,
var  func 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
funcui action call back
local playActionByName ( local  jsonName,
local  actionName,
local  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.

var releaseActions ( )

Release all actions.

local releaseActions ( )

Release all actions.

Member Data Documentation

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

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