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

Les paramètres de creature/game-proxy/traque.ts n'utilisent plus...

Les paramètres de creature/game-proxy/traque.ts n'utilisent plus CarteSurvie/CarteTraque/Lieu afin de pouvoir utiliser les méthodes dans player-service.ts
parent 8c684d83
......@@ -9,21 +9,27 @@ service PlayerService {
void yourRole(string role)
void recupLieuxFromDefausse()
list<i32> getLieuxDefausse()
void askCarteTraque(i32 phase)
void perdrePionsVolonte()
void askCarteSurvie(i32 phase)
void recupLieuxFromDefausse(list<i32> cartes)
void askCartesLieu()
void lacherPrise(i32 gameId)
list<i32> getLieuxDefausse()
void resister(i32 gameId, list<i32> cartes)
void perdrePionsVolonte(i32 nbPerdus)
void piocherSurvie(i32 gameId, i32 id)
void lacherPrise(i32 gameId)
void piocherReserve(i32 gameId, i32 id, i32 lieu)
void resister(i32 gameId, list<i32> cartes)
void askCarteSurvie(i32 gameId, i32 id, string carte)
void setCarteSurvie(i32 gameId, i32 id, string carte)
void askLieu(i32 gameId, i32 playerId, i32 lieu)
void setLieu(i32 gameId, i32 playerId, i32 lieu)
void troisCartes(i32 gameId)
......@@ -33,10 +39,10 @@ service PlayerService {
void placerCible(i32 gameId, list<i32> lieux)
void piocherTraque(i32 gameId)
void askCarteTraque(i32 gameId, string carte)
void piocherSurvie(i32 gameId)
void setCarteTraque(i32 gameId, string carte)
void piocherReserve(i32 gameId, i32 lieu)
void piocherTraque(i32 gameId)
}
import { GameProxy, CarteTraque } from '../thrift/game-proxy';
import { GameProxy } from '../thrift/game-proxy';
import { Lieu } from '../lieu/lieu';
export interface CarteTraque {
phase?: number;
name?: string;
token?: string;
}
export class Creature {
private main: Array<CarteTraque>;
private traque: Array<CarteTraque>;
private gameProxy: GameProxy;
constructor(gameId: number, gameProxy: GameProxy) {
constructor(gameProxy: GameProxy) {
this.main = [];
this.troisCartes(gameId);
this.gameProxy = gameProxy;
this.traque = [{phase: 2, name: 'Acharnement', token: ''}, {phase: 1, name: 'Angoisse', token: 'Artémia'}, {phase: 2, name: 'Anticipation', token: ''}, {phase: 3, name: 'Cataclysme', token: ''}, {phase: 1, name: 'Champ de force', token: 'Cible'}, {phase: 2, name: 'Clone', token: 'Cible'}, {phase: 3, name: 'Déploiement', token: ''}, {phase: 1, name: 'Désespoir', token: 'Artémia'}, {phase: 3, name: 'Détour', token: ''}, {phase: 2, name: 'Domination', token: ''}, {phase: 1, name: 'Effroi', token: ''}, {phase: 2, name: 'Emprise', token: ''}, {phase: 2, name: 'Épidémie', token: ''}, {phase: 2, name: 'Faille temporelle', token: 'Cible'}, {phase: 0, name: 'Flashback', token: ''}, {phase: 2, name: 'Gargantua', token: ''}, {phase: 2, name: 'Harcèlement', token: ''}, {phase: 2, name: 'Hurlements', token: 'Cible'}, {phase: 2, name: 'Inertie', token: 'Cible'}, {phase: 2, name: 'Interférences', token: ''}, {phase: 1, name: 'Intuition', token: ''}, {phase: 2, name: 'Magnétisme', token: 'Cible'}, {phase: 2, name: 'Mirage', token: 'Cible'}, {phase: 2, name: 'Mutation', token: 'Artémia'}, {phase: 2, name: 'Psychose', token: 'Artémia'}, {phase: 2, name: 'Réminiscence', token: 'Artémia'}, {phase: 4, name: 'Repérage', token: ''}, {phase: 2, name: 'Sables mouvants', token: 'Cible'}, {phase: 2, name: 'Soif de sang', token: 'Cible'}, {phase: 4, name: 'Stase', token: ''}, {phase: 2, name: 'Télépathie', token: 'Artémia'}, {phase: 2, name: 'Tornade', token: 'Artémia'}, {phase: 2, name: 'Toxine', token: 'Cible'}, {phase: 2, name: 'Ubiquité', token: 'Artémia + Cible'}, {phase: 2, name: 'Virus', token: 'Artémia'}, {phase: 2, name: 'Zone interdite', token: 'Artémia'}];
}
public async troisCartes(gameId: number): Promise<void> {
while (this.main.length < 3) {
const carte = await this.gameProxy.piocherTraque(gameId);
this.main.push(carte);
this.piocherTraque(gameId);
}
}
public placerArtemia(gameId: number, lieu: Array<number>): void | Promise<void> {
this.gameProxy.placerArtemia(gameId, lieu);
public placerArtemia(gameId: number, lieux: Array<number>): void | Promise<void> {
this.gameProxy.placerArtemia(gameId, lieux);
}
public placerCreature(gameId: number, lieu: Array<number>): void | Promise<void> {
this.gameProxy.placerCreature(gameId, lieu);
public placerCreature(gameId: number, lieux: Array<number>): void | Promise<void> {
this.gameProxy.placerCreature(gameId, lieux);
}
public placerCible(gameId: number, lieux: Array<number>): void | Promise<void> {
this.gameProxy.placerCible(gameId, lieux);
}
public askCarteTraque(gameId: number, carte: CarteTraque): void | Promise<void> {
public askCarteTraque(gameId: number, carte: string): void | Promise<void> {
this.gameProxy.setCarteTraque(gameId, carte);
this.gameProxy.defausserCarteTraque(gameId, carte);
let param = 0;
while (param < this.main.length) {
if (carte.name === this.main[param].name) {
if (carte === this.main[param].name) {
this.main.splice(param, 1);
}
param++;
}
}
public setCarteTraque(gameId: number, carte: CarteTraque): void | Promise<void> {
public setCarteTraque(gameId: number, carte: string): void | Promise<void> {
this.gameProxy.setCarteTraque(gameId, carte);
this.gameProxy.defausserCarteTraque(gameId, carte);
let param = 0;
while (param < this.main.length) {
if (carte.name === this.main[param].name) {
if (carte === this.main[param].name) {
this.main.splice(param, 1);
}
param++;
......@@ -53,7 +59,13 @@ export class Creature {
}
public async piocherTraque(gameId: number): Promise<void> {
const carte = await this.gameProxy.piocherTraque(gameId);
this.main.push(carte);
const name = await this.gameProxy.piocherTraque(gameId);
let param = 0;
while (param < this.traque.length) {
if (name === this.traque[param].name) {
this.main.push(this.traque[param]);
}
param++;
}
}
}
import { IHandler } from '../codegen/common/PlayerService';
import { GameProxy } from '../thrift/game-proxy';
import { Traque } from '../player/traque';
import { Creature } from '../player/creature';
export class PlayerService implements IHandler<any> {
// Traque traque = new Traque()
// Creature crea = new Creature()
private traque: Traque;
private creature: Creature;
private role: string;
private gameProxy: GameProxy;
constructor() {
this.gameProxy = new GameProxy({hostName: 'localhost', port: 8045});
this.role = '';
this.creature = new Creature(this.gameProxy);
this.traque = new Traque(this.gameProxy);
}
// methode de player
startGame(gameId: number): void {
console.log('Start game', gameId);
this.creature.troisCartes(gameId);
}
yourRole(role: string): void {
this.role = role;
}
// méthodes des traqués
getLieuxDefausse(): Array<number> {
return this.traque.getLieuxDefausse();
}
perdrePionsVolonte(): void {
this.traque.perdrePionsVolonte();
}
recupLieuxFromDefausse(cartes: Array<number>): void {
this.traque.recupLieuxFromDefausse(cartes);
}
lacherPrise(gameId: number): void {
this.traque.lacherPrise(gameId);
}
resister(gameId: number, cartes: Array<number>): void {
this.traque.resister(gameId, cartes);
}
piocherSurvie(gameId: number, id: number): void {
this.traque.piocherSurvie(gameId, id);
}
piocherReserve(gameId: number, id: number, lieu: number): void {
this.traque.piocherReserve(gameId, id, lieu);
}
askCarteSurvie(gameId: number, id: number, carte: string): void {
this.traque.askCarteSurvie(gameId, id, carte);
}
setCarteSurvie(gameId: number, id: number, carte: string): void {
this.traque.setCarteSurvie(gameId, id, carte);
}
askLieu(gameId: number, id: number, lieu: number): void {
this.traque.askLieu(gameId, id, lieu);
}
setLieu(gameId: number, id: number, lieu: number): void {
this.traque.setLieu(gameId, id, lieu);
}
// méthodes de la créature
troisCartes(gameId: number): void {
this.creature.troisCartes(gameId);
}
placerArtemia(gameId: number, lieux: Array<number>): void {
this.creature.placerArtemia(gameId, lieux);
}
placerCreature(gameId: number, lieux: Array<number>): void {
this.creature.placerCreature(gameId, lieux);
}
placerCible(gameId: number, lieux: Array<number>): void {
this.creature.placerCible(gameId, lieux);
}
askCarteTraque(gameId: number, carte: string): void {
this.creature.askCarteTraque(gameId, carte);
}
setCarteTraque(gameId: number, carte: string): void {
this.creature.setCarteTraque(gameId, carte);
}
piocherTraque(gameId: number): void {
this.creature.piocherTraque(gameId);
}
yourRole(role: string): void {}
// methodes des traqués
recupLieuxFromDefausse(): void {}
askCarteSurvie(phase: number): void {}
askCartesLieu(): void {}
getLieuxDefausse(): Array<number> {return []; }
perdrePionsVolonte(nbPerdus: number ): void {}
lacherPrise(gameId: number): void {}
resister(gameId: number, cartes: Array<number>): void {}
piocherSurvie(gameId: number): void {}
piocherReserve(gameId: number, id: number, lieu: number): void {}
// methodes de la créature
troisCartes(gameId: number): void {}
placerArtemia(gameId: number, lieux: Array<number> ): void {}
placerCreature(gameId: number, lieux: Array<number> ): void {}
placerCible(gameId: number, lieux: Array<number> ): void {}
askCarteTraque(phase: number): void {}
piocherTraque(gameId: number): void {}
}
import { GameProxy, CarteSurvie } from '../thrift/game-proxy';
import { GameProxy } from '../thrift/game-proxy';
import { Lieu } from '../lieu/lieu';
export interface CarteSurvie {
phase?: number;
name?: string;
}
export class Traque {
private main: Array<Lieu>;
private survie: Array<CarteSurvie>;
private mainSurvie: Array<CarteSurvie>;
private reserve: Array<Lieu>;
private defausse: Array<Lieu>;
......@@ -13,31 +19,54 @@ export class Traque {
this.main.concat({id: 5, name: 'Le Rover'});
this.reserve = [{id: 6, name: 'Marais'}, {id: 7, name: 'L\'Abris'}, {id: 8, name: 'L\'Epave'}, {id: 9, name: 'La Source'}];
this.reserve.concat({id: 10, name: 'Artefact'});
this.survie = [{phase: 1, name: 'Adrénaline'}, {phase: 3, name: 'Alerte'}, {phase: 4, name: 'Amplificateur'}];
this.survie.concat([{phase: 1, name: 'Brouillage'}, {phase: 1, name: 'Cavale'}, {phase: 3, name: 'Détecteur'}]);
this.survie.concat([{phase: 3, name: 'Drone'}, {phase: 1, name: 'Entrave'}, {phase: 4, name: 'Équipement'}]);
this.survie.concat([{phase: 3, name: 'Esquive'}, {phase: 3, name: 'Fausse piste'}, {phase: 3, name: 'Hologramme'}]);
this.survie.concat([{phase: 3, name: 'Leurre'}, {phase: 1, name: 'Mimétisme'}, {phase: 4, name: 'Navette'}]);
this.survie.concat([{phase: 4, name: 'Planques'}, {phase: 3, name: 'Portail'}, {phase: 4, name: 'Ralliement'}]);
this.survie.concat([{phase: 1, name: 'Refuge'}, {phase: 3, name: 'Régénération'}, {phase: 3, name: 'Résistance'}]);
this.survie.concat([{phase: 3, name: 'Retraite'}, {phase: 1, name: 'Riposte'}, {phase: 1, name: 'Sacrifice'}]);
this.survie.concat([{phase: 1, name: 'Second souffle'}, {phase: 1, name: 'Sixième sens'}, {phase: 1, name: 'Système D'}]);
this.survie.concat([{phase: 1, name: 'Ténacité'}, {phase: 1, name: 'Vaccin'}, {phase: 4, name: 'Volte-face'}]);
this.survie.concat([{phase: 2, name: 'Vortex'}]);
this.defausse = [];
this.gameProxy = gameProxy;
this.volonte = 3;
this.mainSurvie = [];
}
public getLieuxDefausse(): Array<Lieu> {
return this.defausse;
public getLieuxDefausse(): Array<number> {
const tab: Array<number> = [];
let i = 0;
while (i < this.defausse.length) {
const num: number = this.defausse[i].id || 0;
tab.push(num);
i++;
}
return tab;
}
perdrePionsVolonte(): void | Promise<void> {
this.volonte--;
}
public recupLieuxFromDefausse(cartes: Array<Lieu>): void | Promise<void> {
public recupLieuxFromDefausse(cartes: Array<number>): void | Promise<void> {
let i = 0;
let it = 0;
const tab: Array<Lieu> = [];
while (this.defausse.includes(cartes[i])) {
tab.push(cartes[i]);
i++;
while (it < this.defausse.length) {
const id: number = this.defausse[i].id || 0;
if (cartes.includes(id)) {
tab.push(this.defausse[it]);
i++;
}
it++;
}
if (i === cartes.length) {
i = 0;
while (i < this.defausse.length) {
if (cartes.includes(this.defausse[i])) {
if (tab.includes(this.defausse[i])) {
this.defausse.splice(i, 1);
i--;
}
......@@ -52,12 +81,12 @@ export class Traque {
}
public lacherPrise(gameId: number): void | Promise<void> {
this.recupLieuxFromDefausse(this.defausse);
this.recupLieuxFromDefausse(this.getLieuxDefausse());
this.gameProxy.avancerAssimilation(gameId);
this.volonte = 3;
}
public resister(gameId: number, cartes: Array<Lieu>): void | Promise<void> {
public resister(gameId: number, cartes: Array<number>): void | Promise<void> {
if (cartes.length === 4 || cartes.length === 2) {
this.recupLieuxFromDefausse(cartes);
if (cartes.length === 4) {
......@@ -72,14 +101,22 @@ export class Traque {
public async piocherSurvie(gameId: number, id: number): Promise<void> {
const carte = await this.gameProxy.piocherSurvie(gameId, id);
this.mainSurvie.push(carte);
let param = 0;
const size = this.mainSurvie.length;
while (param < this.survie.length && size === this.mainSurvie.length) {
if (carte === this.survie[param].name) {
this.mainSurvie.push(this.survie[param]);
}
param++;
}
}
public async piocherReserve(gameId: number, id: number, lieu: Lieu): Promise<void> {
public async piocherReserve(gameId: number, id: number, lieu: number): Promise<void> {
if (await this.gameProxy.piocherReserve(gameId, id, lieu)) {
let param = 0;
while (param < this.reserve.length) {
if (lieu.id === this.reserve[param]) {
const size = this.main.length;
while (param < this.reserve.length && size === this.main.length) {
if (lieu === this.reserve[param]) {
this.main.push(this.reserve[param]);
this.reserve.splice(param, 1);
}
......@@ -88,35 +125,35 @@ export class Traque {
}
}
public askCarteSurvie(gameId: number, playerId: number, carte: CarteSurvie): void | Promise<void> {
public askCarteSurvie(gameId: number, playerId: number, carte: string): void | Promise<void> {
this.gameProxy.setCarteSurvie(gameId, playerId, carte);
this.gameProxy.defausserCarteSurvie(gameId, carte);
let param = 0;
while (param < this.mainSurvie.length) {
if (carte.name === this.main[param].name) {
if (carte === this.main[param].name) {
this.mainSurvie.splice(param, 1);
}
param++;
}
}
public setCarteSurvie(gameId: number, playerId: number, carte: CarteSurvie): void | Promise<void> {
public setCarteSurvie(gameId: number, playerId: number, carte: string): void | Promise<void> {
this.gameProxy.setCarteSurvie(gameId, playerId, carte);
this.gameProxy.defausserCarteSurvie(gameId, carte);
let param = 0;
while (param < this.mainSurvie.length) {
if (carte.name === this.main[param].name) {
if (carte === this.main[param].name) {
this.mainSurvie.splice(param, 1);
}
param++;
}
}
public askLieu(gameId: number, playerId: number, lieu: Lieu): void | Promise<void> {
public askLieu(gameId: number, playerId: number, lieu: number): void | Promise<void> {
let param = 0;
const size = this.main.length;
while (param < this.main.length) {
if (lieu.id === this.main[param]) {
if (lieu === this.main[param].id) {
this.defausse.push(this.main[param]);
this.main.splice(param, 1);
}
......@@ -127,11 +164,11 @@ export class Traque {
}
}
public setLieu(gameId: number, playerId: number, lieu: Lieu): void | Promise<void> {
public setLieu(gameId: number, playerId: number, lieu: number): void | Promise<void> {
let param = 0;
const size = this.main.length;
while (param < this.main.length) {
if (lieu.id === this.main[param]) {
if (lieu === this.main[param].id) {
this.defausse.push(this.main[param]);
this.main.splice(param, 1);
}
......
......@@ -5,35 +5,15 @@ import { createHttpClient, ICreateHttpClientOptions } from '@creditkarma/thrift-
import { IJoinRequest, JoinRequest } from '../codegen/common/JoinRequest';
import { Lieu } from '../lieu/lieu';
export interface CarteTraque {
phase?: number;
name?: string;
token?: string;
}
export interface CarteSurvie {
phase?: number;
name?: string;
}
export class GameProxy implements GameInterface {
private survie: Array<CarteSurvie>;
private traque: Array<CarteTraque>;
private thriftClient: Client<CoreOptions>;
constructor(options: ICreateHttpClientOptions) {
this.thriftClient = createHttpClient(Client, options);
this.survie = [{phase: 1, name: 'Adrénaline'}, {phase: 3, name: 'Alerte'}, {phase: 4, name: 'Amplificateur'}];
this.survie.concat([{phase: 1, name: 'Brouillage'}, {phase: 1, name: 'Cavale'}, {phase: 3, name: 'Détecteur'}]);
this.survie.concat([{phase: 3, name: 'Drone'}, {phase: 1, name: 'Entrave'}, {phase: 4, name: 'Équipement'}]);
this.survie.concat([{phase: 3, name: 'Esquive'}, {phase: 3, name: 'Fausse piste'}, {phase: 3, name: 'Hologramme'}]);
this.survie.concat([{phase: 3, name: 'Leurre'}, {phase: 1, name: 'Mimétisme'}, {phase: 4, name: 'Navette'}]);
this.survie.concat([{phase: 4, name: 'Planques'}, {phase: 3, name: 'Portail'}, {phase: 4, name: 'Ralliement'}]);
this.survie.concat([{phase: 1, name: 'Refuge'}, {phase: 3, name: 'Régénération'}, {phase: 3, name: 'Résistance'}]);
this.survie.concat([{phase: 3, name: 'Retraite'}, {phase: 1, name: 'Riposte'}, {phase: 1, name: 'Sacrifice'}]);
this.survie.concat([{phase: 1, name: 'Second souffle'}, {phase: 1, name: 'Sixième sens'}, {phase: 1, name: 'Système D'}]);
this.survie.concat([{phase: 1, name: 'Ténacité'}, {phase: 1, name: 'Vaccin'}, {phase: 4, name: 'Volte-face'}]);
this.survie.concat([{phase: 2, name: 'Vortex'}]);
this.traque = [{phase: 2, name: 'Acharnement', token: ''}, {phase: 1, name: 'Angoisse', token: 'Artémia'}, {phase: 2, name: 'Anticipation', token: ''}, {phase: 3, name: 'Cataclysme', token: ''}, {phase: 1, name: 'Champ de force', token: 'Cible'}, {phase: 2, name: 'Clone', token: 'Cible'}, {phase: 3, name: 'Déploiement', token: ''}, {phase: 1, name: 'Désespoir', token: 'Artémia'}, {phase: 3, name: 'Détour', token: ''}, {phase: 2, name: 'Domination', token: ''}, {phase: 1, name: 'Effroi', token: ''}, {phase: 2, name: 'Emprise', token: ''}, {phase: 2, name: 'Épidémie', token: ''}, {phase: 2, name: 'Faille temporelle', token: 'Cible'}, {phase: 0, name: 'Flashback', token: ''}, {phase: 2, name: 'Gargantua', token: ''}, {phase: 2, name: 'Harcèlement', token: ''}, {phase: 2, name: 'Hurlements', token: 'Cible'}, {phase: 2, name: 'Inertie', token: 'Cible'}, {phase: 2, name: 'Interférences', token: ''}, {phase: 1, name: 'Intuition', token: ''}, {phase: 2, name: 'Magnétisme', token: 'Cible'}, {phase: 2, name: 'Mirage', token: 'Cible'}, {phase: 2, name: 'Mutation', token: 'Artémia'}, {phase: 2, name: 'Psychose', token: 'Artémia'}, {phase: 2, name: 'Réminiscence', token: 'Artémia'}, {phase: 4, name: 'Repérage', token: ''}, {phase: 2, name: 'Sables mouvants', token: 'Cible'}, {phase: 2, name: 'Soif de sang', token: 'Cible'}, {phase: 4, name: 'Stase', token: ''}, {phase: 2, name: 'Télépathie', token: 'Artémia'}, {phase: 2, name: 'Tornade', token: 'Artémia'}, {phase: 2, name: 'Toxine', token: 'Cible'}, {phase: 2, name: 'Ubiquité', token: 'Artémia + Cible'}, {phase: 2, name: 'Virus', token: 'Artémia'}, {phase: 2, name: 'Zone interdite', token: 'Artémia'}];
}
createGame(numberOfPlayers: number): Promise<number> {
......@@ -46,24 +26,22 @@ export class GameProxy implements GameInterface {
return this.thriftClient.join(gameId, request);
}
public async piocherSurvie(gameId: number, id: number): Promise<CarteSurvie> {
const card = await (this.thriftClient.piocherSurvie(gameId, id));
this.survie.forEach(function (value) {
if (card === value.name) {
return value;
}
});
return {phase: 0, name: 'Undefined'};
public async piocherSurvie(gameId: number, id: number): Promise<string> {
const card = await (this.thriftClient.piocherTraque(gameId));
if (card === undefined) {
return new Promise<string>((resolve, reject) => {});
} else {
return card;
}
}
public async piocherTraque(gameId: number): Promise<CarteTraque> {
public async piocherTraque(gameId: number): Promise<string> {
const card = await (this.thriftClient.piocherTraque(gameId));
this.traque.forEach(function (value) {
if (card === value.name) {
return value;
}
});
return {phase: 0, name: 'Undefined', token: ''};
if (card === undefined) {
return new Promise<string>((resolve, reject) => {});
} else {
return card;
}
}
public avancerAssimilation(gameId: number): void | Promise<void> {
......@@ -82,25 +60,16 @@ export class GameProxy implements GameInterface {
this.thriftClient.placerArtemia(gameId, lieux);
}
public setLieu(gameId: number, playerId: number, lieu: Lieu): void | Promise<void> {
if (lieu.id == null) {
} else {
this.thriftClient.setLieu(gameId, playerId, lieu.id);
}
public setLieu(gameId: number, playerId: number, lieu: number): void | Promise<void> {
this.thriftClient.setLieu(gameId, playerId, lieu);
}
public setCarteSurvie(gameId: number, playerId: number, carte: CarteSurvie): void | Promise<void> {
if (carte.name == null) {
} else {
this.thriftClient.setCarteSurvie(gameId, playerId, carte.name);
}
public setCarteSurvie(gameId: number, playerId: number, carte: string): void | Promise<void> {
this.thriftClient.setCarteSurvie(gameId, playerId, carte);
}
public setCarteTraque(gameId: number, carte: CarteTraque): void | Promise<void> {
if (carte.name == null) {
} else {
this.thriftClient.setCarteTraque(gameId, carte.name);
}
public setCarteTraque(gameId: number, carte: string): void | Promise<void> {
this.thriftClient.setCarteTraque(gameId, carte);
}
public wantRole(gameId: number, id: number, role: string): void | Promise<void> {
......@@ -111,45 +80,27 @@ export class GameProxy implements GameInterface {
this.thriftClient.rendDefausse(gameId, id, lieux);
}
public askLieu(gameId: number, playerId: number, lieu: Lieu): void | Promise<void> {
if (lieu.id == null) {
} else {
this.thriftClient.setLieu(gameId, playerId, lieu.id);
}
public askLieu(gameId: number, playerId: number, lieu: number): void | Promise<void> {
this.thriftClient.setLieu(gameId, playerId, lieu);
}
public askCarteSurvie(gameId: number, playerId: number, carte: CarteSurvie): void | Promise<void> {
if (carte.name == null) {
} else {