public static FleetComposition ToSpy(int probeCount) { FleetComposition fleet = new FleetComposition(); fleet.Ships[ShipType.EspionageProbe] = probeCount; return(fleet); }
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); }
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); }