Ejemplo n.º 1
0
 private void ExecuteCommand(BaseCommand command)
 {
     command.Execute(Model);
     if (command.NextCommand != null)
     {
         ExecuteCommand(command.NextCommand);
     }
     else
     {
         SetAvailableActions();
     }
 }
Ejemplo n.º 2
0
 private Button ToButton(BaseCommand command, Texture2D texture)
 {
     return new Button
     {
         Command = command,
         Texture = texture
     };
 }
Ejemplo n.º 3
0
 public Shuffle(BaseCommand command)
 {
     NextCommand = command;
 }