AuctionPolicy, CMCommon, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>public class DefaultAuctionPolicy extends java.lang.Object implements AuctionPolicy, java.lang.Cloneable
idConverter| Constructor | Description |
|---|---|
DefaultAuctionPolicy() |
| Modifier and Type | Method | Description |
|---|---|---|
int |
compareTo(CMObject o) |
|
CMObject |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
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 A) |
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.
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
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 |
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.
|
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.
|
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic CMObject copyOf()
CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic void mergeAuctioneerPolicy(Auctioneer A)
AuctionPolicymergeAuctioneerPolicy in interface AuctionPolicyA - the auctioneerAuctioneerpublic double timedListingPrice()
AuctionPolicytimedListingPrice in interface AuctionPolicyAuctionPolicy.setTimedListingPrice(double)public void setTimedListingPrice(double d)
AuctionPolicysetTimedListingPrice in interface AuctionPolicyd - the flat fee in base currency to listAuctionPolicy.timedListingPrice()public double timedListingPct()
AuctionPolicytimedListingPct in interface AuctionPolicyAuctionPolicy.setTimedListingPct(double)public void setTimedListingPct(double d)
AuctionPolicysetTimedListingPct in interface AuctionPolicyd - the percent of an items value, per dayAuctionPolicy.timedListingPct()public double timedFinalCutPct()
AuctionPolicytimedFinalCutPct in interface AuctionPolicyAuctionPolicy.setTimedFinalCutPct(double)public void setTimedFinalCutPct(double d)
AuctionPolicysetTimedFinalCutPct in interface AuctionPolicyd - the percent of an items final valueAuctionPolicy.timedFinalCutPct()public int maxTimedAuctionDays()
AuctionPolicymaxTimedAuctionDays in interface AuctionPolicyAuctionPolicy.setMaxTimedAuctionDays(int)public void setMaxTimedAuctionDays(int d)
AuctionPolicysetMaxTimedAuctionDays in interface AuctionPolicyd - the maximum number of game-daysAuctionPolicy.maxTimedAuctionDays()public int minTimedAuctionDays()
AuctionPolicyminTimedAuctionDays in interface AuctionPolicyAuctionPolicy.setMinTimedAuctionDays(int)public void setMinTimedAuctionDays(int d)
AuctionPolicysetMinTimedAuctionDays in interface AuctionPolicyd - the minimum number of game-daysAuctionPolicy.minTimedAuctionDays()public double liveListingPrice()
AuctionPolicyliveListingPrice in interface AuctionPolicyAuctionPolicy.setLiveListingPrice(double)public void setLiveListingPrice(double d)
AuctionPolicysetLiveListingPrice in interface AuctionPolicyd - the flat fee in base currency to listAuctionPolicy.liveListingPrice()public double liveFinalCutPct()
AuctionPolicyliveFinalCutPct in interface AuctionPolicyAuctionPolicy.setLiveFinalCutPct(double)public void setLiveFinalCutPct(double d)
AuctionPolicysetLiveFinalCutPct in interface AuctionPolicyd - the percent of an items final valueAuctionPolicy.liveFinalCutPct()