Package de.creepsmash.common.messages.client

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


      return this;
    } else if (message instanceof RefreshMessage) {
      this.lobby.refresh(this.getClient());
      return this;
    } else if (message instanceof ScoreRequestMessage) {
      ScoreRequestMessage requestMessage = (ScoreRequestMessage) message;
      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


          updateDataRequestMessage.getPassword(),
          updateDataRequestMessage.getEmail()));
      this.getClient().send(m);
      return this;
    } else if (message instanceof ScoreRequestMessage) {
      ScoreRequestMessage requestMessage = (ScoreRequestMessage) message;
      ScoreResponseMessage responseMessage =
        HighscoreService.getScoreMessage(requestMessage.getPlayerName());
      this.getClient().send(responseMessage);
      return this;
    } else if (message instanceof DeleteRequestMessage) {
      DeleteResponseMessage m = new DeleteResponseMessage();
      m.setResponseType(AuthenticationService.delete(
View Full Code Here

  @Override
  public void start() {
    this.getCore().getNetwork().addListener(this);
   
    for (Integer i : this.players.keySet()) {
      ScoreRequestMessage srm = new ScoreRequestMessage(this.players.get(i));
      this.getCore().getNetwork().sendMessage(srm);
    }
//    this.getCore().getNetwork().sendMessage(new HighscoreRequestMessage(0));
  }
View Full Code Here

TOP

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

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.