BBGamelib.CCActionManager.numberOfRunningActionsInTarget C# (CSharp) Method

numberOfRunningActionsInTarget() public method

public numberOfRunningActionsInTarget ( System target ) : uint
target System
return uint
		public uint numberOfRunningActionsInTarget(System.Object target){
			tHashElement element = _targets.HASH_FIND_INT (target.GetHashCode());
			if (element != null && element.actions != null)
				return (uint)(element.actions.Count);
			return 0;
		}
		#endregion

Usage Example

 /** Returns the numbers of actions that are running plus the ones that are schedule to run (actions in actionsToAdd and actions arrays).
  * Composable actions are counted as 1 action. Example:
  *    If you are running 1 Sequence of 7 actions, it will return 1.
  *    If you are running 7 Sequences of 2 actions, it will return 7.
  */
 public uint numberOfRuningActions()
 {
     return(_actionManager.numberOfRunningActionsInTarget(this));
 }