Package de.creepsmash.common.messages.client

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


  /**
   * Sends the Message to create a GameMessage.
   */
  private void sendCreateGameMessage() {

    CreateGameMessage gM = new CreateGameMessage();
    gM.setGameName(tName.getText() + " (" + this.getCore().getPlayerName()
        + ")");
    gM.setMapId(this.selectMap);
    gM.setMaxPlayers(tPlayer.getSelectedIndex() + 2);
    gM.setMaxEloPoints(Integer
        .valueOf(tMaxEloPoints.getSelectedIndex() * 100));
    gM.setMinEloPoints(Integer
        .valueOf(tMinEloPoints.getSelectedIndex() * 100));
    gM.setPasswort(tPasswort.getText());

    this.getCore().getNetwork().sendMessage(gM);
  }
 
View Full Code Here

TOP

Related Classes of de.creepsmash.common.messages.client.CreateGameMessage

Copyright © 2018 www.massapicom. 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.