示例#1
0
 public void AddFreeAntChecked(Location ant, params PlanType[] plans)
 {
     // check if it has already a plan
     if (!HasPlanAnt(ant, plans))
     {
         MyFreeAnts.Add(ant);
     }
 }
示例#2
0
 public void AddFreeAntChecked(Location ant)
 {
     // check if it has already a plan
     if (!HasPlanAnt(ant,
                     PlanType.Move,
                     PlanType.Attack,
                     PlanType.Food,
                     PlanType.Hill,
                     PlanType.Explore))
     {
         MyFreeAnts.Add(ant);
     }
 }