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