summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/amd_add_minus_one_command.dart
blob: 8958dba0bb20031954706e78efa3e1029b38d8e4 (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 AmdAddMinusOneCommand extends Command {
  String name;
  final GameState _gameState;

  AmdAddMinusOneCommand(this.name, {required GameState gameState})
    : _gameState = gameState;

  @override
  void execute() {
    final deck = GameMethods.getModifierDeck(name, _gameState);
    deck.addMinusOne(stateAccess);
  }

  @override
  String describe() {
    return commandL10n.cmdAddMinusOne;
  }
}