()
| 1358 | } |
| 1359 | |
| 1360 | public void kickFromGame() |
| 1361 | { |
| 1362 | if(this.gameState == Constants.PRE_GAME) |
| 1363 | { |
| 1364 | ((PreGameScreen)graphwar.getUI().getScreen(Constants.PRE_GAME_SCREEN)).showMessage("You have been disconnected."); |
| 1365 | } |
| 1366 | else if(this.gameState == Constants.GAME) |
| 1367 | { |
| 1368 | ((GameScreen)graphwar.getUI().getScreen(Constants.GAME_SCREEN)).showMessage("You have been disconnected."); |
| 1369 | ((GameScreen)graphwar.getUI().getScreen(Constants.GAME_SCREEN)).stopPanel(); |
| 1370 | } |
| 1371 | |
| 1372 | this.gameState = Constants.NONE; |
| 1373 | //this.players = new ArrayList<Player>(); |
| 1374 | this.serverConnection = null; |
| 1375 | this.drawingFunction = false; |
| 1376 | this.exploding = false; |
| 1377 | this.nextTurnSent = false; |
| 1378 | this.leader = false; |
| 1379 | } |
| 1380 | |
| 1381 | public void stopGame() |
| 1382 | { |
no test coverage detected