Package games.stendhal.server.entity.item

Examples of games.stendhal.server.entity.item.ItemInformation


   * @param price  price of item (negative is for cases in which the player has to pay money)
   * @return Item
   */
  private Item prepareItem(String name, int price) {
    Item prototype = SingletonRepository.getEntityManager().getItem(name);
    Item item = new ItemInformation(prototype);
    if (seller) {
      item.put("price", -price);
    } else {
      item.put("price", price);
    }
    item.put("description_info", item.describe());
    // compatibility with 0.85 clients
    item.put("description", item.describe());
    return item;
  }
View Full Code Here

TOP

Related Classes of games.stendhal.server.entity.item.ItemInformation

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.