com.planet_ink.coffee_mud.Libraries
Class CoffeeShops

java.lang.Object
  extended by com.planet_ink.coffee_mud.Libraries.StdLibrary
      extended by com.planet_ink.coffee_mud.Libraries.CoffeeShops
All Implemented Interfaces:
CMObject, CMLibrary, ShoppingLibrary, java.lang.Cloneable, java.lang.Comparable<CMObject>

public class CoffeeShops
extends StdLibrary
implements ShoppingLibrary


Constructor Summary
CoffeeShops()
           
 
Method Summary
 java.util.Vector addRealEstateTitles(java.util.Vector V, MOB buyer, int whatISell, Room myRoom)
           
 void auctionNotify(MOB M, java.lang.String resp, java.lang.String regardingItem)
           
 java.lang.String[] bid(MOB mob, double bid, java.lang.String bidCurrency, Auctioneer.AuctionData auctionData, Item I, java.util.Vector auctionAnnounces)
           
 void cancelAuction(Auctioneer.AuctionData data)
           
 double devalue(ShopKeeper shop, Environmental product)
           
 boolean doISellThis(Environmental thisThang, ShopKeeper shop)
           
 java.lang.String findInnRoom(InnKey key, java.lang.String addThis, Room R)
           
 java.util.Vector getAllShopkeepers(Room here, MOB notMOB)
           
 java.lang.String getAuctionInventory(MOB seller, MOB buyer, Auctioneer auction, java.lang.String mask)
           
 java.util.Vector getAuctions(java.lang.Object ofLike, java.lang.String auctionHouse)
           
 Auctioneer.AuctionData getEnumeratedAuction(java.lang.String named, java.lang.String auctionHouse)
           
 java.lang.String getListForMask(java.lang.String targetMessage)
           
 java.lang.String getListInventory(MOB seller, MOB buyer, java.util.Vector rawInventory, int limit, ShopKeeper shop, java.lang.String mask)
           
 double getSalesTax(Room homeRoom, MOB seller)
           
 ShopKeeper getShopKeeper(Environmental E)
           
 java.lang.String getViewDescription(Environmental E)
           
 java.lang.String ID()
          The CoffeeMud Java Class ID shared by all instances of this object.
 boolean ignoreIfNecessary(MOB mob, java.lang.String ignoreMask, MOB whoIgnores)
           
 double itemPriceFactor(Environmental E, Room R, java.lang.String[] priceFactors, boolean pawnTo)
           
 MOB parseBuyingFor(MOB buyer, java.lang.String message)
           
 ShopKeeper.ShopPrice pawningPrice(MOB seller, MOB buyer, Environmental product, ShopKeeper shop)
           
 double prejudiceFactor(MOB customer, java.lang.String factors, boolean pawnTo)
           
 double prejudiceValueFromPart(MOB customer, boolean pawnTo, java.lang.String part)
           
 void purchaseAbility(Ability A, MOB seller, ShopKeeper shop, MOB mobFor)
           
 boolean purchaseItems(Item baseProduct, java.util.Vector products, MOB seller, MOB mobFor)
           
 boolean purchaseMOB(MOB product, MOB seller, ShopKeeper shop, MOB mobFor)
           
 double rawSpecificGoldPrice(Environmental product, int whatISell, double numberOfThem)
           
 void returnMoney(MOB to, java.lang.String currency, double amt)
           
 void saveAuction(Auctioneer.AuctionData data, java.lang.String auctionHouse, boolean updateOnly)
           
 ShopKeeper.ShopPrice sellingPrice(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, boolean includeSalesTax)
           
 boolean shownInInventory(Environmental product, MOB buyer)
           
 boolean standardBuyEvaluation(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, boolean buyNotView)
           
 boolean standardSellEvaluation(MOB seller, MOB buyer, Environmental product, ShopKeeper shop, double maxToPay, double maxEverPaid, boolean sellNotValue)
           
 java.lang.String storeKeeperString(int whatISell)
           
 void transactMoneyOnly(MOB seller, MOB buyer, ShopKeeper shop, Environmental product, boolean sellerGetsPaid)
           
 double transactPawn(MOB shopkeeper, MOB pawner, ShopKeeper shop, Environmental product)
           
 
Methods inherited from class com.planet_ink.coffee_mud.Libraries.StdLibrary
activate, compareTo, copyOf, getSupportThread, initializeClass, newInstance, shutdown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.planet_ink.coffee_mud.Libraries.interfaces.CMLibrary
activate, getSupportThread, shutdown
 
Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject
copyOf, initializeClass, newInstance
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CoffeeShops

public CoffeeShops()
Method Detail

ID

public java.lang.String ID()
Description copied from interface: CMObject
The CoffeeMud Java Class ID shared by all instances of this object. Unlike the Java Class name, this method does not include package information. However, it must return a String value unique to its class category in the ClassLoader. Class categories include Libraries, Common, Areas, Abilities, Behaviors, CharClasses, Commands, Exits Locales, MOBS, Races, WebMacros, Basic Items, Armor, Weapons, ClanItems, MiscTech. The name is typically identical to the class name.

Specified by:
ID in interface CMObject
Overrides:
ID in class StdLibrary
Returns:
the name of this class

getShopKeeper

public ShopKeeper getShopKeeper(Environmental E)
Specified by:
getShopKeeper in interface ShoppingLibrary

getAllShopkeepers

public java.util.Vector getAllShopkeepers(Room here,
                                          MOB notMOB)
Specified by:
getAllShopkeepers in interface ShoppingLibrary

getViewDescription

public java.lang.String getViewDescription(Environmental E)
Specified by:
getViewDescription in interface ShoppingLibrary

shownInInventory

public boolean shownInInventory(Environmental product,
                                MOB buyer)
Specified by:
shownInInventory in interface ShoppingLibrary

rawSpecificGoldPrice

public double rawSpecificGoldPrice(Environmental product,
                                   int whatISell,
                                   double numberOfThem)
Specified by:
rawSpecificGoldPrice in interface ShoppingLibrary

prejudiceValueFromPart

public double prejudiceValueFromPart(MOB customer,
                                     boolean pawnTo,
                                     java.lang.String part)
Specified by:
prejudiceValueFromPart in interface ShoppingLibrary

prejudiceFactor

public double prejudiceFactor(MOB customer,
                              java.lang.String factors,
                              boolean pawnTo)
Specified by:
prejudiceFactor in interface ShoppingLibrary

itemPriceFactor

public double itemPriceFactor(Environmental E,
                              Room R,
                              java.lang.String[] priceFactors,
                              boolean pawnTo)

sellingPrice

public ShopKeeper.ShopPrice sellingPrice(MOB seller,
                                         MOB buyer,
                                         Environmental product,
                                         ShopKeeper shop,
                                         boolean includeSalesTax)
Specified by:
sellingPrice in interface ShoppingLibrary

devalue

public double devalue(ShopKeeper shop,
                      Environmental product)
Specified by:
devalue in interface ShoppingLibrary

pawningPrice

public ShopKeeper.ShopPrice pawningPrice(MOB seller,
                                         MOB buyer,
                                         Environmental product,
                                         ShopKeeper shop)
Specified by:
pawningPrice in interface ShoppingLibrary

getSalesTax

public double getSalesTax(Room homeRoom,
                          MOB seller)
Specified by:
getSalesTax in interface ShoppingLibrary

standardSellEvaluation

public boolean standardSellEvaluation(MOB seller,
                                      MOB buyer,
                                      Environmental product,
                                      ShopKeeper shop,
                                      double maxToPay,
                                      double maxEverPaid,
                                      boolean sellNotValue)
Specified by:
standardSellEvaluation in interface ShoppingLibrary

standardBuyEvaluation

public boolean standardBuyEvaluation(MOB seller,
                                     MOB buyer,
                                     Environmental product,
                                     ShopKeeper shop,
                                     boolean buyNotView)
Specified by:
standardBuyEvaluation in interface ShoppingLibrary

getListInventory

public java.lang.String getListInventory(MOB seller,
                                         MOB buyer,
                                         java.util.Vector rawInventory,
                                         int limit,
                                         ShopKeeper shop,
                                         java.lang.String mask)
Specified by:
getListInventory in interface ShoppingLibrary

findInnRoom

public java.lang.String findInnRoom(InnKey key,
                                    java.lang.String addThis,
                                    Room R)
Specified by:
findInnRoom in interface ShoppingLibrary

parseBuyingFor

public MOB parseBuyingFor(MOB buyer,
                          java.lang.String message)
Specified by:
parseBuyingFor in interface ShoppingLibrary

transactPawn

public double transactPawn(MOB shopkeeper,
                           MOB pawner,
                           ShopKeeper shop,
                           Environmental product)
Specified by:
transactPawn in interface ShoppingLibrary

transactMoneyOnly

public void transactMoneyOnly(MOB seller,
                              MOB buyer,
                              ShopKeeper shop,
                              Environmental product,
                              boolean sellerGetsPaid)
Specified by:
transactMoneyOnly in interface ShoppingLibrary

purchaseItems

public boolean purchaseItems(Item baseProduct,
                             java.util.Vector products,
                             MOB seller,
                             MOB mobFor)
Specified by:
purchaseItems in interface ShoppingLibrary

purchaseMOB

public boolean purchaseMOB(MOB product,
                           MOB seller,
                           ShopKeeper shop,
                           MOB mobFor)
Specified by:
purchaseMOB in interface ShoppingLibrary

purchaseAbility

public void purchaseAbility(Ability A,
                            MOB seller,
                            ShopKeeper shop,
                            MOB mobFor)
Specified by:
purchaseAbility in interface ShoppingLibrary

addRealEstateTitles

public java.util.Vector addRealEstateTitles(java.util.Vector V,
                                            MOB buyer,
                                            int whatISell,
                                            Room myRoom)
Specified by:
addRealEstateTitles in interface ShoppingLibrary

ignoreIfNecessary

public boolean ignoreIfNecessary(MOB mob,
                                 java.lang.String ignoreMask,
                                 MOB whoIgnores)
Specified by:
ignoreIfNecessary in interface ShoppingLibrary

storeKeeperString

public java.lang.String storeKeeperString(int whatISell)
Specified by:
storeKeeperString in interface ShoppingLibrary

doISellThis

public boolean doISellThis(Environmental thisThang,
                           ShopKeeper shop)
Specified by:
doISellThis in interface ShoppingLibrary

returnMoney

public void returnMoney(MOB to,
                        java.lang.String currency,
                        double amt)
Specified by:
returnMoney in interface ShoppingLibrary

bid

public java.lang.String[] bid(MOB mob,
                              double bid,
                              java.lang.String bidCurrency,
                              Auctioneer.AuctionData auctionData,
                              Item I,
                              java.util.Vector auctionAnnounces)
Specified by:
bid in interface ShoppingLibrary

getEnumeratedAuction

public Auctioneer.AuctionData getEnumeratedAuction(java.lang.String named,
                                                   java.lang.String auctionHouse)
Specified by:
getEnumeratedAuction in interface ShoppingLibrary

saveAuction

public void saveAuction(Auctioneer.AuctionData data,
                        java.lang.String auctionHouse,
                        boolean updateOnly)
Specified by:
saveAuction in interface ShoppingLibrary

getAuctions

public java.util.Vector getAuctions(java.lang.Object ofLike,
                                    java.lang.String auctionHouse)
Specified by:
getAuctions in interface ShoppingLibrary

getListForMask

public java.lang.String getListForMask(java.lang.String targetMessage)
Specified by:
getListForMask in interface ShoppingLibrary

getAuctionInventory

public java.lang.String getAuctionInventory(MOB seller,
                                            MOB buyer,
                                            Auctioneer auction,
                                            java.lang.String mask)
Specified by:
getAuctionInventory in interface ShoppingLibrary

auctionNotify

public void auctionNotify(MOB M,
                          java.lang.String resp,
                          java.lang.String regardingItem)
Specified by:
auctionNotify in interface ShoppingLibrary

cancelAuction

public void cancelAuction(Auctioneer.AuctionData data)
Specified by:
cancelAuction in interface ShoppingLibrary