private void sendState() { if (asHost) { networkProvider.sendMessage( new GameStateMessage(localPlayer, "gameState", modelFacade.getGameState())); } else { networkProvider.sendMessage( new GameStateMessage(localPlayer, "gameState", modelFacade.getGameState())); } }
public void onGameLeave(String player) { modelFacade.removePlayer(player); gameView.removePlayer(player); networkProvider.sendMessage(new StringMessage(localPlayer, "iQuit", localPlayer)); }