Beispiel #1
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(true);
 }
Beispiel #2
0
 protected override void OnObjectiveCompleted(AIObjective objective, Character target)
 => HumanAIController.RemoveTargets <AIObjectiveFightIntruders, Character>(character, target);
Beispiel #3
0
 public abstract bool IsDuplicate(AIObjective otherObjective);
Beispiel #4
0
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveFindSafety;
 protected override void OnObjectiveCompleted(AIObjective objective, Gap target)
 => HumanAIController.RemoveTargets <AIObjectiveFixLeaks, Gap>(character, target);
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveRescueAll;
Beispiel #7
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveIdle);
 }
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveExtinguishFires);
 }
 public void SetForcedOrder(AIObjective objective)
 {
     ForcedOrder = objective;
 }
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveFixLeaks;
Beispiel #11
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveFixLeaks);
 }
 protected override void OnObjectiveCompleted(AIObjective objective, Hull target)
 => HumanAIController.RemoveTargets <AIObjectiveExtinguishFires, Hull>(character, target);
Beispiel #13
0
 public OrderInfo(Order order, string orderOption, int manualPriority, AIObjective objective) : this(order, orderOption, manualPriority, OrderType.Current, objective)
 {
 }
Beispiel #14
0
 private OrderInfo(Order order, string orderOption, int manualPriority, OrderType orderType, AIObjective objective)
 {
     Order          = order;
     OrderOption    = orderOption;
     ManualPriority = Math.Min(manualPriority, CharacterInfo.HighestManualOrderPriority);
     Type           = orderType;
     Objective      = objective;
 }
Beispiel #15
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveChargeBatteries other && other.Option == Option);
 }
 public bool IsOrder(AIObjective objective)
 {
     return(objective == ForcedOrder || CurrentOrders.Any(o => o.Objective == objective));
 }
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveFindDivingGear;
Beispiel #18
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveFindDivingGear);
 }
 protected override void OnObjectiveCompleted(AIObjective objective, Character target)
 => HumanAIController.RemoveTargets <AIObjectiveRescueAll, Character>(character, target);
Beispiel #20
0
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectivePumpWater && otherObjective.Option == Option;
Beispiel #21
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveRepairItem repairObjective && repairObjective.Item == Item);
 }
Beispiel #22
0
 public void SetOrder(AIObjective objective)
 {
     CurrentOrder = objective;
 }
 protected override void OnObjectiveCompleted(AIObjective objective, Item target)
 => HumanAIController.RemoveTargets <AIObjectiveCleanupItems, Item>(character, target);
Beispiel #24
0
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveFightIntruders;
Beispiel #25
0
        public override bool IsDuplicate(AIObjective otherObjective)
        {
            AIObjectiveRescue rescueObjective = otherObjective as AIObjectiveRescue;

            return(rescueObjective != null && rescueObjective.targetCharacter == targetCharacter);
        }
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveFindSafety);
 }
Beispiel #27
0
 protected virtual bool ShouldInterruptSubObjective(AIObjective subObjective) => false;
Beispiel #28
0
 protected override void OnObjectiveCompleted(AIObjective objective, PowerContainer target)
 => HumanAIController.RemoveTargets <AIObjectiveChargeBatteries, PowerContainer>(character, target);
Beispiel #29
0
 protected override void OnObjectiveCompleted(AIObjective objective, Pump target)
 => HumanAIController.RemoveTargets <AIObjectivePumpWater, Pump>(character, target);
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveRepairItems repairItems && repairItems.RequireAdequateSkills == RequireAdequateSkills;