Examples of ExitGameMessage


Examples of de.creepsmash.common.messages.client.ExitGameMessage

      SendMessageMessage chatMsg = new SendMessageMessage();
      chatMsg.setClientId(getPlayerId());
      chatMsg.setMessage("has left the game");
      getNetwork().sendMessage(chatMsg);
     
      getNetwork().sendMessage(new ExitGameMessage());
      System.exit(1);
      return false;
    }

    return true;
View Full Code Here

Examples of de.creepsmash.common.messages.client.ExitGameMessage

   * method for ActionEvent on quitButton to go back to the lobby.
   * @param evt for ActionEvent
   */
  public void quitButtonActionPerformed() {
   
    ExitGameMessage egm = new ExitGameMessage();
    egm.setClientId(getCore().getPlayerId());
   
    getCore().getNetwork().sendMessage(egm);
    getCore().popScreen();
  }
View Full Code Here

Examples of de.creepsmash.common.messages.client.ExitGameMessage

        chatMsg.setClientId(context.getPlayerId());
        chatMsg.setMessage("has left the game");
        getCore().getNetwork().sendMessage(chatMsg);

        getCore().popScreen();
        getCore().getNetwork().sendMessage(new ExitGameMessage());
        if (!loop.isRunning()) {
          getCore().pushScreen(new GameResultPanel(loop.getPlayers()));
        }
        if (loop.isRunning()) {
          loop.setRunning(false);
View Full Code Here

Examples of de.creepsmash.common.messages.client.ExitGameMessage

      chatMsg.setMessage("has left the game");
      getCore().getNetwork().sendMessage(chatMsg);

      loop.setGameOver(false);
      this.getCore().popScreen();
      this.getCore().getNetwork().sendMessage(new ExitGameMessage());
      this.getCore().pushScreen(new GameResultPanel(loop.getPlayers()));
    }

  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.