Examples of HighscoreEntry


Examples of de.creepsmash.common.messages.server.HighscoreEntry

    HighscoreResponseMessage highscoreResponseMessage = new HighscoreResponseMessage();
    Set<HighscoreEntry> highscoreEntries = new HashSet<HighscoreEntry>();

    Set<Player> players = AuthenticationService.getPlayers(offset);
    for (Player player : players) {
      HighscoreEntry highscoreEntry = new HighscoreEntry();
      highscoreEntry.setPlayerName(player.getName());
      highscoreEntry.setPoints(player.getElopoints() - 500);
      highscoreEntry.setOldPoints(player.getOldElopoints() - 500);
      highscoreEntries.add(highscoreEntry);
    }
    highscoreResponseMessage.setHighscoreEntries(highscoreEntries);
    return highscoreResponseMessage;
  }
View Full Code Here

Examples of eas.users.demos.polytris.highscore.HighscoreEntry

    public Highscore getScorez() {
        return this.scorez;
    }
   
    public void addHighscore(long score, String name, int level) {
        if (this.scorez.addEntry(new HighscoreEntry(score, name, level))) {
            this.scorez.store();
        }
    }
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.