Beispiel #1
0
        public void NextYear()
        {
            float prevPopulation = populationLine.GetValueOfLastPoint();
            //People die
            float deaths = KillSome();             //Doesn't update any charts. Happens later.
            float births = CalculateBirths();

            //People are born and everyone age to make space for the young'ns
            AgeEveryone(births);                              //Updates the age chart
            RecalculateRates(births, deaths, prevPopulation); //Updates the rate chart
            RecalculatePopulation();                          //Updates the population chart
        }