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

#include <CCActionManagerEx.h>

Inheritance diagram for ActionManagerEx:
Object

Public Member Functions

 ActionManagerEx ()
 Default constructor. More...
 
virtual ~ActionManagerEx ()
 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...
 
void initWithDictionary (const char *jsonName, JsonDictionary *dic, cocos2d::Object *root)
void releaseActions ()
 Release all actions. More...
 
var releaseActions ()
 Release all actions. More...
 
local releaseActions ()
 Release all actions. More...
 
- Public Member Functions inherited from Object
 Object ()
 Constructor. More...
 
virtual ~Object ()
void release ()
 Release the ownership immediately. More...
 
void retain ()
 Retains the ownership. More...
 
Objectautorelease ()
 Release the ownership sometime soon automatically. More...
 
bool isSingleReference () const
 Returns a boolean value that indicates whether there is only one reference to the object. More...
 
unsigned int retainCount () const
 Returns the object's current reference count. More...
 
virtual bool isEqual (const Object *object)
 Returns a boolean value that indicates whether this object and a given object are equal. More...
 
virtual void acceptVisitor (DataVisitor &visitor)
virtual void update (float dt)

Static Public Member Functions

static ActionManagerExshareManager ()
 Gets the static instance of ActionManager. More...
 
local getInstance ()
 Gets the static instance of ActionManager. More...
 
static void purgeActionManager ()
 Purges ActionManager point. More...
 
local destroyActionManager ()
 Purges ActionManager point. More...
 

Protected Attributes

cocos2d::Dictionary_pActionDic
- Protected Attributes inherited from Object
unsigned int _reference
 count of references More...
 
unsigned int _autoReleaseCount
 count of autorelease More...
 

Additional Inherited Members

- Public Attributes inherited from Object
unsigned int _ID
 object id, ScriptSupport need public _ID More...
 
int _luaID
 Lua reference id. More...
 

Constructor & Destructor Documentation

Default constructor.

var ctor ( )

Default constructor.

local ActionManagerEx ( )

Default constructor.

virtual ~ActionManagerEx ( )
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
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
void initWithDictionary ( const char *  jsonName,
JsonDictionary dic,
cocos2d::Object 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
static void purgeActionManager ( )
static

Purges ActionManager point.

var purge ( )
static

Purges ActionManager point.

local destroyActionManager ( )
static

Purges ActionManager point.

void releaseActions ( )

Release all actions.

var releaseActions ( )

Release all actions.

local releaseActions ( )

Release all actions.

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

Member Data Documentation

cocos2d::Dictionary* _pActionDic
protected
var _pActionDic
protected
local _pActionDic
protected

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