blob: 2628d0378bfbca5ea27e47ff654cd7d33095371c (
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
|
import '../game_methods.dart';
import '../state/game_state.dart';
import 'command_l10n.dart';
class AddCSPartyCardCommand extends Command {
final String characterId;
final int type;
final GameState _gameState;
AddCSPartyCardCommand(
this.characterId,
this.type, {
required GameState gameState,
}) : _gameState = gameState;
@override
void execute() {
final ModifierDeck deck = GameMethods.getModifierDeck(characterId, _gameState);
deck.addCSPartyCard(stateAccess, type);
}
@override
String describe() {
return commandL10n.cmdAddPartyCard(characterId, type.toString());
}
}
|