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

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