/** @param player The value determines the player to be added to the game */ private void addPlayer(Player player) { playerHashMap.put(player.getPlayerId(), player); player.setPosition(go); ClientOperator clientOperator = new ClientOperator(serverOperator); serverOperator.addDestination(player, clientOperator); actions.put(player.getPlayerId(), new HashMap<String, ActionThread>()); }
/** * The method will initialise all Clients with the PlayerData and then start the turnThread which * will set the next player as active and will then wait for him to finish his turn */ private void startMonopoly() { serverOperator.initializePlayer(); turnThread.start(); }