Пример #1
0
 /// <summary>
 /// Function that updates incomes of the player
 /// </summary>
 private void UpdateIncomes()
 {
     // Calculating incomes
     woodIncome  = Sawmill.GetBaseProduction() * Sawmill.GetSawmillsCount();
     stoneIncome = Quarry.GetBaseProduction() * Quarry.GetQuarriesCount();
     gemsIncome  = Mine.GetBaseProduction() * Mine.GetMinesCount();
     // Food income depends on how many other buildings player has
     foodIncome = Farm.GetBaseProduction() * Farm.GetFarmsCount() -
                  (Quarry.GetFoodIncomeCost() + Mine.GetFoodIncomeCost() + Castle.GetFoodIncomeCost());
     moneyIncome = 10 + Castle.GetBaseProduction();
 }