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