Ejemplo n.º 1
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;
 }
Ejemplo n.º 2
0
        public bool Equals(Trade compareTo)
        {
            if (commodity.Equals(compareTo.Commodity) == false)
                return false;

            if (startSystem.Name != compareTo.StartSystem.Name || endSystem.Name != compareTo.EndSystem.Name ||
                startStation.Name != compareTo.StartStation.Name || endStation.Name != compareTo.EndStation.Name ||
                unitsBought != compareTo.UnitsBought || score != compareTo.Score)
                return false;

            return true;
        }
Ejemplo n.º 3
0
 public void AddTrade(Trade trade)
 {
     trades.Add(trade);
 }