core-city-growth
Methods relating to the changing size of City
s.
The main CityGrowth
object stores the current state of Food
for a City
and has convenience methods for controlling
when a City
's size changes. CityGrowth
s are retrieved via a CityGrowthRegistry
instance. A growth
key of
AdditionalData
is provided for City
s automatically.
Includes the following Rule
s:
-
Cost
for determining how muchFood
growth requires. -
FoodExhausted
whenFoodStorage
is depleted. -
FoodLow
triggered whenFoodStorage
is "low". -
FoodStorage
processed whenCityGrowth.check
is called. -
Grow
controls what happens whenCityGrowth.grow
is called. -
Shrink
whenCityGrowth.shrink
is called.