Exemplo n.º 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;
 }
Exemplo n.º 2
0
 public TurnRadarToEnemy(BlackBoard blackBoard)
 {
     this.blackBoard = blackBoard;
 }
Exemplo n.º 3
0
 public TurnGunToEnemy(BlackBoard blackBoard, int turnsAhead)
 {
     this.blackBoard = blackBoard;
     this.turnsAhead = turnsAhead;
 }