UNPKG

@runox-game/game-engine

Version:
18 lines (17 loc) 583 B
import { GameCommand } from './game.command'; import { IGameState } from '../models/game-state.model'; import { CommandValidation } from './command-result'; /** * Class that allows a player to yell Uno */ export declare class YellUnoCommand extends GameCommand { private readonly yellerId?; /** * Class that allows a player to yell Uno * * @param yellerId - identifier of the player who wants to yell Uno */ constructor(yellerId?: string); execute(state: IGameState): void; validate(state: IGameState): CommandValidation; }