blob: 2ef9b57d73304d4a58a2dd49a4d236925c4c42aa (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
import '../state/game_state.dart';
import 'command_l10n.dart';
class RemoveSpecialLootCardCommand extends Command {
static const int _kCard1418 = 1418;
static const int _kCard1419 = 1419;
int nr;
final GameState _gameState;
RemoveSpecialLootCardCommand(this.nr, {required GameState gameState})
: _gameState = gameState;
@override
void execute() {
if (nr == _kCard1418) {
_gameState.lootDeck.removeSpecial1418(stateAccess);
}
if (nr == _kCard1419) {
_gameState.lootDeck.removeSpecial1419(stateAccess);
}
}
@override
String describe() {
return commandL10n.cmdRemoveSpecialLootCard(nr);
}
}
|