Commit 48c0e509 authored by Joseph NISON--GUYON's avatar Joseph NISON--GUYON
Browse files

Fixe l'erreur de compilation sur player

parent d41f41d3
import { IHandler } from '../codegen/common/PlayerService';
import { GameProxy } from '../thrift/game-proxy';
export class PlayerService implements IHandler<any> {
// Traque traque = new Traque()
......@@ -6,15 +7,15 @@ export class PlayerService implements IHandler<any> {
private gameProxy: GameProxy;
constructor() {
gameProxy = new GameProxy()
this.gameProxy = new GameProxy({hostName: 'localhost', port: 8045});
}
//methode de player
// methode de player
startGame(gameId: number): void {
console.log('Start game', gameId);
}
yourRole(role: string): void {}
//methodes des traqués
// methodes des traqués
recupLieuxFromDefausse(): void {
}
askCardSurvie(): void {}
......@@ -25,7 +26,7 @@ export class PlayerService implements IHandler<any> {
lacherPrise(gameId: number): void {}
resister(gameId: number, cartes: Array<number>): void {}
//methodes de la créature
// methodes de la créature
troisCartes(): void {}
placerArtemia(gameId: number, lieu: number): void {}
placerCreature(gameId: number, lieu: number ): void {}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment