public void AddMemento(ChessmanMemento memento) { mementos.Add(memento); }
//恢复状态 public void Restore(ChessmanMemento memento) { this.Lable = memento.Lable; this.X = memento.X; this.Y = memento.Y; }
public void AddMemento(ChessmanMemento memento) { mementos.Add(memento); }
//恢复状态 public void Restore(ChessmanMemento memento) { this.Lable = memento.Lable; this.X = memento.X; this.Y = memento.Y; }