game-ai/src/main/java/com/jzy/game/ai/btree/Task.java
/** Resets this task to make it restart from scratch on next run. */
Resets this task to make it restart from scratch on next run.
Resets this task to make it restart from scratch on next run .
public void resetTask() {
		if (status == Status.RUNNING) {
			cancel();
		}
		for (int i = 0, n = getChildCount(); i < n; i++) {
			getChild(i).resetTask();
		}
		status = Status.FRESH;
		tree = null;
		control = null;
	}
public void resetTask ( ) { if ( status == Status . RUNNING ) { cancel ( ) ; } for ( int i = 0 , n = getChildCount ( ) ; i < n ; i ++ ) { getChild ( i ) . resetTask ( ) ; } status = Status . FRESH ; tree = null ; control = null ; }
Resets this task to make it restart from scratch on next run.
Resets this task to make it restart from scratch on next run .