blob: 3f34aedd4b82cc62ac30ab64e26230786704c000 (
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 AddSpecialLootCardCommand extends Command {
static const int _kCard1418 = 1418;
static const int _kCard1419 = 1419;
int nr;
final GameState _gameState;
AddSpecialLootCardCommand(this.nr, {required GameState gameState})
: _gameState = gameState;
@override
void execute() {
if (nr == _kCard1418) {
_gameState.lootDeck.addSpecial1418(stateAccess);
}
if (nr == _kCard1419) {
_gameState.lootDeck.addSpecial1419(stateAccess);
}
}
@override
String describe() {
return commandL10n.cmdAddSpecialLootCard(nr);
}
}
|