예제 #1
0
 public static double BaseSales(Choices choices)
 {
     var salesFactor = SalesFactor(choices.Price);
     var signFactor = SignFactor(choices.Signs);
     return salesFactor + (salesFactor*signFactor);
 }
예제 #2
0
 public static int CalculateSales(Choices choices, RandomEvent randomEvent)
 {
     var glassesSold = BaseSales(choices);
     glassesSold = randomEvent.Modify(glassesSold, choices);
     return (int) Math.Floor(glassesSold);
 }
예제 #3
0
 public override double Modify(double baseSales, Choices choices)
 {
     return baseSales*factor;
 }