public bool Equals(Commodity compareTo) { if (name != compareTo.Name || buyPrice != compareTo.BuyPrice || sellPrice != compareTo.SellPrice || supply != compareTo.Supply) return false; return true; }
public Commodity(Commodity copy) { name = copy.Name; buyPrice = copy.BuyPrice; sellPrice = copy.SellPrice; supply = copy.supply; lastUpdated = copy.LastUpdated; }
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; }
public Trade() { commodity = new Commodity(); }