Package games.stendhal.server.events

Examples of games.stendhal.server.events.ProgressStatusEvent


   *
   * @param player Player to sent the event to
   */
  private void sendProgressTypes(Player player) {
    List<String> list = Arrays.asList("Open Quests", "Completed Quests", "Production");
    player.addEvent(new ProgressStatusEvent(list));
  }
View Full Code Here


   * @param player Player to sent the event to
   * @param progressType the type of progress the player is interested in
   */
  private void sendItemList(Player player, String progressType) {
    if (progressType.equals("Open Quests")) {
      player.addEvent(new ProgressStatusEvent(progressType,
        SingletonRepository.getStendhalQuestSystem().getOpenQuests(player)));
    } else if (progressType.equals("Completed Quests")) {
      player.addEvent(new ProgressStatusEvent(progressType,
        SingletonRepository.getStendhalQuestSystem().getCompletedQuests(player)));
    } else if (progressType.equals("Production")) {
      player.addEvent(new ProgressStatusEvent(progressType,
          SingletonRepository.getProducerRegister().getWorkingProducerNames(player)));
    }
  }
View Full Code Here

   * @param item name of item to get details about
   */
  private void sendDetails(Player player, String progressType, String item) {
    StendhalQuestSystem questSystem = SingletonRepository.getStendhalQuestSystem();
    if (progressType.equals("Open Quests") || progressType.equals("Completed Quests")) {
      player.addEvent(new ProgressStatusEvent(progressType, item,
        questSystem.getQuestDescription(player, item),
        questSystem.getQuestProgressDetails(player, item)));
    } else if (progressType.equals("Production")) {
      player.addEvent(new ProgressStatusEvent(progressType, item,
          SingletonRepository.getProducerRegister().getProductionDescription(player, item),
          SingletonRepository.getProducerRegister().getProductionDetails(player, item)));
    }
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.events.ProgressStatusEvent

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.