Exemple #1
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(true);
 }
Exemple #2
0
 protected override void OnObjectiveCompleted(AIObjective objective, Character target)
 => HumanAIController.RemoveTargets <AIObjectiveFightIntruders, Character>(character, target);
Exemple #3
0
 public abstract bool IsDuplicate(AIObjective otherObjective);
Exemple #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;
 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;
Exemple #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);
Exemple #13
0
 public OrderInfo(Order order, string orderOption, int manualPriority, AIObjective objective) : this(order, orderOption, manualPriority, OrderType.Current, objective)
 {
 }
Exemple #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;
 }
Exemple #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;
Exemple #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);
Exemple #20
0
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectivePumpWater && otherObjective.Option == Option;
Exemple #21
0
 public override bool IsDuplicate(AIObjective otherObjective)
 {
     return(otherObjective is AIObjectiveRepairItem repairObjective && repairObjective.Item == Item);
 }
Exemple #22
0
 public void SetOrder(AIObjective objective)
 {
     CurrentOrder = objective;
 }
 protected override void OnObjectiveCompleted(AIObjective objective, Item target)
 => HumanAIController.RemoveTargets <AIObjectiveCleanupItems, Item>(character, target);
Exemple #24
0
 public override bool IsDuplicate(AIObjective otherObjective) => otherObjective is AIObjectiveFightIntruders;
Exemple #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);
 }
Exemple #27
0
 protected virtual bool ShouldInterruptSubObjective(AIObjective subObjective) => false;
Exemple #28
0
 protected override void OnObjectiveCompleted(AIObjective objective, PowerContainer target)
 => HumanAIController.RemoveTargets <AIObjectiveChargeBatteries, PowerContainer>(character, target);
Exemple #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;