CMObject
, Tickable
, CMLibrary
, ShoppingLibrary
, java.lang.Cloneable
, java.lang.Comparable<CMObject>
public class CoffeeShops extends StdLibrary implements ShoppingLibrary
idConverter
isDebugging, name, serviceClient, tickStatus
STATUS_AFFECT, STATUS_ALIVE, STATUS_BEHAVIOR, STATUS_CLASS, STATUS_DEAD, STATUS_END, STATUS_FIGHT, STATUS_MISC, STATUS_MISC2, STATUS_MISC3, STATUS_MISC4, STATUS_MISC5, STATUS_MISC6, STATUS_MISC7, STATUS_NOT, STATUS_OTHER, STATUS_RACE, STATUS_REBIRTH, STATUS_SCRIPT, STATUS_START, STATUS_WEATHER, TICKID_AREA, TICKID_BALLISTICK, TICKID_CLAN, TICKID_CLANITEM, TICKID_DEADBODY_DECAY, TICKID_ELECTRONICS, TICKID_EMAIL, TICKID_EVENT, TICKID_EXIT_BEHAVIOR, TICKID_EXIT_REOPEN, TICKID_ITEM_BEHAVIOR, TICKID_ITEM_BOUNCEBACK, TICKID_LIGHT_FLICKERS, TICKID_LIVEAUCTION, TICKID_LONGERMASK, TICKID_MISCELLANEOUS, TICKID_MOB, TICKID_PROPERTY_SPECIAL, TICKID_QUEST, TICKID_READYTOSTOP, TICKID_ROOM_BEHAVIOR, TICKID_ROOM_ITEM_REJUV, TICKID_SHORTERMASK, TICKID_SOLITARYMASK, TICKID_SPECIALCOMBAT, TICKID_SPECIALMANEUVER, TICKID_SPELL_AFFECT, TICKID_SUPPORT, TICKID_TIMEAUCTION, TICKID_TRAP_DESTRUCTION, TICKID_TRAP_RESET
Constructor | Description |
---|---|
CoffeeShops() |
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.
|
protected Pair<java.lang.Double,java.lang.String>[] |
alternateParseItemPricingAdjustments(java.lang.String factors) |
|
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> rawInventory,
int limit,
ShopKeeper shop,
java.lang.String mask) |
Formats and returns a displayable inventory for a shopkeeper.
|
protected double |
getProductCount(Environmental product) |
|
double |
getSalesTax(Room homeRoom,
MOB seller) |
Returns the applicable sales tax percentage for the given seller from the
given room.
|
protected java.lang.String |
getSellableElectronicsName(MOB viewerM,
Electronics E) |
|
ShopKeeper |
getShopKeeper(Environmental E) |
Given a potential shopkeeper host, this will return
the shopkeeper shop itself.
|
protected double |
getStockSizeDevaluation(ShopKeeper shop,
Environmental product,
double number) |
|
protected Ability |
getTrainableAbility(MOB teacher,
Ability A) |
|
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.
|
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) |
Returns whether the given ignorer (usually a shopkeeper mob) is ignoring
the given mob for most purposes.
|
protected boolean |
isLotTooLarge(ShopKeeper shop,
Environmental product) |
|
protected double |
itemPriceFactor(Environmental product,
Room R,
java.lang.String[] priceFactors,
boolean pawnTo) |
|
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.
|
protected java.lang.String[] |
parsePrejudiceFactors(java.lang.String 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.
|
protected int |
plus(int range,
int hash) |
|
protected int |
plusOrMinus(int range,
int hash,
boolean lieBool) |
|
protected double |
prejudiceFactor(MOB customer,
java.lang.String factors,
boolean pawnTo) |
|
protected double |
prejudiceValueFromPart(MOB customer,
boolean pawnTo,
java.lang.String part) |
|
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.
|
double |
rawSpecificGoldPrice(Environmental product,
CoffeeShop shop) |
|
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.
|
protected boolean |
shopKeeperItemTypeCheck(Environmental E,
int dealCode,
ShopKeeper shopKeeper) |
|
protected boolean |
shownInInventory(MOB seller,
MOB buyer,
Environmental product,
ShopKeeper 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 shopkeeper,
MOB pawner,
ShopKeeper shop,
Environmental product) |
Does the transaction where a player/mob sells an item to a shopkeeper.
|
activate, getServiceClient, L, propertiesLoaded, shutdown
copyOf, initializeClass, name, newInstance
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
activate, checkDatabase, compareTo, copyOf, getServiceClient, getTickStatus, initializeClass, L, name, newInstance, propertiesLoaded, setThreadStatus, shutdown, tick
public java.lang.String ID()
CMObject
ID
in interface CMObject
ID
in class StdLibrary
public ShopKeeper getShopKeeper(Environmental E)
ShoppingLibrary
getShopKeeper
in interface ShoppingLibrary
E
- the potential shopkeeper hostpublic java.util.List<Environmental> getAllShopkeepers(Room here, MOB notMOB)
ShoppingLibrary
getAllShopkeepers
in interface ShoppingLibrary
here
- the room to find shopkeepernotMOB
- an exception, or null for no exceptionsprotected java.lang.String getSellableElectronicsName(MOB viewerM, Electronics E)
protected int plusOrMinus(int range, int hash, boolean lieBool)
protected int plus(int range, int hash)
public java.lang.String getViewDescription(MOB viewerM, Environmental E, java.util.Set<ShopKeeper.ViewType> flags)
ShoppingLibrary
getViewDescription
in interface ShoppingLibrary
viewerM
- the mob viewing the iremE
- the item being viewedflags
- the level of information returnedShopKeeper.ViewType
protected boolean shownInInventory(MOB seller, MOB buyer, Environmental product, ShopKeeper shopKeeper)
public double rawSpecificGoldPrice(Environmental product, CoffeeShop shop)
protected double prejudiceValueFromPart(MOB customer, boolean pawnTo, java.lang.String part)
protected double prejudiceFactor(MOB customer, java.lang.String factors, boolean pawnTo)
protected double itemPriceFactor(Environmental product, Room R, java.lang.String[] priceFactors, boolean pawnTo)
public ShopKeeper.ShopPrice sellingPrice(MOB sellerShopM, MOB buyerCustM, Environmental product, ShopKeeper shopKeeper, CoffeeShop shop, boolean includeSalesTax)
ShoppingLibrary
sellingPrice
in interface ShoppingLibrary
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 otherwiseShoppingLibrary.transactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean)
,
ShoppingLibrary.sellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean)
,
ShoppingLibrary.getSalesTax(Room, MOB)
public java.lang.String[] parseItemPricingAdjustments(java.lang.String factors)
ShoppingLibrary
parseItemPricingAdjustments
in interface ShoppingLibrary
factors
- the raw factors stringShoppingLibrary.parseDevalueRate(String)
,
ShoppingLibrary.parseBudget(String)
protected java.lang.String[] parsePrejudiceFactors(java.lang.String factors)
protected Pair<java.lang.Double,java.lang.String>[] alternateParseItemPricingAdjustments(java.lang.String factors)
public Pair<java.lang.Long,TimeClock.TimePeriod> parseBudget(java.lang.String budget)
ShoppingLibrary
parseBudget
in interface ShoppingLibrary
budget
- the encoded budget string (amount time period)ShoppingLibrary.parseDevalueRate(String)
,
ShoppingLibrary.parseItemPricingAdjustments(String)
public double[] parseDevalueRate(java.lang.String factors)
ShoppingLibrary
parseDevalueRate
in interface ShoppingLibrary
factors
- the rate of devaluation(s)ShoppingLibrary.parseItemPricingAdjustments(String)
,
ShoppingLibrary.parseBudget(String)
protected double getStockSizeDevaluation(ShopKeeper shop, Environmental product, double number)
protected boolean isLotTooLarge(ShopKeeper shop, Environmental product)
protected double getProductCount(Environmental product)
public ShopKeeper.ShopPrice pawningPrice(MOB buyerShopM, MOB sellerCustM, Environmental product, ShopKeeper shopKeeper, CoffeeShop shop)
ShoppingLibrary
pawningPrice
in interface ShoppingLibrary
buyerShopM
- the shopkeeper mobsellerCustM
- the player seller mobproduct
- the proposed produce to sell to the shopshopKeeper
- the shop itselfshop
- the inventory object of the shopShoppingLibrary.transactPawn(MOB, MOB, ShopKeeper, Environmental)
,
ShoppingLibrary.pawnEvaluation(MOB, MOB, Environmental, ShopKeeper, double, double, boolean)
public double getSalesTax(Room homeRoom, MOB seller)
ShoppingLibrary
getSalesTax
in interface ShoppingLibrary
homeRoom
- the room the shopkeeper is originally fromseller
- the seller him or herselfShoppingLibrary.transactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean)
,
ShoppingLibrary.sellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean)
,
ShoppingLibrary.sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)
public boolean pawnEvaluation(MOB buyerShopM, MOB sellerCustM, Environmental product, ShopKeeper shop, double maxToPay, double maxEverPaid, boolean sellNotValue)
ShoppingLibrary
pawnEvaluation
in interface ShoppingLibrary
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 valuationShoppingLibrary.transactPawn(MOB, MOB, ShopKeeper, Environmental)
,
ShoppingLibrary.pawningPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop)
public boolean sellEvaluation(MOB sellerShopM, MOB buyerCustM, Environmental product, ShopKeeper shop, boolean buyNotView)
ShoppingLibrary
sellEvaluation
in interface ShoppingLibrary
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 viewShoppingLibrary.transactMoneyOnly(MOB, MOB, ShopKeeper, Environmental, boolean)
,
ShoppingLibrary.getSalesTax(Room, MOB)
,
ShoppingLibrary.sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)
public java.lang.String getListInventory(MOB seller, MOB buyer, java.util.List<? extends Environmental> rawInventory, int limit, ShopKeeper shop, java.lang.String mask)
ShoppingLibrary
getListInventory
in interface ShoppingLibrary
seller
- the seller mob who speaksbuyer
- the buyer mob who is ... buyingrawInventory
- 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 showShoppingLibrary.getListInventory(MOB, MOB, List, int, ShopKeeper, String)
,
ShoppingLibrary.getListForMask(String)
public java.lang.String findInnRoom(InnKey key, java.lang.String addThis, Room R)
ShoppingLibrary
findInnRoom
in interface ShoppingLibrary
key
- the key to find the room foraddThis
- a word to prefix the directions withR
- the room starting frompublic MOB parseBuyingFor(MOB buyer, java.lang.String message)
ShoppingLibrary
parseBuyingFor
in interface ShoppingLibrary
buyer
- the agent buyer in the roommessage
- the buy message stringpublic double transactPawn(MOB shopkeeper, MOB pawner, ShopKeeper shop, Environmental product)
ShoppingLibrary
transactPawn
in interface ShoppingLibrary
shopkeeper
- the shopkeeper mob being sold topawner
- the player/mob selling an itemshop
- the shopkeeper objectproduct
- the product sold to the shopkeeperShoppingLibrary.pawnEvaluation(MOB, MOB, Environmental, ShopKeeper, double, double, boolean)
,
ShoppingLibrary.pawningPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop)
public void transactMoneyOnly(MOB sellerM, MOB buyerM, ShopKeeper shop, Environmental product, boolean sellerGetsPaid)
ShoppingLibrary
transactMoneyOnly
in interface ShoppingLibrary
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 shopkeepersShoppingLibrary.sellEvaluation(MOB, MOB, Environmental, ShopKeeper, boolean)
,
ShoppingLibrary.getSalesTax(Room, MOB)
,
ShoppingLibrary.sellingPrice(MOB, MOB, Environmental, ShopKeeper, CoffeeShop, boolean)
public boolean purchaseItems(Item baseProduct, java.util.List<Environmental> products, MOB seller, MOB mobFor)
ShoppingLibrary
purchaseItems
in interface ShoppingLibrary
baseProduct
- the item being purchasedproducts
- all items in the item productseller
- the sellermobFor
- the buyerShoppingLibrary.purchaseAbility(Ability, MOB, ShopKeeper, MOB)
,
ShoppingLibrary.purchaseMOB(MOB, MOB, ShopKeeper, MOB)
public boolean purchaseMOB(MOB product, MOB seller, ShopKeeper shop, MOB mobFor)
ShoppingLibrary
purchaseMOB
in interface ShoppingLibrary
product
- the follower mob being purchasedseller
- the sellershop
- the seller's shopmobFor
- the buyerShoppingLibrary.purchaseAbility(Ability, MOB, ShopKeeper, MOB)
,
ShoppingLibrary.purchaseItems(Item, List, MOB, MOB)
public void purchaseAbility(Ability A, MOB seller, ShopKeeper shop, MOB mobFor)
ShoppingLibrary
purchaseAbility
in interface ShoppingLibrary
A
- the ability being purchasedseller
- the sellershop
- the seller's shopmobFor
- the buyerShoppingLibrary.purchaseMOB(MOB, MOB, ShopKeeper, MOB)
,
ShoppingLibrary.purchaseItems(Item, List, MOB, MOB)
public java.util.List<Environmental> addRealEstateTitles(java.util.List<Environmental> productsV, MOB buyer, CoffeeShop shop, Room myRoom)
ShoppingLibrary
addRealEstateTitles
in interface ShoppingLibrary
productsV
- the existing inventorybuyer
- the buyer who wants to see the inventoryshop
- the shop inventory objectmyRoom
- the room where the shopkeeper ispublic boolean ignoreIfNecessary(MOB mob, java.lang.String ignoreMask, MOB whoIgnores)
ShoppingLibrary
ignoreIfNecessary
in interface ShoppingLibrary
mob
- the mob who might be ignoredignoreMask
- the zappermask determining if the mob is ignoredwhoIgnores
- the mob who might be ignoringpublic java.lang.String storeKeeperString(CoffeeShop shop, ShopKeeper keeper)
ShoppingLibrary
storeKeeperString
in interface ShoppingLibrary
shop
- coffee shop inventory to checkkeeper
- the actual coffee shopprotected boolean shopKeeperItemTypeCheck(Environmental E, int dealCode, ShopKeeper shopKeeper)
public boolean doISellThis(Environmental thisThang, ShopKeeper shop)
ShoppingLibrary
doISellThis
in interface ShoppingLibrary
thisThang
- the thing to see if its ordinary stockshop
- the actual shop to check for a good matchpublic void returnMoney(MOB to, java.lang.String currency, double amt)
ShoppingLibrary
returnMoney
in interface ShoppingLibrary
to
- the mob who is getting or losing moneycurrency
- the currency to add/removeamt
- the amount to add/removepublic java.lang.String[] bid(MOB mob, double bid, java.lang.String bidCurrency, AuctionData auctionData, Item I, java.util.List<java.lang.String> auctionAnnounces)
ShoppingLibrary
bid
in interface ShoppingLibrary
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
,
ShoppingLibrary.auctionNotify(MOB, String, String)
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
public AuctionData fetchAuctionByItemName(java.lang.String named, java.lang.String auctionHouse)
ShoppingLibrary
fetchAuctionByItemName
in interface ShoppingLibrary
named
- the item name, or partial matchauctionHouse
- the auction house to search inAuctionData
,
ShoppingLibrary.auctionNotify(MOB, String, String)
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
public void saveAuction(AuctionData data, java.lang.String auctionHouse, boolean updateOnly)
ShoppingLibrary
saveAuction
in interface ShoppingLibrary
data
- the AuctionData to updateauctionHouse
- the auction house the data belongs toupdateOnly
- true for update, false when creatingAuctionData
,
ShoppingLibrary.auctionNotify(MOB, String, String)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
public java.util.Enumeration<AuctionData> getAuctions(java.lang.Object ofLike, java.lang.String auctionHouse)
ShoppingLibrary
getAuctions
in interface ShoppingLibrary
ofLike
- null, or a name to matchauctionHouse
- the auction house to return auctions fromAuctionData
,
ShoppingLibrary.auctionNotify(MOB, String, String)
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
public java.lang.String getListForMask(java.lang.String targetMessage)
ShoppingLibrary
getListForMask
in interface ShoppingLibrary
targetMessage
- the target message stringShoppingLibrary.getListInventory(MOB, MOB, List, int, ShopKeeper, String)
,
ShoppingLibrary.getListForMask(String)
public java.lang.String getAuctionInventory(MOB seller, MOB buyer, Auctioneer auction, java.lang.String itemName)
ShoppingLibrary
getAuctionInventory
in interface ShoppingLibrary
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
,
ShoppingLibrary.auctionNotify(MOB, String, String)
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
public void auctionNotify(MOB M, java.lang.String resp, java.lang.String regardingItem)
ShoppingLibrary
auctionNotify
in interface ShoppingLibrary
M
- the recipient of the messageresp
- the messageregardingItem
- the item up for auctionAuctionData
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.cancelAuction(String, AuctionData)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
,
ShoppingLibrary.auctionNotify(MOB, String, String)
public void cancelAuction(java.lang.String auctionHouse, AuctionData data)
ShoppingLibrary
cancelAuction
in interface ShoppingLibrary
auctionHouse
- the auction house the data belongs todata
- the AuctionData to deleteAuctionData
,
ShoppingLibrary.saveAuction(AuctionData, String, boolean)
,
ShoppingLibrary.fetchAuctionByItemName(String, String)
,
ShoppingLibrary.getAuctions(Object, String)
,
ShoppingLibrary.getAuctionInventory(MOB, MOB, Auctioneer, String)
,
ShoppingLibrary.bid(MOB, double, String, AuctionData, Item, List)
,
ShoppingLibrary.auctionNotify(MOB, String, String)