Beispiel #1
0
 /// <summary>
 /// new value. Cost in that particular market. Cheapest if there are several products
 /// </summary>
 public MoneyView getCost(Product product)
 {
     if (product == Product.Gold)
     {
         //var res = need.Copy().Multiply(Options.goldToCoinsConvert);
         //res.Multiply(Options.GovernmentTakesShareOfGoldOutput);
         //return res;
         return(new MoneyView(1));// cost of 1 gold
     }
     else
     {
         return(new MoneyView((decimal)prices.getCheapestStorage(product, this).get()));
     }
 }
Beispiel #2
0
 /// <summary>
 /// new value
 /// </summary>
 internal MoneyView getCost(Product whom)
 {
     return(new MoneyView((decimal)marketPrice.getCheapestStorage(whom).get()));
 }
Beispiel #3
0
 internal Value getPrice(Product whom)
 {
     return(marketPrice.getCheapestStorage(whom));
 }