/// <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; }
public TurnRadarToEnemy(BlackBoard blackBoard) { this.blackBoard = blackBoard; }
public TurnGunToEnemy(BlackBoard blackBoard, int turnsAhead) { this.blackBoard = blackBoard; this.turnsAhead = turnsAhead; }