Beispiel #1
0
 // 接收一般訊息
 public void Receive(string msgCon, Colleague colleague)
 {
     Debug.WriteLine("{0} 接收到 {1} 訊息:{2}", this.name, colleague.Name, msgCon);
 }
Beispiel #2
0
 // 醫療行動
 public void Action(string msgCon, Colleague colleague)
 {
     Debug.WriteLine("{0} 接收到 {1} 訊息:{2}。前往救護中", this.name, colleague.Name, msgCon);
 }
Beispiel #3
0
 public abstract void Work(string msgType, string msgCon, Colleague colleague);