blob: 5eabd3c05787cd1d7a992fe3d25b4460e7d1b20c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
import '../game_methods.dart';
import '../state/game_state.dart';
import 'command_l10n.dart';
class ShuffleAMDCardCommand extends Command {
final String name;
final GameState _gameState;
ShuffleAMDCardCommand(this.name, {required GameState gameState})
: _gameState = gameState;
@override
void execute() {
final deck = GameMethods.getModifierDeck(name, _gameState);
deck.shuffleUnDrawn(stateAccess);
}
@override
String describe() {
return commandL10n.cmdExtraAmdShuffle;
}
}
|