示例#1
0
 /// <summary>
 /// this executes if the agent receives a message from the
 /// message dispatcher
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="message"></param>
 public abstract bool OnMessage(T entity, Telegram message);
示例#2
0
 public override bool OnMessage(FieldPlayer entity, Telegram message)
 {
     return(false);
 }
 public override bool OnMessage(SoccerTeam entity, Telegram message)
 {
     return(false);
 }
示例#4
0
 //-------------------- HandleMessage -------------------------------------
 //
 //  routes any messages appropriately
 //------------------------------------------------------------------------
 public override bool HandleMessage(Telegram msg)
 {
     return(_stateMachine.HandleMessage(msg));
 }