Пример #1
0
        public static FleetComposition ToSpy(int probeCount)
        {
            FleetComposition fleet = new FleetComposition();

            fleet.Ships[ShipType.EspionageProbe] = probeCount;

            return(fleet);
        }
Пример #2
0
        public static FleetComposition ToPlunder(Resources resources, ShipType cargo = ShipType.LargeCargo)
        {
            FleetComposition fleet = new FleetComposition();

            // Simple calculation method
            fleet.Ships[cargo] = (int)Math.Ceiling(GetPlunder(resources).Total / GetTransportCapacity(cargo));

            return(fleet);
        }
Пример #3
0
        public static FleetComposition ToTransport(Resources resources, ShipType cargo = ShipType.LargeCargo)
        {
            FleetComposition fleet = new FleetComposition();

            fleet.Ships[cargo] = (int)Math.Ceiling(resources.Total / GetTransportCapacity(cargo));
            fleet.Resources    = resources;

            return(fleet);
        }