|
|||||||||
| 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 class com.planet_ink.coffee_mud.MOBS.StdMOB |
|---|
StdMOB.ApplyAffectCharState<T extends StatsAffecting>, StdMOB.ApplyAffectCharStats<T extends StatsAffecting>, StdMOB.ApplyRecAffectPhyStats<T extends StatsAffecting> |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ShopKeeper |
|---|
ShopKeeper.ShopPrice |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
MOB.Attrib |
| Nested classes/interfaces inherited from interface com.planet_ink.coffee_mud.core.interfaces.ItemPossessor |
|---|
ItemPossessor.Expire, ItemPossessor.Find, ItemPossessor.Move |
| Field Summary | |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.Long> |
lastCheckTimes
|
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 |
|---|
abilitys, abilityUseCache, abilityUseTrig, affectCharState, affectCharStats, affectPhyStats, affects, ageMinutes, amDead, amDestroyed, amFollowing, atRange, attributesBitmap, baseCharStats, basePhyStats, baseState, behaviors, cachedImageName, charStats, clanAffects, clans, CODES, commandQue, curState, databaseID, description, displayText, experience, expertises, factions, followers, inventory, kickFlag, lastLocation, liegeID, location, maxState, me, miscText, money, moneyVariation, mySession, peaceTime, phyStats, playerStats, possHeldItem, possStartRoom, possWieldedItem, practices, questPoint, racialAffects, rawImageName, recoverAffectP, recoverTickCter, removeFromGame, riding, scripts, soulMate, tattoos, tickAgeCounter, tickStatus, trains, username, victim, wimpHitPoint, worshipCharID, xtraValues |
| 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_BOOKS, DEAL_BUTCHER, DEAL_CASTER, DEAL_CLANBANKER, DEAL_CLANDSELLER, DEAL_CLANPOSTMAN, DEAL_CONFLICTS, DEAL_CSHIPSELLER, DEAL_DESCS, DEAL_FOODSELLER, DEAL_GENERAL, DEAL_GROWER, DEAL_HIDESELLER, DEAL_INNKEEPER, DEAL_INSTRUMENTS, DEAL_INVENTORYONLY, DEAL_JEWELLER, DEAL_LANDSELLER, DEAL_LEATHER, DEAL_LUMBERER, DEAL_MAGIC, DEAL_METALSMITH, DEAL_PETS, DEAL_POSTMAN, DEAL_READABLES, DEAL_SHIPSELLER, DEAL_SLAVES, DEAL_STONEYARDER, DEAL_TRAINER, DEAL_WEAPONS |
| Fields inherited from interface com.planet_ink.coffee_mud.MOBS.interfaces.MOB |
|---|
AGE_MILLIS_THRESHOLD, END_SHEATH_TIME, START_SHEATH_TIME |
| Fields inherited from interface com.planet_ink.coffee_mud.core.interfaces.MUDCmdProcessor |
|---|
METAFLAG_AS, METAFLAG_ASMESSAGE, METAFLAG_FORCED, METAFLAG_INORDER, METAFLAG_MPFORCED, METAFLAG_ORDER, METAFLAG_POSSESSED, METAFLAG_SNOOPED |
| Constructor Summary | |
|---|---|
StdAuctioneer()
|
|
| Method Summary | |
|---|---|
void |
addSoldType(int mask)
Adds the ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeper to the existing shopkeeper mask. |
java.lang.String |
auctionHouse()
Gets the name of the auction house to which this auctioneer belongs. |
void |
autoGive(MOB src,
MOB tgt,
Item I)
|
java.lang.String |
budget()
Returns a description of the buying budget of the shopkeeper. |
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. |
Pair<java.lang.Long,TimeClock.TimePeriod> |
finalBudget()
Returns a description of the buying budget of the shopkeeper. |
double[] |
finalDevalueRate()
Returns a double array 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()
|
long |
getWhatIsSoldMask()
Returns the ShopKeeper DEAL_* mask describing what is sold or bought by this ShopKeeper |
java.lang.String |
getWhatIsSoldZappermask()
Returns the zapper mask which applies to items to determine whether they are bought and solid by this shopkeeper. |
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. |
boolean |
isSold(int mask)
Returns whether the given type of good is sold by this shopkeeper. |
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 |
double |
liveFinalCutPct()
Gets the percent of an items final value to take off the winning bid for the house for a live auction. |
double |
liveListingPrice()
Gets the flat fee in base currency to list an item of any sort at the auction house for a live auction. |
int |
maxTimedAuctionDays()
Gets the maximum number of game-days that an auction can continue. |
void |
mergeAuctioneerPolicy(Auctioneer auction)
Alters this policy to take account of the policies of the policies of a full timed auctioneer. |
int |
minTimedAuctionDays()
Gets the minimum number of game-days that an auction can continue. |
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)
Sets the name of the auction house to which this auctioneer belongs. |
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 |
setLiveFinalCutPct(double d)
Gets the percent of an items final value to take off the winning bid for the house. |
void |
setLiveListingPrice(double d)
Sets the flat fee in base currency to list an item of any sort at the auction house for a live auction. |
void |
setMaxTimedAuctionDays(int d)
Sets the maximum number of game-days that an auction can continue. |
void |
setMinTimedAuctionDays(int d)
Sets the minimum number of game-days that an auction can continue. |
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)
Gets the percent of an items final value to take off the winning bid for the house. |
void |
setTimedListingPct(double d)
Sets the percent of an items value, per day, to charge to list an item. |
void |
setTimedListingPrice(double d)
Sets the flat fee in base currency to list an item of any sort at the auction house for a timed auction. |
void |
setWhatIsSoldMask(long newSellCode)
Sets the encoded ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeper |
void |
setWhatIsSoldZappermask(java.lang.String newSellMask)
Sets the zapper mask which applies to items to determine whether they are bought and solid 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()
Gets the percent of an items final value to take off the winning bid for the house for a timed auction. |
double |
timedListingPct()
Gets the percent of an items value, per day, to charge to list an item. |
double |
timedListingPrice()
Gets the flat fee in base currency to list an item of any sort at the auction house for a timed auction. |
| 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.core.interfaces.Environmental |
|---|
description, displayText, expirationDate, image, isGeneric, L, maxRange, minRange, miscTextFormat, Name, rawImage, sameAs, setDescription, setDisplayText, setExpirationDate, setImage, setMiscText, setName, text |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Tickable |
|---|
getTickStatus, name |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.StatsAffecting |
|---|
affectCharState, affectCharStats, affectPhyStats |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Contingent |
|---|
amDestroyed, destroy, isSavable, setSavable |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
|---|
copyOf, initializeClass, newInstance |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Methods inherited from interface com.planet_ink.coffee_mud.core.interfaces.Modifiable |
|---|
getSaveStatIndex, getStat, getStatCodes, isStat, setStat |
| Field Detail |
|---|
protected double timedListingPrice
protected double timedListingPct
protected double timedFinalCutPct
protected int maxTimedAuctionDays
protected int minTimedAuctionDays
public AuctionData lastMsgData
protected static final java.util.Map<java.lang.String,java.lang.Long> lastCheckTimes
| 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()
Auctioneer
auctionHouse in interface AuctioneerAuctioneer.setAuctionHouse(String)public void setAuctionHouse(java.lang.String name)
Auctioneer
setAuctionHouse in interface Auctioneername - name of the auction houseAuctioneer.auctionHouse()public double timedListingPrice()
AuctionPolicy
timedListingPrice in interface AuctionPolicyAuctionPolicy.setTimedListingPrice(double)public void setTimedListingPrice(double d)
AuctionPolicy
setTimedListingPrice in interface AuctionPolicyd - the flat fee in base currency to listAuctionPolicy.timedListingPrice()public double timedListingPct()
AuctionPolicy
timedListingPct in interface AuctionPolicyAuctionPolicy.setTimedListingPct(double)public void setTimedListingPct(double d)
AuctionPolicy
setTimedListingPct in interface AuctionPolicyd - the percent of an items value, per dayAuctionPolicy.timedListingPct()public double timedFinalCutPct()
AuctionPolicy
timedFinalCutPct in interface AuctionPolicyAuctionPolicy.setTimedFinalCutPct(double)public void setTimedFinalCutPct(double d)
AuctionPolicy
setTimedFinalCutPct in interface AuctionPolicyd - the percent of an items final valueAuctionPolicy.timedFinalCutPct()public int maxTimedAuctionDays()
AuctionPolicy
maxTimedAuctionDays in interface AuctionPolicyAuctionPolicy.setMaxTimedAuctionDays(int)public void setMaxTimedAuctionDays(int d)
AuctionPolicy
setMaxTimedAuctionDays in interface AuctionPolicyd - the maximum number of game-daysAuctionPolicy.maxTimedAuctionDays()public int minTimedAuctionDays()
AuctionPolicy
minTimedAuctionDays in interface AuctionPolicyAuctionPolicy.setMinTimedAuctionDays(int)public void setMinTimedAuctionDays(int d)
AuctionPolicy
setMinTimedAuctionDays in interface AuctionPolicyd - the minimum number of game-daysAuctionPolicy.minTimedAuctionDays()public long getWhatIsSoldMask()
ShopKeeper
getWhatIsSoldMask in interface ShopKeeperShopKeeper.DEAL_DESCS,
ShopKeeper.setWhatIsSoldMask(long)public boolean isSold(int mask)
ShopKeeper
isSold in interface ShopKeepermask - the ShopKeeper DEAL_* constant describing what is sold or bought by this ShopKeeper
ShopKeeper.DEAL_DESCS,
ShopKeeper.getWhatIsSoldMask()public void setWhatIsSoldMask(long newSellCode)
ShopKeeper
setWhatIsSoldMask in interface ShopKeepernewSellCode - the dealer type constants to the 2nd power, shifted 8 bits leftShopKeeper.DEAL_DESCS,
ShopKeeper.addSoldType(int)public void addSoldType(int mask)
ShopKeeper
addSoldType in interface ShopKeepermask - the ShopKeeper DEAL_* constants describing what is sold or bought by this ShopKeeperShopKeeper.DEAL_DESCS,
ShopKeeper.isSold(int)
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.isSold(int)public boolean doISellThis(Environmental thisThang)
ShopKeeper
doISellThis in interface ShopKeeperthisThang - the item to determine if the shopkeeper deals in
ShopKeeper.isSold(int)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 Pair<java.lang.Long,TimeClock.TimePeriod> 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 double[] 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 void setWhatIsSoldZappermask(java.lang.String newSellMask)
ShopKeeper
setWhatIsSoldZappermask in interface ShopKeepernewSellMask - the item zappermaskShopKeeper.isSold(int),
ShopKeeper.getWhatIsSoldZappermask(),
MaskingLibrarypublic java.lang.String getWhatIsSoldZappermask()
ShopKeeper
getWhatIsSoldZappermask in interface ShopKeeperShopKeeper.isSold(int),
ShopKeeper.setWhatIsSoldZappermask(String),
MaskingLibrarypublic 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 inventorypublic double liveListingPrice()
AuctionPolicy
liveListingPrice in interface AuctionPolicyAuctionPolicy.setLiveListingPrice(double)public void setLiveListingPrice(double d)
AuctionPolicy
setLiveListingPrice in interface AuctionPolicyd - the flat fee in base currency to listAuctionPolicy.liveListingPrice()public double liveFinalCutPct()
AuctionPolicy
liveFinalCutPct in interface AuctionPolicyAuctionPolicy.setLiveFinalCutPct(double)public void setLiveFinalCutPct(double d)
AuctionPolicy
setLiveFinalCutPct in interface AuctionPolicyd - the percent of an items final valueAuctionPolicy.liveFinalCutPct()public void mergeAuctioneerPolicy(Auctioneer auction)
AuctionPolicy
mergeAuctioneerPolicy in interface AuctionPolicyauction - the auctioneerAuctioneer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||