UNPKG

@runox-game/game-engine

Version:
20 lines (19 loc) 697 B
import { GameCommand } from './game.command'; import { IGameState } from '../models/game-state.model'; import { CommandValidation } from './command-result'; import { IPlayer } from '../models/player.model'; /** * Class that allows switch hands between two players */ export declare class SwitchHandsCommand extends GameCommand { private readonly player1; private readonly player2; /** * Class that allows switch hands between two players * @param players1 player one * @param players1 player two */ constructor(player1: IPlayer, player2: IPlayer); execute(state: IGameState): void; validate(state: IGameState): CommandValidation; }