MCPcopy Create free account
hub / github.com/catabriga/graphwar / kickFromGame

Method kickFromGame

src/Graphwar/GameData.java:1360–1379  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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 {

Callers 3

handleMessageMethod · 0.95
disconnectKickMethod · 0.95
runMethod · 0.80

Calls 4

getScreenMethod · 0.80
getUIMethod · 0.80
stopPanelMethod · 0.65
showMessageMethod · 0.45

Tested by

no test coverage detected