|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.planet_ink.coffee_mud.MOBS.StdMOB
com.planet_ink.coffee_mud.MOBS.StdAuctioneer
public class StdAuctioneer
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.Auctioneer |
|---|
Auctioneer.AuctionData, Auctioneer.AuctionRates |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
ShopKeeper.ShopPrice |
| Field Summary | |
|---|---|
protected static java.util.Hashtable |
lastCheckTimes
|
Auctioneer.AuctionData |
lastMsgData
|
protected int |
maxTimedAuctionDays
|
protected int |
minTimedAuctionDays
|
protected double |
timedFinalCutPct
|
protected double |
timedListingPct
|
protected double |
timedListingPrice
|
| Fields inherited from class com.planet_ink.coffee_mud.MOBS.StdMOB |
|---|
abilities, affects, AgeHours, Alignment, amDead, amDestroyed, amFollowing, atRange, attributesBitmap, baseCharStats, baseEnvStats, baseState, behaviors, charStats, clanID, clanRole, CODES, commandQue, curState, databaseID, DeityIndex, description, displayText, envStats, Experience, expertises, factions, followers, imageName, imMobile, inventory, kickFlag, lastLocation, LiegeID, location, maxState, miscText, Money, moneyVariation, mySession, peaceTime, playerStats, pleaseDestroy, Practices, QuestPoint, riding, scripts, soulMate, startRoomPossibly, tattoos, tickCounter, tickStatus, Trains, Username, victim, WimpHitPoint, WorshipCharID, xtraValues |
| Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.Auctioneer |
|---|
STATE_CLOSED, STATE_ONCE, STATE_RUNOUT, STATE_START, STATE_THREE, STATE_TWICE |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
DEAL_ALCHEMIST, DEAL_ANYTECHNOLOGY, DEAL_ANYTHING, DEAL_ARMOR, DEAL_AUCTIONEER, DEAL_BANKER, DEAL_BUTCHER, DEAL_CASTER, DEAL_CLANBANKER, DEAL_CLANDSELLER, DEAL_CLANPOSTMAN, DEAL_CSHIPSELLER, DEAL_DESCS, DEAL_FOODSELLER, DEAL_GENERAL, DEAL_GROWER, DEAL_HIDESELLER, DEAL_INNKEEPER, DEAL_INVENTORYONLY, DEAL_JEWELLER, DEAL_LANDSELLER, DEAL_LEATHER, DEAL_LUMBERER, DEAL_MAGIC, DEAL_METALSMITH, DEAL_PETS, DEAL_POSTMAN, DEAL_SHIPSELLER, DEAL_SLAVES, DEAL_STONEYARDER, DEAL_TRAINER, DEAL_WEAPONS |
| Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
ATT_ANSI, ATT_AUTOASSIST, ATT_AUTODRAW, ATT_AUTOEXITS, ATT_AUTOFORWARD, ATT_AUTOGOLD, ATT_AUTOGUARD, ATT_AUTOIMPROVE, ATT_AUTOLOOT, ATT_AUTOMELEE, ATT_AUTONOTIFY, ATT_AUTORUN, ATT_AUTOWEATHER, ATT_BRIEF, ATT_COMPRESS, ATT_DAILYMESSAGE, ATT_MXP, ATT_NOFOLLOW, ATT_NOTEACH, ATT_PLAYERKILL, ATT_QUIET, ATT_SOUND, ATT_SYSOPMSGS, AUTODESC, AUTOREV, SHEATH_TIME |
| Constructor Summary | |
|---|---|
StdAuctioneer()
|
|
| Method Summary | |
|---|---|
java.lang.String |
auctionHouse()
|
void |
autoGive(MOB src,
MOB tgt,
Item I)
|
void |
bringToLife(Room newLocation,
boolean resetStats)
|
java.lang.String |
budget()
Returns a description of the buying budget of the shopkeeper. |
void |
destroy()
Utterly and permanently destroy this object, not only removing it from the map, but causing this object to be collected as garbage by Java. |
java.lang.String |
devalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
boolean |
doISellThis(Environmental thisThang)
Returns whether this ShopKeeper deals in the type of item passed in. |
void |
executeMsg(Environmental myHost,
CMMsg msg)
The general message event handler for the object. |
java.lang.String |
finalBudget()
Returns a description of the buying budget of the shopkeeper. |
java.lang.String |
finalDevalueRate()
Returns a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
java.lang.String |
finalIgnoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
int |
finalInvResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
java.lang.String[] |
finalItemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
java.lang.String |
finalPrejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
CoffeeShop |
getShop()
the CoffeeShop method to access the shopkeepers store of goods |
protected Area |
getStartArea()
|
java.lang.String |
ID()
The CoffeeMud Java Class ID shared by all instances of this object. |
java.lang.String |
ignoreMask()
Returns the mask used to determine if a customer is ignored by the ShopKeeper. |
int |
invResetRate()
Returns the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
java.lang.String[] |
itemPricingAdjustments()
A string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
int |
maxTimedAuctionDays()
|
int |
minTimedAuctionDays()
|
boolean |
okMessage(Environmental myHost,
CMMsg msg)
The general message event previewer for the object. |
protected java.lang.String |
parseBidString(java.lang.String targetMessage)
|
java.lang.String |
prejudiceFactors()
A string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
void |
setAuctionHouse(java.lang.String name)
|
void |
setBudget(java.lang.String factors)
Sets a description of the buying budget of the shopkeeper. |
void |
setDevalueRate(java.lang.String factors)
Sets a string describing the percentage in the drop of the price at which this ShopKeeper will buy back items based on the number already in his inventory. |
void |
setIgnoreMask(java.lang.String factors)
Sets the mask used to determine if a customer is ignored by the ShopKeeper. |
void |
setInvResetRate(int ticks)
Sets the number of ticks between totally resetting this ShopKeepers inventory back to what it was. |
void |
setItemPricingAdjustments(java.lang.String[] factors)
Sets the string set describing how pricing for this ShopKeeper will differ based on item masks The format for each string is a floating point number followers by a space and a zapper mask |
void |
setMaxTimedAuctionDays(int d)
|
void |
setMinTimedAuctionDays(int d)
|
void |
setPrejudiceFactors(java.lang.String factors)
Sets the string describing how pricing for this ShopKeeper will differ based on customer attributes such as race. |
void |
setTimedFinalCutPct(double d)
|
void |
setTimedListingPct(double d)
|
void |
setTimedListingPrice(double d)
|
void |
setWhatIsSold(int newSellCode)
Sets the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper |
java.lang.String |
storeKeeperString()
Based on the value of this ShopKeepers whatIsSold() method, this will return a displayable string describing that type. |
boolean |
tick(Tickable ticking,
int tickID)
this is the method which is called periodically by the threading engine. |
double |
timedFinalCutPct()
|
double |
timedListingPct()
|
double |
timedListingPrice()
|
int |
whatIsSold()
Returns the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public Auctioneer.AuctionData lastMsgData
protected static final java.util.Hashtable lastCheckTimes
protected double timedListingPrice
protected double timedListingPct
protected double timedFinalCutPct
protected int maxTimedAuctionDays
protected int minTimedAuctionDays
| Constructor Detail |
|---|
public StdAuctioneer()
| Method Detail |
|---|
public java.lang.String ID()
CMObject
ID in interface CMObjectID in class StdMOBpublic CoffeeShop getShop()
ShopKeeper
getShop in interface ShopKeeperCoffeeShoppublic java.lang.String auctionHouse()
auctionHouse in interface Auctioneerpublic void setAuctionHouse(java.lang.String name)
setAuctionHouse in interface Auctioneerpublic double timedListingPrice()
timedListingPrice in interface Auctioneerpublic void setTimedListingPrice(double d)
setTimedListingPrice in interface Auctioneerpublic double timedListingPct()
timedListingPct in interface Auctioneerpublic void setTimedListingPct(double d)
setTimedListingPct in interface Auctioneerpublic double timedFinalCutPct()
timedFinalCutPct in interface Auctioneerpublic void setTimedFinalCutPct(double d)
setTimedFinalCutPct in interface Auctioneerpublic int maxTimedAuctionDays()
maxTimedAuctionDays in interface Auctioneerpublic void setMaxTimedAuctionDays(int d)
setMaxTimedAuctionDays in interface Auctioneerpublic int minTimedAuctionDays()
minTimedAuctionDays in interface Auctioneerpublic void setMinTimedAuctionDays(int d)
setMinTimedAuctionDays in interface Auctioneerpublic void destroy()
Environmental
destroy in interface Environmentaldestroy in class StdMOB
public void bringToLife(Room newLocation,
boolean resetStats)
bringToLife in interface MOBbringToLife in class StdMOBpublic int whatIsSold()
ShopKeeper
whatIsSold in interface ShopKeeperShopKeeperpublic void setWhatIsSold(int newSellCode)
ShopKeeper
setWhatIsSold in interface ShopKeepernewSellCode - the dealer type constantShopKeeper
public boolean tick(Tickable ticking,
int tickID)
Tickable
tick in interface Tickabletick in class StdMOBticking - a reference to this Tickable objecttickID - the TICKID_ constant describing this periodic call, as defined in Tickable
Tickable,
ServiceEngine,
TickableGroup
public void autoGive(MOB src,
MOB tgt,
Item I)
protected java.lang.String parseBidString(java.lang.String targetMessage)
public boolean okMessage(Environmental myHost,
CMMsg msg)
MsgListener
okMessage in interface MsgListenerokMessage in class StdMOBmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that wants to be executed
CMMsg,
CMMsg.source()
public void executeMsg(Environmental myHost,
CMMsg msg)
MsgListener
executeMsg in interface MsgListenerexecuteMsg in class StdMOBmyHost - either the initiator of the event, or the host of this objectmsg - the CMMsg that needs to be executedCMMsgpublic java.lang.String storeKeeperString()
ShopKeeper
storeKeeperString in interface ShopKeeperShopKeeper.whatIsSold()public boolean doISellThis(Environmental thisThang)
ShopKeeper
doISellThis in interface ShopKeeperthisThang - the item to determine if the shopkeeper deals in
ShopKeeper.whatIsSold()protected Area getStartArea()
public java.lang.String finalPrejudiceFactors()
Economics
finalPrejudiceFactors in interface Economicspublic java.lang.String prejudiceFactors()
Economics
prejudiceFactors in interface Economicspublic void setPrejudiceFactors(java.lang.String factors)
Economics
setPrejudiceFactors in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String finalIgnoreMask()
Economics
finalIgnoreMask in interface EconomicsMaskingLibrarypublic java.lang.String ignoreMask()
Economics
ignoreMask in interface EconomicsMaskingLibrarypublic void setIgnoreMask(java.lang.String factors)
Economics
setIgnoreMask in interface Economicsfactors - the mask to useMaskingLibrarypublic java.lang.String[] finalItemPricingAdjustments()
Economics
finalItemPricingAdjustments in interface Economicspublic java.lang.String[] itemPricingAdjustments()
Economics
itemPricingAdjustments in interface Economicspublic void setItemPricingAdjustments(java.lang.String[] factors)
Economics
setItemPricingAdjustments in interface Economicsfactors - the string describing price prejudicingpublic java.lang.String finalBudget()
Economics
finalBudget in interface Economicspublic java.lang.String budget()
Economics
budget in interface Economicspublic void setBudget(java.lang.String factors)
Economics
setBudget in interface Economicsfactors - the string for the shopkeepers buying budgetpublic java.lang.String finalDevalueRate()
Economics
finalDevalueRate in interface Economicspublic java.lang.String devalueRate()
Economics
devalueRate in interface Economicspublic void setDevalueRate(java.lang.String factors)
Economics
setDevalueRate in interface Economicsfactors - the price dropping percentage rule for this shopkeeperpublic int finalInvResetRate()
Economics
finalInvResetRate in interface Economicspublic int invResetRate()
Economics
invResetRate in interface Economicspublic void setInvResetRate(int ticks)
Economics
setInvResetRate in interface Economicsticks - the number of ticks between total resets of inventory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||