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

#include <CCActionManager.h>

Inheritance diagram for ActionManager:
CCObject CCCopying

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...
 
void initWithDictionary (const char *jsonName, cs::CSJsonDictionary *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 purgeActionManager ()
 Purges ActionManager point. More...
 

Protected Attributes

CCDictionary * m_pActionDic
var 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

Constructor & Destructor Documentation

var ctor ( )
virtual ~ActionManager ( )
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
void initWithDictionary ( const char *  jsonName,
cs::CSJsonDictionary *  dic,
CCObject *  root 
)
var initWithDictionary ( var  jsonName,
var  dic,
var  root 
)
ActionObject* playActionByName ( const char *  jsonName,
const char *  actionName 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
var playActionByName ( var  jsonName,
var  actionName 
)

Play an Action with a name.

Parameters
jsonNameUI file name
actionNameaction name in teh UIfile.
static void purgeActionManager ( )
static

Purges ActionManager point.

var purgeActionManager ( )
static

Purges ActionManager point.

void releaseActions ( )

Release all actions.

var releaseActions ( )

Release all actions.

static ActionManager* shareManager ( )
static

Gets the static instance of ActionManager.

var shareManager ( )
static

Gets the static instance of ActionManager.

Member Data Documentation

CCDictionary* m_pActionDic
protected
var m_pActionDic
protected

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