Beispiel #1
0
 public void Restore()
 {
     if (memento != null)
     {
         X       = memento.X;
         Y       = memento.Y;
         memento = null;
     }
 }
Beispiel #2
0
 public void DecrementOrdinata()
 {
     memento = new PositionMemento(X, Y);
     Y      += MovementActor.GetDecrement() * MovementActor.Speed;
 }
Beispiel #3
0
 public void DecrementAbscissa()
 {
     memento = new PositionMemento(X, Y);
     X      += MovementActor.GetDecrement() * MovementActor.Speed;
 }