示例#1
0
 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;
 }
示例#2
0
        public StarSystem(StarSystem copy)
        {
            stations = new List<Station>();

            name = copy.Name;

            foreach (Station station in copy.Stations)
                stations.Add(new Station(station));
        }
示例#3
0
 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;
 }