AuctionCoffeeShop, DefaultCoffeeShoppublic interface CoffeeShop extends CMCommon
| Modifier and Type | Interface | Description | 
|---|---|---|
| static class  | CoffeeShop.ShelfProduct | Class for representing a shelf product, holding
 an item prototype, the number in stock, and the
 price. | 
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| Environmental | addStoreInventory(Environmental thisThang) | Adds a new item to the store inventory. | 
| Environmental | addStoreInventory(Environmental thisThang,
                 int number,
                 int price) | Adds a new item to the store inventory so the shopkeeper can sell it. | 
| CoffeeShop | build(ShopKeeper SK) | Initializes this shop object with its host ShopKeeper | 
| void | buildShopFromXML(java.lang.String text) | Repopulates this shop inventory from a given xml document, restoring store inventory,
 base inventory, prices, and availability. | 
| long | contentHash() | Returns a hash of all the items currently in the
 shop, for help in determining when things change. | 
| void | delAllStoreInventory(Environmental thisThang) | Removes all items like the given item from the base and store inventory. | 
| void | deleteShelfProduct(CoffeeShop.ShelfProduct P) | Remove the specific give shelf product from the official stores. | 
| void | destroyStoreInventory() | Destroys all the items in this shop. | 
| boolean | doIHaveThisInStock(java.lang.String name,
                  MOB mob) | Returns whether an item with the given name is presently in this stores
 stock inventory, and available for sale. | 
| void | emptyAllShelves() | Clears both the base and stock/store inventories. | 
| int | enumerableStockSize() | Returns the number of items in the stores base inventory. | 
| java.util.Iterator<Environmental> | getEnumerableInventory() | Returns a iterator of all the Environmental objects this shop has in its base
 inventory. | 
| Environmental | getStock(java.lang.String name,
        MOB mob) | Searches this shops stock of items for sale for one matching the given name. | 
| java.util.Iterator<Environmental> | getStoreInventory() | Returns a iterator of all the Environmental objects this shop has for sale. | 
| java.util.Iterator<Environmental> | getStoreInventory(java.lang.String srchStr) | Returns a iterator of all the Environmental objects this shop has for sale
 which match the given search string. | 
| java.util.Iterator<CoffeeShop.ShelfProduct> | getStoreShelves() | Returns a iterator of all the ShelfProduct objects this shop has for sale. | 
| boolean | inEnumerableInventory(Environmental thisThang) | Returns whether an item sufficiently like the given item originally
 existed in this shops inventory when it was created. | 
| boolean | isSold(int code) | Returns whether the whatIsSold code applies to the shopkeeper hosting this shop. | 
| boolean | lowerStock(java.lang.String name) | Searches this shops stock of items for sale for one matching the given name. | 
| java.lang.String | makeXML() | Generates an XML document of all available shop inventory, prices, and availability. | 
| int | numberInStock(Environmental likeThis) | Returns the number of items like the one given that the shopkeeper presently
 has in stock and available for sale. | 
| java.util.List<Environmental> | removeSellableProduct(java.lang.String named,
                     MOB mob) | Searches this shops stock of items for sale for one matching the given name. | 
| Environmental | removeStock(java.lang.String name,
           MOB mob) | Searches this shops stock of items for sale for one matching the given name. | 
| void | resubmitInventory(java.util.List<Environmental> shopItems) | A method for quickly making wholesale changes to a shopkeepers inventory. | 
| ShopKeeper | shopKeeper() | Returns the shopKeeper that is hosting this shop | 
| int | stockPrice(Environmental likeThis) | Returns the base stock price (not the final price by any means) that the shop
 will use as a foundation for determining the given items price. | 
| int | totalStockSize() | Returns the number of items this shop currently has for sale. | 
| int | totalStockSizeIncludingDuplicates() | The number of items in the store inventory, taking number in stock into account. | 
| int | totalStockWeight() | Total weight, in pounds, of all items in the store inventory, taking number in
 stock into account. | 
| CoffeeShop | weakCopyOf() | Returns a thin copy with independent lists, but the
 same items as the original host. | 
copyOf, ID, initializeClass, name, newInstanceboolean inEnumerableInventory(Environmental thisThang)
thisThang - the thing to compare against the base inventoryShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYEnvironmental addStoreInventory(Environmental thisThang)
thisThang - the thing to selladdStoreInventory(Environmental, int, int)int enumerableStockSize()
ShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYint totalStockSize()
totalStockSizeIncludingDuplicates()void destroyStoreInventory()
void deleteShelfProduct(CoffeeShop.ShelfProduct P)
P - the shelf product to remove permanentlyjava.util.Iterator<Environmental> getStoreInventory()
java.util.Iterator<CoffeeShop.ShelfProduct> getStoreShelves()
java.util.Iterator<Environmental> getStoreInventory(java.lang.String srchStr)
srchStr - the item to hunt for.java.util.Iterator<Environmental> getEnumerableInventory()
ShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYvoid emptyAllShelves()
Environmental addStoreInventory(Environmental thisThang, int number, int price)
thisThang - the item/mob/ability to sellnumber - the number of items to sellprice - the price of the item (in base currency) or -1 to have it determinedint totalStockWeight()
int totalStockSizeIncludingDuplicates()
totalStockSize()void delAllStoreInventory(Environmental thisThang)
thisThang - the item like which to removeShopKeeper.isSold(int)boolean doIHaveThisInStock(java.lang.String name,
                           MOB mob)
name - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)ShopKeeper.isSold(int)int stockPrice(Environmental likeThis)
likeThis - the item like which to comparegetStoreInventory()int numberInStock(Environmental likeThis)
likeThis - the item like which to comparegetStoreInventory()Environmental getStock(java.lang.String name, MOB mob)
name - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)getStoreInventory()Environmental removeStock(java.lang.String name, MOB mob)
name - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)getStoreInventory()boolean lowerStock(java.lang.String name)
name - the name of the item to lower the stock ofjava.util.List<Environmental> removeSellableProduct(java.lang.String named, MOB mob)
named - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)getStoreInventory()java.lang.String makeXML()
getStoreInventory(), 
buildShopFromXML(String)void buildShopFromXML(java.lang.String text)
text - the xml document to restore frommakeXML()void resubmitInventory(java.util.List<Environmental> shopItems)
shopItems - the items for inventoryCoffeeShop build(ShopKeeper SK)
SK - the shopkeeper that hosts this objectShopKeeper shopKeeper()
CoffeeShop weakCopyOf()
boolean isSold(int code)
code - the whatIsSold codeShopKeeper.DEAL_DESCSlong contentHash()