Example #1
0
 public abstract void Send(string message, Colleague colleague);
Example #2
0
 // 攻擊行動
 public void Action(string msgCon, Colleague colleague)
 {
     Console.WriteLine("{0} 接收到 {1} 訊息:{2}。前往攻擊中", this.name, colleague.Name, msgCon);
 }
Example #3
0
 public abstract void Work(string msgType, string msgCon, Colleague colleague);
Example #4
0
 // 接收一般訊息
 public void Receive(string msgCon, Colleague coworker)
 {
     Console.WriteLine("{0} 接收到 {1} 訊息:{2}", this.name, coworker.Name, msgCon);
 }