CMCommon, CoffeeShop, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>public class AuctionCoffeeShop extends java.lang.Object implements CoffeeShop
CoffeeShop.ShelfProduct| Modifier and Type | Field | Description | 
|---|---|---|
| java.lang.String | auctionShop | |
| static java.util.Vector<Environmental> | emptyV | |
| static java.util.Vector<CoffeeShop.ShelfProduct> | emptyV2 | |
| protected java.lang.ref.WeakReference<ShopKeeper> | shopKeeper | 
idConverter| Constructor | Description | 
|---|---|
| AuctionCoffeeShop() | 
| 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. | 
| int | compareTo(CMObject o) | |
| long | contentHash() | Returns a hash of all the items currently in the
 shop, for help in determining when things change. | 
| CMObject | copyOf() | Similar to Cloneable.clone(), but does its best to make sure that
 any internal objects to this class are also copyOfed. | 
| 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. | 
| java.lang.String | ID() | The CoffeeMud Java Class ID shared by all instances of
 this object. | 
| boolean | inEnumerableInventory(Environmental thisThang) | Returns whether an item sufficiently like the given item originally
 existed in this shops inventory when it was created. | 
| void | initializeClass() | Called ONCE after all objects are loaded, but before the map is read in
 during initialization. | 
| 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. | 
| java.lang.String | name() | The displayable name of this object. | 
| CMObject | newInstance() | Returns a new instance of this class. | 
| 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> V) | 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. | 
public static final java.util.Vector<Environmental> emptyV
public static final java.util.Vector<CoffeeShop.ShelfProduct> emptyV2
public java.lang.String auctionShop
protected java.lang.ref.WeakReference<ShopKeeper> shopKeeper
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject copyOf()
CMObjectpublic CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic CoffeeShop build(ShopKeeper SK)
CoffeeShopbuild in interface CoffeeShopSK - the shopkeeper that hosts this objectpublic ShopKeeper shopKeeper()
CoffeeShopshopKeeper in interface CoffeeShoppublic boolean isSold(int code)
CoffeeShopisSold in interface CoffeeShopcode - the whatIsSold codeShopKeeper.DEAL_DESCSpublic boolean inEnumerableInventory(Environmental thisThang)
CoffeeShopinEnumerableInventory in interface CoffeeShopthisThang - the thing to compare against the base inventoryShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYpublic Environmental addStoreInventory(Environmental thisThang)
CoffeeShopaddStoreInventory in interface CoffeeShopthisThang - the thing to sellCoffeeShop.addStoreInventory(Environmental, int, int)public int enumerableStockSize()
CoffeeShopenumerableStockSize in interface CoffeeShopShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYpublic int totalStockSize()
CoffeeShoptotalStockSize in interface CoffeeShopCoffeeShop.totalStockSizeIncludingDuplicates()public java.util.Iterator<Environmental> getStoreInventory()
CoffeeShopgetStoreInventory in interface CoffeeShoppublic java.util.Iterator<CoffeeShop.ShelfProduct> getStoreShelves()
CoffeeShopgetStoreShelves in interface CoffeeShoppublic boolean lowerStock(java.lang.String name)
CoffeeShoplowerStock in interface CoffeeShopname - the name of the item to lower the stock ofpublic CoffeeShop weakCopyOf()
CoffeeShopweakCopyOf in interface CoffeeShoppublic java.util.Iterator<Environmental> getStoreInventory(java.lang.String srchStr)
CoffeeShopgetStoreInventory in interface CoffeeShopsrchStr - the item to hunt for.public java.util.Iterator<Environmental> getEnumerableInventory()
CoffeeShopgetEnumerableInventory in interface CoffeeShopShopKeeper.isSold(int), 
ShopKeeper.DEAL_INVENTORYONLYpublic Environmental addStoreInventory(Environmental thisThang, int number, int price)
CoffeeShopaddStoreInventory in interface CoffeeShopthisThang - 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 determinedpublic int totalStockWeight()
CoffeeShoptotalStockWeight in interface CoffeeShoppublic int totalStockSizeIncludingDuplicates()
CoffeeShoptotalStockSizeIncludingDuplicates in interface CoffeeShopCoffeeShop.totalStockSize()public void delAllStoreInventory(Environmental thisThang)
CoffeeShopdelAllStoreInventory in interface CoffeeShopthisThang - the item like which to removeShopKeeper.isSold(int)public boolean doIHaveThisInStock(java.lang.String name,
                                  MOB mob)
CoffeeShopdoIHaveThisInStock in interface CoffeeShopname - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)ShopKeeper.isSold(int)public int stockPrice(Environmental likeThis)
CoffeeShopstockPrice in interface CoffeeShoplikeThis - the item like which to compareCoffeeShop.getStoreInventory()public int numberInStock(Environmental likeThis)
CoffeeShopnumberInStock in interface CoffeeShoplikeThis - the item like which to compareCoffeeShop.getStoreInventory()public void resubmitInventory(java.util.List<Environmental> V)
CoffeeShopresubmitInventory in interface CoffeeShopV - the items for inventorypublic Environmental getStock(java.lang.String name, MOB mob)
CoffeeShopgetStock in interface CoffeeShopname - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)CoffeeShop.getStoreInventory()public void destroyStoreInventory()
CoffeeShopdestroyStoreInventory in interface CoffeeShoppublic Environmental removeStock(java.lang.String name, MOB mob)
CoffeeShopremoveStock in interface CoffeeShopname - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)CoffeeShop.getStoreInventory()public void emptyAllShelves()
CoffeeShopemptyAllShelves in interface CoffeeShoppublic java.util.List<Environmental> removeSellableProduct(java.lang.String named, MOB mob)
CoffeeShopremoveSellableProduct in interface CoffeeShopnamed - the name of the item to search formob - the mob who is interested (stock can differ depending on customer)CoffeeShop.getStoreInventory()public java.lang.String makeXML()
CoffeeShopmakeXML in interface CoffeeShopCoffeeShop.getStoreInventory(), 
CoffeeShop.buildShopFromXML(String)public void buildShopFromXML(java.lang.String text)
CoffeeShopbuildShopFromXML in interface CoffeeShoptext - the xml document to restore fromCoffeeShop.makeXML()public long contentHash()
CoffeeShopcontentHash in interface CoffeeShoppublic void deleteShelfProduct(CoffeeShop.ShelfProduct P)
CoffeeShopdeleteShelfProduct in interface CoffeeShopP - the shelf product to remove permanently