game-ai/src/main/java/com/jzy/game/ai/btree/Task.java
/**
	 * Terminates the running children of this task starting from the specified
	 * index up to the end.
	 * 
	 * @param startIndex
	 *            the start index
	 */
Terminates the running children of this task starting from the specified
index up to the end.

@param startIndex
the start index
Terminates the running children of this task starting from the specified index up to the end . @param startIndex the start index
protected void cancelRunningChildren(int startIndex) {
		for (int i = startIndex, n = getChildCount(); i < n; i++) {
			Task<E> child = getChild(i);
			if (child.status == Status.RUNNING) {
				child.cancel();
			}
		}
	}
protected void cancelRunningChildren ( int startIndex ) { for ( int i = startIndex , n = getChildCount ( ) ; i < n ; i ++ ) { Task < E > child = getChild ( i ) ; if ( child . status == Status . RUNNING ) { child . cancel ( ) ; } } }
Terminates the running children of this task starting from the specified
 index up to the end.
Terminates the running children of this task starting from the specified index up to the end .