public override IEnumerable <TargetLineNode> TargetLineNodes(Actor self)
 {
     if (ChildActivity == null)
     {
         yield return(new TargetLineNode(host, Color.Green));
     }
     else
     {
         foreach (var n in ChildActivity.TargetLineNodes(self))
         {
             yield return(n);
         }
     }
 }
示例#2
0
 public override IEnumerable <TargetLineNode> TargetLineNodes(Actor self)
 {
     if (ChildActivity == null)
     {
         yield return(new TargetLineNode(Target.FromActor(dest), aircraft.Info.TargetLineColor));
     }
     else
     {
         foreach (var n in ChildActivity.TargetLineNodes(self))
         {
             yield return(n);
         }
     }
 }
 public override IEnumerable <TargetLineNode> TargetLineNodes(Actor self)
 {
     if (ChildActivity != null)
     {
         foreach (var n in ChildActivity.TargetLineNodes(self))
         {
             yield return(n);
         }
     }
     else
     {
         yield return(new TargetLineNode(fallbackTarget, Color.OrangeRed));
     }
 }
示例#4
0
 public override IEnumerable <TargetLineNode> TargetLineNodes(Actor self)
 {
     if (targetLineColor != null)
     {
         if (returnToBase)
         {
             foreach (var n in ChildActivity.TargetLineNodes(self))
             {
                 yield return(n);
             }
         }
         if (!returnToBase || !attackAircraft.Info.AbortOnResupply)
         {
             yield return(new TargetLineNode(useLastVisibleTarget ? lastVisibleTarget : target, targetLineColor.Value));
         }
     }
 }
示例#5
0
        public override IEnumerable <TargetLineNode> TargetLineNodes(Actor self)
        {
            if (ChildActivity != null)
            {
                foreach (var n in ChildActivity.TargetLineNodes(self))
                {
                    yield return(n);
                }
            }

            if (orderLocation != null)
            {
                yield return(new TargetLineNode(Target.FromCell(self.World, orderLocation.Value), harvInfo.HarvestLineColor));
            }
            else if (deliverActor != null)
            {
                yield return(new TargetLineNode(Target.FromActor(deliverActor), harvInfo.DeliverLineColor));
            }
        }