Ejemplo n.º 1
0
 public void DecTailors()
 {
     if (GetNumTailors() >= 1)
     {
         Lizard liz = lizards[Lizard.Assignment.TAILOR][0];
         lizards[Lizard.Assignment.TAILOR].RemoveAt(0);
         liz.AbandonTask();
         liz.assignment = Lizard.Assignment.WORKER;
         lizards[Lizard.Assignment.WORKER].Add(liz);
     }
 }
Ejemplo n.º 2
0
 public void DecBreeders()
 {
     if (GetNumBreeders() >= 1)
     {
         Lizard liz = lizards[Lizard.Assignment.HATCHERY][0];
         lizards[Lizard.Assignment.HATCHERY].RemoveAt(0);
         liz.AbandonTask();
         liz.assignment = Lizard.Assignment.WORKER;
         lizards[Lizard.Assignment.WORKER].Add(liz);
     }
 }
Ejemplo n.º 3
0
 public void DecFarmers()
 {
     if (GetNumFarmers() >= 1)
     {
         Lizard liz = lizards[Lizard.Assignment.FARMER][0];
         lizards[Lizard.Assignment.FARMER].RemoveAt(0);
         liz.AbandonTask();
         liz.assignment = Lizard.Assignment.WORKER;
         lizards[Lizard.Assignment.WORKER].Add(liz);
     }
 }
Ejemplo n.º 4
0
 public void IncTrappers()
 {
     if (GetNumTrappers() < GetMaxNumTrappers() && GetNumMisc() >= 1)
     {
         Lizard liz = lizards[Lizard.Assignment.WORKER][0];
         lizards[Lizard.Assignment.WORKER].RemoveAt(0);
         liz.AbandonTask();
         liz.assignment = Lizard.Assignment.TRAP;
         lizards[Lizard.Assignment.TRAP].Add(liz);
     }
 }