Abstraherer RoboRallyWrapper vekk fra klienten og serveren slik at de ikke bryr seg om et annet grensesnitt blir brukt

This commit is contained in:
2020-04-27 23:52:07 +02:00
parent 3530ed2b41
commit 7b495438b0
7 changed files with 79 additions and 38 deletions

View File

@@ -38,14 +38,13 @@ public class RoboRallyGame implements DrawableGame, InteractableGame {
*
* @param playerList A list of all the players participating in the game
* @param boardName The playerName of the board to use
* @param host Whether this player is the host
* @param playerName The name of the player of this instance of the game
* @param server The server if this player is host. Should be null otherwise
*/
public RoboRallyGame(List<Player> playerList, String boardName, boolean host, String playerName,
public RoboRallyGame(List<Player> playerList, String boardName, String playerName,
RoboRallyServer server) {
this.playerName = playerName;
this.host = host;
this.host = server != null;
this.playerList = playerList;
this.server = server;
initializeGame(boardName);