Exemple #1
0
 // Player sells goods to the market.
 public bool PlayerSells(Good item)
 {
     if (item.MinTechToUse <= planetTech)
     {
         player.Ship.Cargo.Remove(item);
         Supply.Add(item);
         player.Money += purchasePrices[item];
         return(true);
     }
     else
     {
         return(false);
     }
 }
Exemple #2
0
 public void PutToWarehouse(Product productToPut, int number) =>
 Supply.Add(new BoxedProduct(productToPut, number));
Exemple #3
0
 public void AddSupply(Product product) => Supply.Add(product);