Fix: GameController
This commit is contained in:
@@ -8,6 +8,11 @@ public class GameController {
|
|||||||
public GameController(Game model) {
|
public GameController(Game model) {
|
||||||
this.model = model;
|
this.model = model;
|
||||||
}
|
}
|
||||||
|
public GameController() {
|
||||||
|
}
|
||||||
|
public void setModel(Game model) {
|
||||||
|
this.model = model;
|
||||||
|
}
|
||||||
public boolean addPlayer(String username) {
|
public boolean addPlayer(String username) {
|
||||||
return model.addPlayer(new Player(username));
|
return model.addPlayer(new Player(username));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user