mirror of https://github.com/axmolengine/axmol.git
35 lines
892 B
Plaintext
35 lines
892 B
Plaintext
|
|
#include "CCAction.h"
|
|
#include "CCMutableArray.h"
|
|
#include "CCObject.h"
|
|
#include "selector_protocol.h"
|
|
|
|
namespace cocos2d {
|
|
|
|
struct _hashElement;
|
|
|
|
class CCActionManager : public CCObject, public SelectorProtocol
|
|
{
|
|
public:
|
|
CCActionManager(void);
|
|
bool init(void);
|
|
void addAction(CCAction *pAction, CCNode *pTarget, bool paused);
|
|
void removeAllActions(void);
|
|
void removeAllActionsFromTarget(CCObject *pTarget);
|
|
void removeAction(CCAction *pAction);
|
|
void removeActionByTag(int tag, CCObject *pTarget);
|
|
CCAction* getActionByTag(int tag, CCObject *pTarget);
|
|
int numberOfRunningActionsInTarget(CCObject *pTarget);
|
|
void pauseTarget(CCObject *pTarget);
|
|
void resumeTarget(CCObject *pTarget);
|
|
void purgeSharedManager(void);
|
|
void selectorProtocolRetain(void);
|
|
void selectorProtocolRelease(void);
|
|
static CCActionManager* sharedManager(void);
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|