public void Undo(RobotMemento rm) { energy = rm.Energy; load = rm.Load; cost = rm.Cost; batterycoef = rm.batterycoef; loadcoef = rm.loadcoef; consumcoef = rm.consumcoef; }
public void Push(RobotMemento rm) { history.Push(rm); }
public void Undo(RobotMemento rm) { energy = rm.Energy; load = rm.Load; cost = rm.Cost; batterycoef = rm.batterycoef; loadcoef = rm.loadcoef; consumcoef = rm.consumcoef; }
public void Push(RobotMemento rm) { history.Push(rm); }