mirror of https://github.com/axmolengine/axmol.git
add 'virtual' for ActionManager functions (#17594)
This commit is contained in:
parent
aa3bff6c12
commit
63a81b1f7e
|
@ -61,13 +61,13 @@ public:
|
|||
/**
|
||||
* @js ctor
|
||||
*/
|
||||
ActionManager(void);
|
||||
ActionManager();
|
||||
|
||||
/**
|
||||
* @js NA
|
||||
* @lua NA
|
||||
*/
|
||||
~ActionManager(void);
|
||||
virtual ~ActionManager();
|
||||
|
||||
// actions
|
||||
|
||||
|
@ -80,31 +80,31 @@ public:
|
|||
* @param target The target which need to be added an action.
|
||||
* @param paused Is the target paused or not.
|
||||
*/
|
||||
void addAction(Action *action, Node *target, bool paused);
|
||||
virtual void addAction(Action *action, Node *target, bool paused);
|
||||
|
||||
/** Removes all actions from all the targets.
|
||||
*/
|
||||
void removeAllActions();
|
||||
virtual void removeAllActions();
|
||||
|
||||
/** Removes all actions from a certain target.
|
||||
All the actions that belongs to the target will be removed.
|
||||
*
|
||||
* @param target A certain target.
|
||||
*/
|
||||
void removeAllActionsFromTarget(Node *target);
|
||||
virtual void removeAllActionsFromTarget(Node *target);
|
||||
|
||||
/** Removes an action given an action reference.
|
||||
*
|
||||
* @param action A certain target.
|
||||
*/
|
||||
void removeAction(Action *action);
|
||||
virtual void removeAction(Action *action);
|
||||
|
||||
/** Removes an action given its tag and the target.
|
||||
*
|
||||
* @param tag The action's tag.
|
||||
* @param target A certain target.
|
||||
*/
|
||||
void removeActionByTag(int tag, Node *target);
|
||||
virtual void removeActionByTag(int tag, Node *target);
|
||||
|
||||
/** Removes all actions given its tag and the target.
|
||||
*
|
||||
|
@ -112,7 +112,7 @@ public:
|
|||
* @param target A certain target.
|
||||
* @js NA
|
||||
*/
|
||||
void removeAllActionsByTag(int tag, Node *target);
|
||||
virtual void removeAllActionsByTag(int tag, Node *target);
|
||||
|
||||
/** Removes all actions matching at least one bit in flags and the target.
|
||||
*
|
||||
|
@ -120,7 +120,7 @@ public:
|
|||
* @param target A certain target.
|
||||
* @js NA
|
||||
*/
|
||||
void removeActionsByFlags(unsigned int flags, Node *target);
|
||||
virtual void removeActionsByFlags(unsigned int flags, Node *target);
|
||||
|
||||
/** Gets an action given its tag an a target.
|
||||
*
|
||||
|
@ -128,7 +128,7 @@ public:
|
|||
* @param target A certain target.
|
||||
* @return The Action the with the given tag.
|
||||
*/
|
||||
Action* getActionByTag(int tag, const Node *target) const;
|
||||
virtual Action* getActionByTag(int tag, const Node *target) const;
|
||||
|
||||
/** Returns the numbers of actions that are running in a certain target.
|
||||
* Composable actions are counted as 1 action. Example:
|
||||
|
@ -139,7 +139,7 @@ public:
|
|||
* @return The numbers of actions that are running in a certain target.
|
||||
* @js NA
|
||||
*/
|
||||
ssize_t getNumberOfRunningActionsInTarget(const Node *target) const;
|
||||
virtual ssize_t getNumberOfRunningActionsInTarget(const Node *target) const;
|
||||
|
||||
/** @deprecated Use getNumberOfRunningActionsInTarget() instead.
|
||||
*/
|
||||
|
@ -160,37 +160,37 @@ public:
|
|||
* @see getNumberOfRunningActionsInTarget
|
||||
* @js NA
|
||||
*/
|
||||
size_t getNumberOfRunningActionsInTargetByTag(const Node *target, int tag);
|
||||
virtual size_t getNumberOfRunningActionsInTargetByTag(const Node *target, int tag);
|
||||
|
||||
|
||||
/** Pauses the target: all running actions and newly added actions will be paused.
|
||||
*
|
||||
* @param target A certain target.
|
||||
*/
|
||||
void pauseTarget(Node *target);
|
||||
virtual void pauseTarget(Node *target);
|
||||
|
||||
/** Resumes the target. All queued actions will be resumed.
|
||||
*
|
||||
* @param target A certain target.
|
||||
*/
|
||||
void resumeTarget(Node *target);
|
||||
virtual void resumeTarget(Node *target);
|
||||
|
||||
/** Pauses all running actions, returning a list of targets whose actions were paused.
|
||||
*
|
||||
* @return A list of targets whose actions were paused.
|
||||
*/
|
||||
Vector<Node*> pauseAllRunningActions();
|
||||
virtual Vector<Node*> pauseAllRunningActions();
|
||||
|
||||
/** Resume a set of targets (convenience function to reverse a pauseAllRunningActions call).
|
||||
*
|
||||
* @param targetsToResume A set of targets need to be resumed.
|
||||
*/
|
||||
void resumeTargets(const Vector<Node*>& targetsToResume);
|
||||
virtual void resumeTargets(const Vector<Node*>& targetsToResume);
|
||||
|
||||
/** Main loop of ActionManager.
|
||||
* @param dt In seconds.
|
||||
*/
|
||||
void update(float dt);
|
||||
virtual void update(float dt);
|
||||
|
||||
protected:
|
||||
// declared in ActionManager.m
|
||||
|
|
Loading…
Reference in New Issue