public void OnDayStart() { foreach (var country in _country.Countries) { var taxes = _population.GetDailyTaxIncome(country); _money.Add(country, $"{Content.taxes_name} ({_population.GetCount(country)})", taxes); var locCount = _map.GetCountryLocations(country).Count; var growCount = _population.TryGrowForDay(country, locCount); if (growCount > 0) { Debug.WriteLine($"Grow {country} population: +{growCount} = {_population.GetCount(country)}"); } } }
void TryRecruit() { var player = _country.PlayerCountry; var population = _population.GetCount(player); _out.WriteFormat(Content.army_recruit_request_2, _army.GetUsagePerSoldier(player), population); while (true) { var count = _input.ReadInt(); if ((count > 0) && (population >= count)) { _out.Write(Content.army_recruit_response); _army.Recruit(player, count); break; } } }