Package games.stendhal.server.events

Examples of games.stendhal.server.events.ShowItemListEvent


  /**
   * Handles use-actions.
   */
  public boolean onUsed(RPEntity user) {
    List<Item> itemList = generateItemList();
    ShowItemListEvent event = new ShowItemListEvent(title, caption, itemList);
    user.addEvent(event);
    return true;
  }
View Full Code Here


      for (Map.Entry<String, Integer> entry : items.entrySet()) {
        itemList.add(prepareItem(entry.getKey(), Integer.valueOf(entry.getValue())));
      }
    }

    ShowItemListEvent event = new ShowItemListEvent("Aramyk Shop",
        "Please talk to Aramyk to #buy or #sell items.",
        itemList);
    admin.addEvent(event);
  }
View Full Code Here

TOP

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

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.