import { TDescription, TPlayerTeam, TPhase, TAction, TAskAction, Response } from 'src/codegen/common'; // import { IHandler } from '../codegen/common/GameService'; import { IHandler } from '../codegen/common/PlayerService'; import { PlayerService } from '../player/player-service'; export class ClientServiceHandler implements IHandler { private service: PlayerService; constructor() { this.service = new PlayerService(); } /* public createGame(numberOfPlayers: number, context?: Context): number | Promise { throw new Error('Method not implemented.'); } public join(gameId: number, request: IJoinRequest, context?: Context): number | Promise { throw new Error('Method not implemented.'); } public startGame(gameId: number): void | Promise { return this.service.startGame(gameId); } */ public ping(): boolean | Promise { // return this.service.ping(); throw new Error('Method not implemented.'); } public sendGameDescription(gameDescription: TDescription): void | Promise { throw new Error('Method not implemented.'); } public sendGameStart(): void | Promise { throw new Error('Method not implemented.'); } public sendGameIsFinished(winner: TPlayerTeam): void | Promise { throw new Error('Method not implemented.'); } public sendFirstRoundStart(): void | Promise { throw new Error('Method not implemented.'); } public sendStartPhase(phase: TPhase, gameDescription: TDescription): void | Promise { throw new Error('Method not implemented.'); } public askAction(askedAction: TAskAction): TAction | Promise { throw new Error('Method not implemented.'); } public sendAction(askedAction: TAskAction): void | Promise { throw new Error('Method not implemented.'); } public sendResponse(response: Response): void | Promise { throw new Error('Method not implemented.'); } /* public ping(): boolean | Promise { return service.ping(); } public sendGameDescription(gameDescription: TDescription): void | Promise { throw new Error('Method not implemented.'); } public void sendGameStart() : void | Promise { throw new Error('Method not implemented.'); } public void sendGameIsFinished(winner : TPlayerTeam) : void | Promise { throw new Error('Method not implemented.'); } public void sendFirstRoundStart() : void | Promise { throw new Error('Method not implemented.'); } public void sendStartPhase(phase : TPhase, gameDescription : TDescription) : void | Promise { throw new Error('Method not implemented.'); } public askAction(askedAction : TAskAction) : TAction | Promise { return null; } public sendAction(askedAction : TAskAction) : void | Promise { throw new Error('Method not implemented.'); } public sendResponse(response : Response) : void | Promise { throw new Error('Method not implemented.'); } */ }