2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
class CCActionManager : public CCObject
|
2011-06-14 14:31:25 +08:00
|
|
|
{
|
2012-04-26 09:34:42 +08:00
|
|
|
void addAction(CCAction *pAction, CCNode *pTarget, bool paused);
|
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void removeAllActions(void);
|
2012-04-26 09:34:42 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void removeAllActionsFromTarget(CCObject *pTarget);
|
2012-04-26 09:34:42 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void removeAction(CCAction *pAction);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-04-26 09:34:42 +08:00
|
|
|
void removeActionByTag(unsigned int tag, CCObject *pTarget);
|
|
|
|
|
|
|
|
CCAction* getActionByTag(unsigned int tag, CCObject *pTarget);
|
|
|
|
|
2013-07-22 13:42:58 +08:00
|
|
|
unsigned int getNumberOfRunningActionsInTarget(CCObject *pTarget);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-02-02 14:26:38 +08:00
|
|
|
void pauseTarget(CCObject *pTarget);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-04-26 09:34:42 +08:00
|
|
|
void resumeTarget(CCObject *pTarget);
|
2012-08-10 18:14:04 +08:00
|
|
|
|
|
|
|
CCSet* pauseAllRunningActions();
|
|
|
|
|
|
|
|
void resumeTargets(CCSet* targetsToResume);
|
2012-02-02 14:26:38 +08:00
|
|
|
};
|