Exemplo n.º 1
0
 private void btnMate_Click(object sender, EventArgs e)
 {
     if (siOne > -1 && siTwo > -1 && siOne != siTwo)
     {
         Creature offspring = new Creature(creatureList[siOne], creatureList[siTwo]);
         society.AdvanceAge(1);
         society.AddCreature(offspring);
         RefreshCreatureList();
         SortCreatureList("Youngest");
         RefreshPopulation();
     }
     siOne = siTwo = -1;
     UpdateMateSelected();
 }