示例#1
0
 /// <summary>
 /// Enemy creatures may actively attack the ant. This method is called if an
 /// enemy ant attacks; the ant can then decide how to react.
 /// Read more: "http://wiki.antme.net/en/API1:UnderAttack(Ant)"
 /// </summary>
 /// <param name="ant">attacking ant</param>
 public override void UnderAttack(Ant ant)
 {
     // Call behavior
     behavior.UnderAttack(ant);
 }