Exemplo n.º 1
0
        public override string GetInfo()
        {
            string text = "";

            if (antennaRange0 != antennaRange1)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Antenna range: " + RTUtils.length(this.antennaRange0 * 1000) + "m / " + RTUtils.length(this.antennaRange1 * 1000) + "m";
            }
            else if (antennaRange > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Antenna range: " + RTUtils.length(antennaRange * 1000) + "m";
            }

            if (dishRange0 != dishRange1)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Dish range: " + RTUtils.length(dishRange0 * 1000) + "m / " + RTUtils.length(dishRange1 * 1000) + "m";
            }
            else if (dishRange > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Dish range: " + RTUtils.length(dishRange * 1000) + "m";
            }

            if (EnergyDrain0 != EnergyDrain1)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Energy req.: " + RTUtils.eCost(EnergyDrain0) + " / " + RTUtils.eCost(EnergyDrain1); // NK
            }
            else if (this.EnergyDrain > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Energy req.: " + RTUtils.eCost(EnergyDrain); // NK
            }

            return(text);
        }
Exemplo n.º 2
0
        public override string GetInfo()
        {
            string text;

            if (isRemoteCommand)
            {
                text = "Remote Command";
            }
            else
            {
                text = "Remote Control";
            }

            text += "\nEnergy req.: " + RTUtils.eCost(EnergyDrain); // NK

            return(text);
        }
Exemplo n.º 3
0
        public override string GetInfo()
        {
            string text = "";

            if (this.antennaRange > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Antenna range: " + RTUtils.length(this.antennaRange * 1000) + "m";
            }
            if (this.dishRange > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Dish range: " + RTUtils.length(this.dishRange * 1000) + "m";
            }
            if (this.EnergyDrain > 0)
            {
                if (text.Length > 0)
                {
                    text += "\n";
                }
                text += "Energy req.: " + RTUtils.eCost(EnergyDrain); // NK
            }

            //if (this.EnergyDrain0 > 0)
            //    text += "\nInactive energy req.: " + (Math.Round(this.EnergyDrain0 * 60, 1) == 0 ? Math.Round(this.EnergyDrain0 * 60, 2) : Math.Round(this.EnergyDrain0 * 60, 1)) + "/min.";
            //if (this.EnergyDrain1 > 0)
            //    text += "\nEnergy req.: " + (Math.Round(this.EnergyDrain1 * 60, 1) == 0 ? Math.Round(this.EnergyDrain1 * 60, 2) : Math.Round(this.EnergyDrain1 * 60, 1)) + "/min.";

            return(text);
        }