Exemple #1
0
        public bool Equals(Commodity compareTo)
        {
            if (name != compareTo.Name || buyPrice != compareTo.BuyPrice || sellPrice != compareTo.SellPrice || supply != compareTo.Supply)
                return false;

            return true;
        }
Exemple #2
0
 public Commodity(Commodity copy)
 {
     name = copy.Name;
     buyPrice = copy.BuyPrice;
     sellPrice = copy.SellPrice;
     supply = copy.supply;
     lastUpdated = copy.LastUpdated;
 }
Exemple #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;
 }
Exemple #4
0
 public Trade()
 {
     commodity = new Commodity();
 }
Exemple #5
0
 public Trade()
 {
     commodity = new Commodity();
 }