|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.planet_ink.coffee_mud.Common.DefaultAuction
public class DefaultAuction
Field Summary | |
---|---|
java.lang.String |
auctionDBKey
|
Item |
auctioningI
|
MOB |
auctioningM
|
double |
bid
|
double |
buyOutPrice
|
java.lang.String |
currency
|
double |
highBid
|
MOB |
highBidderM
|
long |
start
|
int |
state
|
long |
tickDown
|
Constructor Summary | |
---|---|
DefaultAuction()
|
Method Summary | |
---|---|
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. |
int |
daysEllapsed(MOB mob,
MOB mob2)
Returns the number of days ellapsed in this auction. |
int |
daysRemaining(MOB mob,
MOB mob2)
Returns the number of days remaining in this auction. |
java.lang.String |
getAuctionDBKey()
Get the auction database key for this auction |
Item |
getAuctionedItem()
Get the item being auctioned. |
MOB |
getAuctioningMob()
Get the mob auctioning the item |
int |
getAuctionState()
Get the current auction State |
long |
getAuctionTickDown()
Get the tick down timer to check stuff |
double |
getBid()
Get the current bid in the auction |
double |
getBuyOutPrice()
Get the current buy-out price for this auction. |
java.lang.String |
getCurrency()
Get the currency the auction is being held in. |
double |
getHighBid()
Get the current high bid in the auction |
MOB |
getHighBidderMob()
Get the mob who is the high bidder in the auction. |
long |
getStartTime()
Get the start time of this auction |
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. |
java.lang.String |
name()
The displayable name of this object. |
CMObject |
newInstance()
Returns a new instance of this class. |
void |
setAuctionDBKey(java.lang.String auctionDBKey)
Set the auction database key for this auction |
void |
setAuctionedItem(Item auctioningI)
Set the item being auctioned. |
void |
setAuctioningMob(MOB auctioningM)
Set the mob auctioning the item |
void |
setAuctionState(int state)
Set the current auction State |
void |
setAuctionTickDown(long tickDown)
Set the tick down timer to check stuff |
void |
setBid(double bid)
Set the current bid in the auction |
void |
setBuyOutPrice(double buyOutPrice)
Set the current buy-out price for this auction. |
void |
setCurrency(java.lang.String currency)
Set the currency the auction is being held in. |
void |
setHighBid(double highBid)
Set the current high bid in the auction |
void |
setHighBidderMob(MOB highBidderM)
Set the mob who is the high bidder in the auction. |
void |
setStartTime(long start)
Set the start time of this auction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public Item auctioningI
public MOB auctioningM
public MOB highBidderM
public java.lang.String currency
public double highBid
public double bid
public double buyOutPrice
public int state
public long tickDown
public long start
public java.lang.String auctionDBKey
Constructor Detail |
---|
public DefaultAuction()
Method Detail |
---|
public java.lang.String ID()
CMObject
ID
in interface CMObject
public java.lang.String name()
CMObject
name
in interface CMObject
Environmental.Name()
public CMObject newInstance()
CMObject
newInstance
in interface CMObject
public int compareTo(CMObject o)
compareTo
in interface java.lang.Comparable<CMObject>
public void initializeClass()
CMObject
initializeClass
in interface CMObject
public CMObject copyOf()
CMObject
copyOf
in interface CMObject
public int daysRemaining(MOB mob, MOB mob2)
AuctionData
daysRemaining
in interface AuctionData
mob
- the mob whose calendar to usemob2
- the second mob whose calendar to use
public int daysEllapsed(MOB mob, MOB mob2)
AuctionData
daysEllapsed
in interface AuctionData
mob
- the mob whose calendar to usemob2
- the second mob whose calendar to use
public Item getAuctionedItem()
AuctionData
getAuctionedItem
in interface AuctionData
AuctionData.setAuctionedItem(Item)
public void setAuctionedItem(Item auctioningI)
AuctionData
setAuctionedItem
in interface AuctionData
auctioningI
- the item being auctioned.AuctionData.getAuctionedItem()
public MOB getAuctioningMob()
AuctionData
getAuctioningMob
in interface AuctionData
AuctionData.setAuctioningMob(MOB)
public void setAuctioningMob(MOB auctioningM)
AuctionData
setAuctioningMob
in interface AuctionData
auctioningM
- the mob auctioning the itemAuctionData.getAuctioningMob()
public MOB getHighBidderMob()
AuctionData
getHighBidderMob
in interface AuctionData
AuctionData.setHighBidderMob(MOB)
public void setHighBidderMob(MOB highBidderM)
AuctionData
setHighBidderMob
in interface AuctionData
highBidderM
- the mob who is the high bidder in the auction.AuctionData.getHighBidderMob()
public java.lang.String getCurrency()
AuctionData
getCurrency
in interface AuctionData
AuctionData.setCurrency(String)
public void setCurrency(java.lang.String currency)
AuctionData
setCurrency
in interface AuctionData
currency
- the currency the auction is being held in.AuctionData.getCurrency()
public double getHighBid()
AuctionData
getHighBid
in interface AuctionData
AuctionData.setHighBid(double)
public void setHighBid(double highBid)
AuctionData
setHighBid
in interface AuctionData
highBid
- the current high bid in the auctionAuctionData.getHighBid()
public double getBid()
AuctionData
getBid
in interface AuctionData
AuctionData.setBid(double)
public void setBid(double bid)
AuctionData
setBid
in interface AuctionData
bid
- the current bid in the auctionAuctionData.getBid()
public double getBuyOutPrice()
AuctionData
getBuyOutPrice
in interface AuctionData
AuctionData.setBuyOutPrice(double)
public void setBuyOutPrice(double buyOutPrice)
AuctionData
setBuyOutPrice
in interface AuctionData
buyOutPrice
- the current buy-out price for this auction.AuctionData.getBuyOutPrice()
public int getAuctionState()
AuctionData
getAuctionState
in interface AuctionData
AuctionData.setAuctionState(int)
public void setAuctionState(int state)
AuctionData
setAuctionState
in interface AuctionData
state
- the current auction StateAuctionData.getAuctionState()
public long getAuctionTickDown()
AuctionData
getAuctionTickDown
in interface AuctionData
AuctionData.setAuctionTickDown(long)
public void setAuctionTickDown(long tickDown)
AuctionData
setAuctionTickDown
in interface AuctionData
tickDown
- the tick down timer to check stuffAuctionData.getAuctionTickDown()
public long getStartTime()
AuctionData
getStartTime
in interface AuctionData
AuctionData.setStartTime(long)
public void setStartTime(long start)
AuctionData
setStartTime
in interface AuctionData
start
- the start time of this auctionAuctionData.getStartTime()
public java.lang.String getAuctionDBKey()
AuctionData
getAuctionDBKey
in interface AuctionData
AuctionData.setAuctionDBKey(String)
public void setAuctionDBKey(java.lang.String auctionDBKey)
AuctionData
setAuctionDBKey
in interface AuctionData
auctionDBKey
- the auction database key for this auctionAuctionData.getAuctionDBKey()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |