game-ai/src/main/java/com/jzy/game/ai/btree/Task.java
/**
	 * Terminates this task and all its running children. This method MUST be called
	 * only if this task is running.
	 */
Terminates this task and all its running children. This method MUST be called
only if this task is running.
Terminates this task and all its running children . This method MUST be called only if this task is running .
public final void cancel() {
		cancelRunningChildren(0);
		Status previousStatus = status;
		status = Status.CANCELLED;
		if (tree.listeners != null && tree.listeners.size() > 0)
			tree.notifyStatusUpdated(this, previousStatus);
		end();
	}
public final void cancel ( ) { cancelRunningChildren ( 0 ) ; Status previousStatus = status ; status = Status . CANCELLED ; if ( tree . listeners != null && tree . listeners . size ( ) > 0 ) tree . notifyStatusUpdated ( this , previousStatus ) ; end ( ) ; }
Terminates this task and all its running children.
Terminates this task and all its running children .