Example #1
0
        /// <summary>
        /// Constructor for planet related orders
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Any secondary order specification such as installation type.</param>
        /// <param name="TertiaryOrder"> Any Tertiary order such as limits.</param>
        /// <param name="Delay">Delay in seconds before performing this order.</param>
        /// <param name="PlanetOrder">The Planet in question.</param>
        public Orders(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, Planet PlanetOrder)
        {
            TypeOf     = TypeOrder;
            Target     = PlanetOrder;
            Secondary  = SecondaryOrder;
            Tertiary   = TertiaryOrder;
            Body       = PlanetOrder;
            OrderDelay = Delay;

            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + PlanetOrder.Name.ToString();
        }
Example #2
0
        /// <summary>
        /// Constructor for TaskGroup related orders
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Any secondary order specification such as installation type.</param>
        /// <param name="TertiaryOrder"> Any Tertiary order such as limits.</param>
        /// <param name="Delay">Delay in seconds before performing this order.</param>
        /// <param name="TaskGroupOrder">The TaskGroup in question.</param>
        public Orders(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, TaskGroupTN TaskGroupOrder)
        {
            TypeOf     = TypeOrder;
            Target     = TaskGroupOrder.Contact;
            Secondary  = SecondaryOrder;
            Tertiary   = TertiaryOrder;
            TaskGroup  = TaskGroupOrder;
            OrderDelay = Delay;

            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + TaskGroupOrder.Name.ToString();
        }
Example #3
0
        /// <summary>
        /// Constructor for SurveyPoint
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Secondary</param>
        /// <param name="TertiaryOrder">Tertiary</param>
        /// <param name="Delay">Order delay</param>
        /// <param name="SPOrder">survey point target of order</param>
        public Order(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, SurveyPoint SPOrder)
        {
            TypeOf           = TypeOrder;
            Target           = SPOrder;
            Secondary        = SecondaryOrder;
            Tertiary         = TertiaryOrder;
            SurveyPointOrder = SPOrder;
            OrderDelay       = Delay;

            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + SurveyPointOrder.Name.ToString();
        }
Example #4
0
        /// <summary>
        /// Constructor for way point related orders
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Any secondary order specification such as installation type.</param>
        /// <param name="TertiaryOrder"> Any Tertiary order such as limits.</param>
        /// <param name="Delay">Delay in seconds before performing this order.</param>
        /// <param name="WPOrder">The Way Point in question.</param>
        public Orders(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, Waypoint WPOrder)
        {
            TypeOf     = TypeOrder;
            Target     = WPOrder;
            Secondary  = SecondaryOrder;
            Tertiary   = TertiaryOrder;
            WayPoint   = WPOrder;
            OrderDelay = Delay;


            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + WPOrder.Name.ToString();
        }
Example #5
0
        /// <summary>
        /// Constructor for detected contact related order.
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Secondary</param>
        /// <param name="TertiaryOrder">Tertiary</param>
        /// <param name="Delay">Order delay</param>
        /// <param name="ShipsOrder">Ship target of order</param>
        public Order(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, ShipTN ShipsOrder)
        {
            TypeOf     = TypeOrder;
            Target     = ShipsOrder.ShipsTaskGroup.Contact;
            Secondary  = SecondaryOrder;
            Tertiary   = TertiaryOrder;
            ShipOrder  = ShipsOrder;
            TaskGroup  = ShipsOrder.ShipsTaskGroup;
            OrderDelay = Delay;

            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + ShipOrder.Name.ToString();
        }
Example #6
0
        /// <summary>
        /// Constructor for Population related orders
        /// </summary>
        /// <param name="TypeOrder">Type</param>
        /// <param name="SecondaryOrder">Any secondary order specification such as installation type.</param>
        /// <param name="TertiaryOrder"> Any Tertiary order such as limits.</param>
        /// <param name="Delay">Delay in seconds before performing this order.</param>
        /// <param name="PopOrder">The Population in question.</param>
        public Order(Constants.ShipTN.OrderType TypeOrder, int SecondaryOrder, int TertiaryOrder, int Delay, Population PopOrder)
        {
            TypeOf     = TypeOrder;
            Target     = PopOrder;
            Secondary  = SecondaryOrder;
            Tertiary   = TertiaryOrder;
            Pop        = PopOrder;
            OrderDelay = Delay;


            OrderTimeRequirement = -1;

            Name = TypeOrder.ToString() + " " + PopOrder.Name.ToString();
        }