Пример #1
0
 /// <summary>
 /// This method is called as soon as an ant sees an apple within its 360°
 /// visual range. The parameter is the piece of fruit that the ant has spotted.
 /// Read more: "http://wiki.antme.net/en/API1:Spots(Fruit)"
 /// </summary>
 /// <param name="fruit">spotted fruit</param>
 public override void Spots(Fruit fruit)
 {
     // Call behavior
     behavior.Spots(fruit);
 }