diff --git a/bob_party/src/core/gameCasino.ts b/bob_party/src/core/gameCasino.ts index b58caa4..1786def 100644 --- a/bob_party/src/core/gameCasino.ts +++ b/bob_party/src/core/gameCasino.ts @@ -2,20 +2,8 @@ import { ImageSourcePropType } from 'react-native'; import { Game } from './game' export class GameCasino extends Game{ - readonly Coef:number; - constructor(name:string, imageSource:ImageSourcePropType, gameSource:string, nbPlayer:number, coef:number){ - super(name, imageSource, gameSource, nbPlayer); - this.Coef=coef; - } - - //Get the coefficient of the casino game - getCoef(){ - return this.Coef; - } - - //Returns the coins gained with the initial bet of the user times the coefficient of the game - betToCoins(bet:number){ - return this.Coef*bet; + constructor(name:string, imageSource:ImageSourcePropType, gameSource:string, nbPlayerMin:number, nbPlayerMax:number){ + super(name, imageSource, gameSource, nbPlayerMin, nbPlayerMax); } } \ No newline at end of file