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

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