Package de.creepsmash.common.messages.client

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


    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

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

   * {@inheritDoc}
   */
  @Override
  public void start() {
    this.getCore().getNetwork().addListener(this);
    this.getCore().getNetwork().sendMessage(new HighscoreRequestMessage(position));
  }
View Full Code Here

TOP

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

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.