00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #import "CCAction.h"
00029 #import "Support/ccCArray.h"
00030 #import "Support/uthash.h"
00031
00032 typedef struct _hashElement
00033 {
00034 struct ccArray *actions;
00035 id target;
00036 unsigned int actionIndex;
00037 CCAction *currentAction;
00038 BOOL currentActionSalvaged;
00039 BOOL paused;
00040 UT_hash_handle hh;
00041 } tHashElement;
00042
00043
00054 @interface CCActionManager : NSObject {
00055
00056 tHashElement *targets;
00057 tHashElement *currentTarget;
00058 BOOL currentTargetSalvaged;
00059 }
00060
00062 + (CCActionManager *)sharedManager;
00063
00067 +(void)purgeSharedManager;
00068
00069
00070
00076 -(void) addAction: (CCAction*) action target:(id)target paused:(BOOL)paused;
00079 -(void) removeAllActions;
00080
00084 -(void) removeAllActionsFromTarget:(id)target;
00087 -(void) removeAction: (CCAction*) action;
00089 -(void) removeActionByTag:(int)tag target:(id)target;
00093 -(CCAction*) getActionByTag:(int) tag target:(id)target;
00099 -(int) numberOfRunningActionsInTarget:(id)target;
00100
00103 -(void) pauseTarget:(id)target;
00106 -(void) resumeTarget:(id)target;
00107
00111 -(void) resumeAllActionsForTarget:(id)target DEPRECATED_ATTRIBUTE;
00114 -(void) pauseAllActionsForTarget:(id)target DEPRECATED_ATTRIBUTE;
00115
00116
00117 @end
00118