public void BeAttacked(AllyControlCenter acc) { Console.WriteLine("{0}:我正被攻击,速来援救!", this.Name); // 调用战队控制中心类的通知方法来通知盟友 acc.NotifyObserver(this.Name); }
public void updateInfo(AllyControlCenter abstructTarget) { //这里更新winform的grid view }