UNPKG

@runox-game/game-engine

Version:
22 lines (21 loc) 703 B
import { GameCommand } from './game.command'; import { IPlayer } from '../models/player.model'; import { IGameState } from '../models/game-state.model'; import { CommandValidation } from './command-result'; /** * Players to remove a player from the game */ export declare class RemovePlayerCommand extends GameCommand { /** * Player to remove from the game */ private readonly player; /** * Class that allows removing a player to remove from the game state * * @param players - player to remove from the game */ constructor(player: IPlayer); execute(state: IGameState): void; validate(state: IGameState): CommandValidation; }