summaryrefslogtreecommitdiff
path: root/server/lib/core/commands/set_loot_owner_command.dart
blob: f82531f856bbfc18c7629911128410a1cb36e906 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
import '../state/game_state.dart';
import 'command_l10n.dart';

class SetLootOwnerCommand extends Command {
  final String ownerId;
  final LootCard card;

  SetLootOwnerCommand(this.ownerId, this.card);

  @override
  void execute() {
    card.owner = ownerId;
  }

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