Example #1
0
 private void GetFood(Food food)
 {
     hasFood = true;
     Location foodLocation = new Location(food.location.Left, food.location.Top);
     ReleasePheromoneOnFood(foodLocation);
     food.GetFood();
 }
Example #2
0
 private void DrawFood(Food food)
 {
     SolidBrush brush = new SolidBrush(Color.Green);
     mapGraphics.FillEllipse(brush, food.location);
 }