@@ -61,13 +61,13 @@ class CC_DLL ActionManager : public Ref
61
61
/* *
62
62
* @js ctor
63
63
*/
64
- ActionManager ();
64
+ ActionManager (void );
65
65
66
66
/* *
67
67
* @js NA
68
68
* @lua NA
69
69
*/
70
- virtual ~ActionManager ();
70
+ ~ActionManager (void );
71
71
72
72
// actions
73
73
@@ -80,55 +80,55 @@ class CC_DLL ActionManager : public Ref
80
80
* @param target The target which need to be added an action.
81
81
* @param paused Is the target paused or not.
82
82
*/
83
- virtual void addAction (Action *action, Node *target, bool paused);
83
+ void addAction (Action *action, Node *target, bool paused);
84
84
85
85
/* * Removes all actions from all the targets.
86
86
*/
87
- virtual void removeAllActions ();
87
+ void removeAllActions ();
88
88
89
89
/* * Removes all actions from a certain target.
90
90
All the actions that belongs to the target will be removed.
91
91
*
92
92
* @param target A certain target.
93
93
*/
94
- virtual void removeAllActionsFromTarget (Node *target);
94
+ void removeAllActionsFromTarget (Node *target);
95
95
96
96
/* * Removes an action given an action reference.
97
97
*
98
98
* @param action A certain target.
99
99
*/
100
- virtual void removeAction (Action *action);
100
+ void removeAction (Action *action);
101
101
102
102
/* * Removes an action given its tag and the target.
103
103
*
104
104
* @param tag The action's tag.
105
105
* @param target A certain target.
106
106
*/
107
- virtual void removeActionByTag (int tag, Node *target);
107
+ void removeActionByTag (int tag, Node *target);
108
108
109
109
/* * Removes all actions given its tag and the target.
110
110
*
111
111
* @param tag The actions' tag.
112
112
* @param target A certain target.
113
113
* @js NA
114
114
*/
115
- virtual void removeAllActionsByTag (int tag, Node *target);
115
+ void removeAllActionsByTag (int tag, Node *target);
116
116
117
117
/* * Removes all actions matching at least one bit in flags and the target.
118
118
*
119
119
* @param flags The flag field to match the actions' flags based on bitwise AND.
120
120
* @param target A certain target.
121
121
* @js NA
122
122
*/
123
- virtual void removeActionsByFlags (unsigned int flags, Node *target);
123
+ void removeActionsByFlags (unsigned int flags, Node *target);
124
124
125
125
/* * Gets an action given its tag an a target.
126
126
*
127
127
* @param tag The action's tag.
128
128
* @param target A certain target.
129
129
* @return The Action the with the given tag.
130
130
*/
131
- virtual Action* getActionByTag (int tag, const Node *target) const ;
131
+ Action* getActionByTag (int tag, const Node *target) const ;
132
132
133
133
/* * Returns the numbers of actions that are running in a certain target.
134
134
* Composable actions are counted as 1 action. Example:
@@ -170,37 +170,37 @@ class CC_DLL ActionManager : public Ref
170
170
* @see getNumberOfRunningActionsInTarget
171
171
* @js NA
172
172
*/
173
- virtual size_t getNumberOfRunningActionsInTargetByTag (const Node *target, int tag);
173
+ size_t getNumberOfRunningActionsInTargetByTag (const Node *target, int tag);
174
174
175
175
176
176
/* * Pauses the target: all running actions and newly added actions will be paused.
177
177
*
178
178
* @param target A certain target.
179
179
*/
180
- virtual void pauseTarget (Node *target);
180
+ void pauseTarget (Node *target);
181
181
182
182
/* * Resumes the target. All queued actions will be resumed.
183
183
*
184
184
* @param target A certain target.
185
185
*/
186
- virtual void resumeTarget (Node *target);
186
+ void resumeTarget (Node *target);
187
187
188
188
/* * Pauses all running actions, returning a list of targets whose actions were paused.
189
189
*
190
190
* @return A list of targets whose actions were paused.
191
191
*/
192
- virtual Vector<Node*> pauseAllRunningActions ();
192
+ Vector<Node*> pauseAllRunningActions ();
193
193
194
194
/* * Resume a set of targets (convenience function to reverse a pauseAllRunningActions call).
195
195
*
196
196
* @param targetsToResume A set of targets need to be resumed.
197
197
*/
198
- virtual void resumeTargets (const Vector<Node*>& targetsToResume);
198
+ void resumeTargets (const Vector<Node*>& targetsToResume);
199
199
200
200
/* * Main loop of ActionManager.
201
201
* @param dt In seconds.
202
202
*/
203
- virtual void update (float dt);
203
+ void update (float dt);
204
204
205
205
protected:
206
206
// declared in ActionManager.m
0 commit comments