CoffeeShopspublic interface ShoppingLibrary extends CMLibrary
idConverter| Modifier and Type | Method | Description | 
|---|---|---|
| java.util.List<Environmental> | addRealEstateTitles(java.util.List<Environmental> productsV,
                   MOB buyer,
                   CoffeeShop shop,
                   Room myRoom) | Adjusts the given inventory of a shopkeepers shop by adding external inventory, which might include
 new real estate titles, or existing titles to real estate, ships, and the like. | 
| void | auctionNotify(MOB M,
             java.lang.String resp,
             java.lang.String regardingItem) | Sends a notification to the given stakeholder in an auction for the given
 item. | 
| java.lang.String[] | bid(MOB mob,
   double bid,
   java.lang.String bidCurrency,
   AuctionData auctionData,
   Item I,
   java.util.List<java.lang.String> auctionAnnounces) | Submits a new bid for an item by the given mob, of the given
 amount of the given currency to the given auction for the
 given item. | 
| void | cancelAuction(java.lang.String auctionHouse,
             AuctionData data) | Cancels the given auction. | 
| boolean | doISellThis(Environmental thisThang,
           ShopKeeper shop) | Returns whether the given shopkeeper shop sells the given thing
 normally. | 
| AuctionData | fetchAuctionByItemName(java.lang.String named,
                      java.lang.String auctionHouse) | Returns auction data for the auction for an item of the given name
 in the given auction house. | 
| java.lang.String | findInnRoom(InnKey key,
           java.lang.String addThis,
           Room R) | Given an inn key, and a starting room, this will return
 the directions to follow to reach the room. | 
| java.util.List<Environmental> | getAllShopkeepers(Room here,
                 MOB notMOB) | Returns all the shopkeeper hosts accessible by anyone in
 the given room. | 
| java.lang.String | getAuctionInventory(MOB seller,
                   MOB buyer,
                   Auctioneer auction,
                   java.lang.String itemName) | Returns the formal auction listing of all items for the given auctioneer's auction house. | 
| java.util.Enumeration<AuctionData> | getAuctions(java.lang.Object ofLike,
           java.lang.String auctionHouse) | Returns an enumeration of all active auctions in the given auction house,
 of the given name | 
| java.lang.String | getListForMask(java.lang.String targetMessage) | Checks a BUY message for an english embedded 'FOR' message, which
 can affect the assignment of purchased private property. | 
| java.lang.String | getListInventory(MOB seller,
                MOB buyer,
                java.util.List<? extends Environmental> inventory,
                int limit,
                ShopKeeper shop,
                java.lang.String mask) | Formats and returns a displayable inventory for a shopkeeper. | 
| double | getSalesTax(Room homeRoom,
           MOB seller) | Returns the applicable sales tax percentage for the given seller from the
 given room. | 
| ShopKeeper | getShopKeeper(Environmental E) | Given a potential shopkeeper host, this will return
 the shopkeeper shop itself. | 
| java.lang.String | getViewDescription(MOB viewerM,
                  Environmental E,
                  java.util.Set<ShopKeeper.ViewType> flags) | Returns the official view message for the given item and viewer
 mob. | 
| boolean | ignoreIfNecessary(MOB mob,
                 java.lang.String ignoreMask,
                 MOB whoIgnores) | Returns whether the given ignorer (usually a shopkeeper mob) is ignoring
 the given mob for most purposes. | 
| Pair<java.lang.Long,TimeClock.TimePeriod> | parseBudget(java.lang.String budget) | Parses the given budget string into a data structure
 showing the amount of base currency, and how often
 that amount is reset for the purpose of making
 purchases. | 
| MOB | parseBuyingFor(MOB buyer,
              java.lang.String message) | Given a BUY message string, will look for the FOR syntax
 and return the mob in the same room as the agent buyer
 with that name, or null. | 
| double[] | parseDevalueRate(java.lang.String factors) | Parses a rate of devaluation for each purchase, preceded
 optionally by a special rate just for raw resources. | 
| java.lang.String[] | parseItemPricingAdjustments(java.lang.String factors) | Parses the given list of factors into a set of factors. | 
| boolean | pawnEvaluation(MOB buyerShopM,
              MOB sellerCustM,
              Environmental product,
              ShopKeeper shop,
              double maxToPay,
              double maxEverPaid,
              boolean sellNotValue) | Evaluates a proposed sale of an item to a shopkeeper by a player/mob
 Returns whether the sale can go forth. | 
| ShopKeeper.ShopPrice | pawningPrice(MOB buyerShopM,
            MOB sellerCustM,
            Environmental product,
            ShopKeeper shopKeeper,
            CoffeeShop shop) | Gives the value of an item that might be sold to a shopkeeper by a player/mob. | 
| void | purchaseAbility(Ability A,
               MOB seller,
               ShopKeeper shop,
               MOB mobFor) | Completes the purchase of the given ability from the given seller to the given
 buyer mob. | 
| boolean | purchaseItems(Item baseProduct,
             java.util.List<Environmental> products,
             MOB seller,
             MOB mobFor) | Completes the purchase of the given item from the given seller to the given
 buyer mob. | 
| boolean | purchaseMOB(MOB product,
           MOB seller,
           ShopKeeper shop,
           MOB mobFor) | Completes the purchase of the given follower mob from the given seller to the given
 buyer mob. | 
| void | returnMoney(MOB to,
           java.lang.String currency,
           double amt) | A manipulator of the given players money. | 
| void | saveAuction(AuctionData data,
           java.lang.String auctionHouse,
           boolean updateOnly) | Update the given AuctionData (an auction) for the given auctionHouse. | 
| boolean | sellEvaluation(MOB sellerShopM,
              MOB buyerCustM,
              Environmental product,
              ShopKeeper shop,
              boolean buyNotView) | Evaluates a potential sale of an item from a shopkeeper to a player/npc. | 
| ShopKeeper.ShopPrice | sellingPrice(MOB sellerShopM,
            MOB buyerCustM,
            Environmental product,
            ShopKeeper shopKeeper,
            CoffeeShop shop,
            boolean includeSalesTax) | Gives the price of an item that might be sold to a player/mob by a shopkeeper. | 
| java.lang.String | storeKeeperString(CoffeeShop shop,
                 ShopKeeper keeper) | Returns a brief plain ordinary camel-cased description of what kind
 of shopkeeper this is: Miscellaneous Magic Items, General Items, etc. | 
| void | transactMoneyOnly(MOB sellerM,
                 MOB buyerM,
                 ShopKeeper shop,
                 Environmental product,
                 boolean sellerGetsPaid) | Part of a shopkeeper selling an item to a player/mob is the transaction of the price. | 
| double | transactPawn(MOB shopkeeperM,
            MOB pawnerM,
            ShopKeeper shop,
            Environmental product) | Does the transaction where a player/mob sells an item to a shopkeeper. | 
activate, getServiceClient, L, propertiesLoaded, shutdowncopyOf, ID, initializeClass, name, newInstanceShopKeeper getShopKeeper(Environmental E)
E - the potential shopkeeper hostjava.util.List<Environmental> getAllShopkeepers(Room here, MOB notMOB)
here - the room to find shopkeepernotMOB - an exception, or null for no exceptionsjava.lang.String getViewDescription(MOB viewerM, Environmental E, java.util.Set<ShopKeeper.ViewType> flags)
viewerM - the mob viewing the iremE - the item being viewedflags - the level of information returnedShopKeeper.ViewTypeMOB parseBuyingFor(MOB buyer, java.lang.String message)
buyer - the agent buyer in the roommessage - the buy message stringboolean ignoreIfNecessary(MOB mob, java.lang.String ignoreMask, MOB whoIgnores)
mob - the mob who might be ignoredignoreMask - the zappermask determining if the mob is ignoredwhoIgnores - the mob who might be ignoringjava.lang.String storeKeeperString(CoffeeShop shop, ShopKeeper keeper)
shop - coffee shop inventory to checkkeeper - the actual coffee shopboolean doISellThis(Environmental thisThang, ShopKeeper shop)
thisThang - the thing to see if its ordinary stockshop - the actual shop to check for a good matchShopKeeper.ShopPrice sellingPrice(MOB sellerShopM, MOB buyerCustM, Environmental product, ShopKeeper shopKeeper, CoffeeShop shop, boolean includeSalesTax)
sellerShopM - the shopkeeper mobbuyerCustM - the player buyer mobproduct - the proposed produce to sell to the shopshopKeeper - the shop itselfshop - the inventory object of the shopincludeSalesTax - true to include sales tax in the price, false otherwisetransactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean), 
sellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean), 
getSalesTax(Room, MOB)double getSalesTax(Room homeRoom, MOB seller)
homeRoom - the room the shopkeeper is originally fromseller - the seller him or herselftransactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean), 
sellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean), 
sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)boolean sellEvaluation(MOB sellerShopM, MOB buyerCustM, Environmental product, ShopKeeper shop, boolean buyNotView)
sellerShopM - the mob doing the sellingbuyerCustM - the player or mob doing the buyingproduct - the product to potentiall sell to the buyershop - the actual shopbuyNotView - true if a buy is requested, false for a viewtransactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean), 
getSalesTax(Room, MOB), 
sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)void transactMoneyOnly(MOB sellerM, MOB buyerM, ShopKeeper shop, Environmental product, boolean sellerGetsPaid)
sellerM - the seller mob who wants moneybuyerM - the buyer mob who is losing moneyshop - the shop itselfproduct - the product being sold, whose value constitutes the pricesellerGetsPaid - true to add the money to the shopkeeperssellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean), 
getSalesTax(Room, MOB), 
sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)java.util.List<Environmental> addRealEstateTitles(java.util.List<Environmental> productsV, MOB buyer, CoffeeShop shop, Room myRoom)
productsV - the existing inventorybuyer - the buyer who wants to see the inventoryshop - the shop inventory objectmyRoom - the room where the shopkeeper isShopKeeper.ShopPrice pawningPrice(MOB buyerShopM, MOB sellerCustM, Environmental product, ShopKeeper shopKeeper, CoffeeShop shop)
buyerShopM - the shopkeeper mobsellerCustM - the player seller mobproduct - the proposed produce to sell to the shopshopKeeper - the shop itselfshop - the inventory object of the shoptransactPawn(MOB, MOB, ShopKeeper, Environmental), 
pawnEvaluation(MOB, MOB, Environmental, ShopKeeper, double, double, boolean)boolean pawnEvaluation(MOB buyerShopM, MOB sellerCustM, Environmental product, ShopKeeper shop, double maxToPay, double maxEverPaid, boolean sellNotValue)
buyerShopM - the shopkeeper mobsellerCustM - the player seller mobproduct - the proposed produce to sell to the shopshop - the shop itselfmaxToPay - money the shopkeeper has remainingmaxEverPaid - the overall budget of the shopkeepersellNotValue - true if a sale is proposed, and false for a valuationtransactPawn(MOB, MOB, ShopKeeper, Environmental), 
pawningPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop)double transactPawn(MOB shopkeeperM, MOB pawnerM, ShopKeeper shop, Environmental product)
shopkeeperM - the shopkeeper mob being sold topawnerM - the player/mob selling an itemshop - the shopkeeper objectproduct - the product sold to the shopkeeperpawnEvaluation(MOB, MOB, Environmental, ShopKeeper, double, double, boolean), 
pawningPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop)java.lang.String getListForMask(java.lang.String targetMessage)
targetMessage - the target message stringgetListInventory(MOB, MOB, List, int, ShopKeeper, String), 
getListForMask(String)java.lang.String getListInventory(MOB seller, MOB buyer, java.util.List<? extends Environmental> inventory, int limit, ShopKeeper shop, java.lang.String mask)
seller - the seller mob who speaksbuyer - the buyer mob who is ... buyinginventory - the inventory of the seller to showlimit - 0, or maximum number of rows to displayshop - the ShopKeeper objectmask - null, or a name substring mask for items to showgetListInventory(MOB, MOB, List, int, ShopKeeper, String), 
getListForMask(String)java.lang.String findInnRoom(InnKey key, java.lang.String addThis, Room R)
key - the key to find the room foraddThis - a word to prefix the directions withR - the room starting fromdouble[] parseDevalueRate(java.lang.String factors)
factors - the rate of devaluation(s)parseItemPricingAdjustments(String), 
parseBudget(String)java.lang.String[] parseItemPricingAdjustments(java.lang.String factors)
factors - the raw factors stringparseDevalueRate(String), 
parseBudget(String)Pair<java.lang.Long,TimeClock.TimePeriod> parseBudget(java.lang.String budget)
budget - the encoded budget string (amount time period)parseDevalueRate(String), 
parseItemPricingAdjustments(String)boolean purchaseItems(Item baseProduct, java.util.List<Environmental> products, MOB seller, MOB mobFor)
baseProduct - the item being purchasedproducts - all items in the item productseller - the sellermobFor - the buyerpurchaseAbility(Ability, MOB, ShopKeeper, MOB), 
purchaseMOB(MOB, MOB, ShopKeeper, MOB)boolean purchaseMOB(MOB product, MOB seller, ShopKeeper shop, MOB mobFor)
product - the follower mob being purchasedseller - the sellershop - the seller's shopmobFor - the buyerpurchaseAbility(Ability, MOB, ShopKeeper, MOB), 
purchaseItems(Item, List, MOB, MOB)void purchaseAbility(Ability A, MOB seller, ShopKeeper shop, MOB mobFor)
A - the ability being purchasedseller - the sellershop - the seller's shopmobFor - the buyerpurchaseMOB(MOB, MOB, ShopKeeper, MOB), 
purchaseItems(Item, List, MOB, MOB)void returnMoney(MOB to, java.lang.String currency, double amt)
to - the mob who is getting or losing moneycurrency - the currency to add/removeamt - the amount to add/removejava.lang.String[] bid(MOB mob, double bid, java.lang.String bidCurrency, AuctionData auctionData, Item I, java.util.List<java.lang.String> auctionAnnounces)
mob - the bidder mobbid - the bidding amount in base valuebidCurrency - the bidding currencyauctionData - the auction data for the auction bid onI - the item bid on (why not use from auction data?)auctionAnnounces - list to put channel messages intoAuctionData, 
auctionNotify(MOB, String, String), 
saveAuction(AuctionData, String, boolean), 
cancelAuction(String, AuctionData), 
fetchAuctionByItemName(String, String), 
getAuctions(Object, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String)java.lang.String getAuctionInventory(MOB seller, MOB buyer, Auctioneer auction, java.lang.String itemName)
seller - the seller mob, which is not necessarily the auction housebuyer - the buyer doing the listingauction - the auction house object itselfitemName - the null or the name of the item interested inAuctionData, 
auctionNotify(MOB, String, String), 
saveAuction(AuctionData, String, boolean), 
cancelAuction(String, AuctionData), 
fetchAuctionByItemName(String, String), 
getAuctions(Object, String), 
bid(MOB, double, String, AuctionData, Item, List)java.util.Enumeration<AuctionData> getAuctions(java.lang.Object ofLike, java.lang.String auctionHouse)
ofLike - null, or a name to matchauctionHouse - the auction house to return auctions fromAuctionData, 
auctionNotify(MOB, String, String), 
saveAuction(AuctionData, String, boolean), 
cancelAuction(String, AuctionData), 
fetchAuctionByItemName(String, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String), 
bid(MOB, double, String, AuctionData, Item, List)AuctionData fetchAuctionByItemName(java.lang.String named, java.lang.String auctionHouse)
named - the item name, or partial matchauctionHouse - the auction house to search inAuctionData, 
auctionNotify(MOB, String, String), 
saveAuction(AuctionData, String, boolean), 
cancelAuction(String, AuctionData), 
getAuctions(Object, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String), 
bid(MOB, double, String, AuctionData, Item, List)void auctionNotify(MOB M, java.lang.String resp, java.lang.String regardingItem)
M - the recipient of the messageresp - the messageregardingItem - the item up for auctionAuctionData, 
saveAuction(AuctionData, String, boolean), 
cancelAuction(String, AuctionData), 
fetchAuctionByItemName(String, String), 
getAuctions(Object, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String), 
bid(MOB, double, String, AuctionData, Item, List), 
auctionNotify(MOB, String, String)void cancelAuction(java.lang.String auctionHouse,
                   AuctionData data)
auctionHouse - the auction house the data belongs todata - the AuctionData to deleteAuctionData, 
saveAuction(AuctionData, String, boolean), 
fetchAuctionByItemName(String, String), 
getAuctions(Object, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String), 
bid(MOB, double, String, AuctionData, Item, List), 
auctionNotify(MOB, String, String)void saveAuction(AuctionData data, java.lang.String auctionHouse, boolean updateOnly)
data - the AuctionData to updateauctionHouse - the auction house the data belongs toupdateOnly - true for update, false when creatingAuctionData, 
auctionNotify(MOB, String, String), 
cancelAuction(String, AuctionData), 
fetchAuctionByItemName(String, String), 
getAuctions(Object, String), 
getAuctionInventory(MOB, MOB, Auctioneer, String), 
bid(MOB, double, String, AuctionData, Item, List)