public static int IndexOfStation(StarSystem outputSystem, string stationName) { for (int i = 0; i < outputSystem.Stations.Count; i++) if (outputSystem.Stations[i].Name.Contains(stationName)) return i; return -1; }
public StarSystem(StarSystem copy) { stations = new List<Station>(); name = copy.Name; foreach (Station station in copy.Stations) stations.Add(new Station(station)); }
public Trade(Trade copy) { commodity = new Commodity(copy.Commodity); startSystem = new StarSystem(copy.StartSystem); endSystem = new StarSystem(copy.EndSystem); startStation = new Station(copy.StartStation); endStation = new Station(copy.EndStation); unitsBought = copy.UnitsBought; score = copy.Score; }