diff --git a/bob_party/src/core/User/SkinBuyer.ts b/bob_party/src/core/User/SkinBuyer.ts deleted file mode 100644 index 692c9b2..0000000 --- a/bob_party/src/core/User/SkinBuyer.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { User } from "./user"; -import { Skin } from "../Skin"; -import { ManagerCoinsUser } from "./managerCoinsUser"; -//import ManagerCoinsUser - - -export class SkinBuyer{ - buy(u:User, s:Skin){ - const manage=new ManagerCoinsUser(); - u.getTabSkin().push(s); - manage.removeCoins(u, s.getSkinCost()); - - } -} \ No newline at end of file diff --git a/bob_party/src/core/User/userCreater.ts b/bob_party/src/core/User/userCreater.ts new file mode 100644 index 0000000..faf8392 --- /dev/null +++ b/bob_party/src/core/User/userCreater.ts @@ -0,0 +1,10 @@ +import { User } from "./user"; + +export class UserCreater{ + create(username:string, password:string, passConf:string, nationality:string, sexe:string){ + if (username=="" || username.includes(" ") || nationality=="" || password!=passConf || password=="" || + sexe==""){ + return null; + } + } +} \ No newline at end of file diff --git a/bob_party/src/core/tests/gameMulti.test.ts b/bob_party/src/core/tests/gameMulti.test.ts index 61e0e3c..1c74a48 100644 --- a/bob_party/src/core/tests/gameMulti.test.ts +++ b/bob_party/src/core/tests/gameMulti.test.ts @@ -1,4 +1,7 @@ -import { GameMulti } from '../gameMulti'; +import { Game } from '../game'; +import { GameSolo } from '../GameSolo'; +import { GameMulti } from '../GameMulti'; +import { GameCasino } from '../GameCasino'; // Instances diff --git a/bob_party/src/core/tests/gameSolo.test.ts b/bob_party/src/core/tests/gameSolo.test.ts index 10e9c87..27e59b7 100644 --- a/bob_party/src/core/tests/gameSolo.test.ts +++ b/bob_party/src/core/tests/gameSolo.test.ts @@ -1,6 +1,5 @@ import { GameSolo } from '../GameSolo'; - // Instances let myMap = new Map([ [50, 3],