Package games.stendhal.server.entity.npc
Class ShopList
java.lang.Object
games.stendhal.server.entity.npc.ShopList
Singleton class that contains inventory and prices of NPC stores.
-
Method Details
-
get
Returns the Singleton instance.- Returns:
- The instance
-
get
gets the items offered by a shop with their prices- Parameters:
name
- name of shop- Returns:
- items and prices
-
getShops
gets a set of all shops- Returns:
- set of shops
-
toString
converts a shop into a human readable form- Parameters:
name
- name of shopheader
- prefix- Returns:
- human readable description
-
add
Add an item to a shop- Parameters:
name
- the shop nameitem
- the item to addprice
- the price for the item
-