예제 #1
0
파일: Ant.cs 프로젝트: calebthompson/School
 private void GetFood(Food food)
 {
     hasFood = true;
     Location foodLocation = new Location(food.location.Left, food.location.Top);
     ReleasePheromoneOnFood(foodLocation);
     food.GetFood();
 }
예제 #2
0
 private void DrawFood(Food food)
 {
     SolidBrush brush = new SolidBrush(Color.Green);
     mapGraphics.FillEllipse(brush, food.location);
 }