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