Exemple #1
0
 /// <summary>
 /// Stop the execution of state's actions.
 /// </summary>
 /// <param name="manager">simulation's manager</param>
 public override void StopAction(Manager manager)
 {
 }
Exemple #2
0
 /// <summary>
 /// Switch to state "grow food".
 /// </summary>
 /// <param name="manager">simulation's manager</param>
 public override void GoNext(Manager manager)
 {
     manager.State = GetNextState();
 }
Exemple #3
0
 /// <summary>
 /// Creates initial population.
 /// </summary>
 /// <param name="manager">simulation's manager</param>
 public override void DoAction(Manager manager)
 {
     manager.CreateInitialPopulation();
 }