add my player class
This commit is contained in:
parent
55b2cf053d
commit
fa97abb825
@ -5,3 +5,5 @@ class MyPlayer extends Player
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
export {MyPlayer }
|
@ -1,11 +1,12 @@
|
||||
|
||||
class Player
|
||||
{
|
||||
constructor(id, pos, nb_goal)
|
||||
constructor(id, pos, nb_goal, game)
|
||||
{
|
||||
this.id = id;
|
||||
this.pos = pos;
|
||||
this.nb_goal = nb_goal;
|
||||
this.game = game;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user