|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AuctionData
Class for storing basic data about a specific auction in progress. Handles both Live and Timed auction data.
Method Summary | |
---|---|
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 |
void |
setAuctionDBKey(java.lang.String auctionDBKey)
Set the auction database key for this auction |
void |
setAuctionedItem(Item auctionedItem)
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 interface com.planet_ink.coffee_mud.core.interfaces.CMObject |
---|
copyOf, ID, initializeClass, name, newInstance |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
int daysRemaining(MOB mob, MOB mob2)
mob
- the mob whose calendar to usemob2
- the second mob whose calendar to use
int daysEllapsed(MOB mob, MOB mob2)
mob
- the mob whose calendar to usemob2
- the second mob whose calendar to use
Item getAuctionedItem()
setAuctionedItem(Item)
void setAuctionedItem(Item auctionedItem)
auctionedItem
- the item being auctioned.getAuctionedItem()
MOB getAuctioningMob()
setAuctioningMob(MOB)
void setAuctioningMob(MOB auctioningM)
auctioningM
- the mob auctioning the itemgetAuctioningMob()
MOB getHighBidderMob()
setHighBidderMob(MOB)
void setHighBidderMob(MOB highBidderM)
highBidderM
- the mob who is the high bidder in the auction.getHighBidderMob()
java.lang.String getCurrency()
setCurrency(String)
void setCurrency(java.lang.String currency)
currency
- the currency the auction is being held in.getCurrency()
double getHighBid()
setHighBid(double)
void setHighBid(double highBid)
highBid
- the current high bid in the auctiongetHighBid()
double getBid()
setBid(double)
void setBid(double bid)
bid
- the current bid in the auctiongetBid()
double getBuyOutPrice()
setBuyOutPrice(double)
void setBuyOutPrice(double buyOutPrice)
buyOutPrice
- the current buy-out price for this auction.getBuyOutPrice()
int getAuctionState()
setAuctionState(int)
void setAuctionState(int state)
state
- the current auction StategetAuctionState()
long getAuctionTickDown()
setAuctionTickDown(long)
void setAuctionTickDown(long tickDown)
tickDown
- the tick down timer to check stuffgetAuctionTickDown()
long getStartTime()
setStartTime(long)
void setStartTime(long start)
start
- the start time of this auctiongetStartTime()
java.lang.String getAuctionDBKey()
setAuctionDBKey(String)
void setAuctionDBKey(java.lang.String auctionDBKey)
auctionDBKey
- the auction database key for this auctiongetAuctionDBKey()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |