예제 #1
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="blackBoard">Blackboard</param>
 /// <param name="interruptWhen">Interrupt the sequence when this function is true</param>
 /// <param name="interruptBehaviour">Interrupt the sequence with this behaviour</param>
 /// <param name="input">Behaviour which will be looped</param>
 public Interrupter(BlackBoard blackBoard, Func <bool> interruptWhen, BTNode interruptBehaviour, params BTNode[] input)
 {
     this.blackBoard         = blackBoard;
     inputNodes              = input;
     this.interruptWhen      = interruptWhen;
     this.interruptBehaviour = interruptBehaviour;
 }
예제 #2
0
 public TurnRadarToEnemy(BlackBoard blackBoard)
 {
     this.blackBoard = blackBoard;
 }
예제 #3
0
 public TurnGunToEnemy(BlackBoard blackBoard, int turnsAhead)
 {
     this.blackBoard = blackBoard;
     this.turnsAhead = turnsAhead;
 }