Package com.runemate.game.api.hybrid.net
Class GrandExchange.Offer
- java.lang.Object
-
- com.runemate.game.api.hybrid.net.GrandExchange.Offer
-
- Enclosing class:
- GrandExchange
public static class GrandExchange.Offer extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
GrandExchange.Offer.State
static class
GrandExchange.Offer.Type
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object object)
double
getCompletion()
ItemDefinition
getItem()
int
getItemPrice()
int
getItemQuantity()
int
getItemsTransferred()
GrandExchange.Offer.State
getState()
int
getTaxPerItem()
Returns the GE tax per item.GrandExchange.Offer.Type
getType()
int
getWealthTransferred()
int
hashCode()
boolean
isBuyOffer()
boolean
isSellOffer()
java.lang.String
toString()
-
-
-
Method Detail
-
getItem
public ItemDefinition getItem()
-
getItemQuantity
public int getItemQuantity()
- Returns:
- The total quantity of the item being bought or sold in the offer.
-
getItemPrice
public int getItemPrice()
- Returns:
- The price per item
-
getTaxPerItem
public int getTaxPerItem()
Returns the GE tax per item. Per Grand Exchange rules: - Items sold for under 100gp will have no tax applied - Items between 100-5,000,000 will have a 1% tax applied - Items sold for more than 500m will have a maximum tax of 5,000,000
-
getWealthTransferred
public int getWealthTransferred()
- Returns:
- The total number of coins spent/received so far on the offer.
-
getItemsTransferred
public int getItemsTransferred()
- Returns:
- The total number of items sold/received so far on the offer.
-
getCompletion
public double getCompletion()
- Returns:
- From 0-100, the percentage completion of the offer.
-
getState
public GrandExchange.Offer.State getState()
- Returns:
- The current state of the offer
-
getType
public GrandExchange.Offer.Type getType()
- Returns:
- The type of offer, either BUY or SELL
-
isBuyOffer
public boolean isBuyOffer()
-
isSellOffer
public boolean isSellOffer()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object object)
- Overrides:
equals
in classjava.lang.Object
-
-