public void AddFreeAntChecked(Location ant, params PlanType[] plans) { // check if it has already a plan if (!HasPlanAnt(ant, plans)) { MyFreeAnts.Add(ant); } }
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); } }