Ejemplo n.º 1
0
    private void Move(Direction direction)
    {
        MyRemoveCommand removeCommand = new MyRemoveCommand(removeCommandReceiver, direction, moveObject, distance);

        removeCommand.Execute();
        rCommands.Add(removeCommand);
        currentNum++;
    }
Ejemplo n.º 2
0
 public void Redo()
 {
     if (currentNum < rCommands.Count)
     {
         MyRemoveCommand removeCommand = (MyRemoveCommand)rCommands[currentNum];
         currentNum++;
         removeCommand.Execute();
     }
 }