Examples of HighscoreRequestMessage


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

      ScoreResponseMessage responseMessage = 
        HighscoreService.getScoreMessage(requestMessage.getPlayerName());
      this.getClient().send(responseMessage);
      return this;
    } else if (message instanceof HighscoreRequestMessage) {
      HighscoreRequestMessage requestMessage = (HighscoreRequestMessage) message;
      this.getClient().send(new HighscoreService().
          getHighscoreMessage(requestMessage.getStart()));
      return this;
    } else if (message instanceof CreateGameMessage) {
      Game game = this.lobby.createGame(this.getClient(),
          ((CreateGameMessage) message).getGameName(),
          ((CreateGameMessage) message).getMapId(),
View Full Code Here

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

    this.add(this.minus);
   
    ActionListener a1 = new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        HighscorePanel.this.getCore().getNetwork().sendMessage(
            new HighscoreRequestMessage(position));
      }
    };
    this.refresh.addActionListener(a1);
   
    ActionListener a2 = new ActionListener() {
View Full Code Here

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

      minus.setEnabled(false);
    } else {
      minus.setEnabled(true);
    }
    HighscorePanel.this.getCore().getNetwork().sendMessage(
        new HighscoreRequestMessage(position));
  }
View Full Code Here

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

   * {@inheritDoc}
   */
  @Override
  public void start() {
    this.getCore().getNetwork().addListener(this);
    this.getCore().getNetwork().sendMessage(new HighscoreRequestMessage(position));
  }
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.