RuneHive-Tarnish
Neural OSRS Enhancement Framework
|
Public Member Functions | |
boolean | tangible () |
boolean | takeCurrency (Player player, int amount) |
void | recieveCurrency (Player player, int amount) |
int | currencyAmount (Player player) |
boolean | canRecieveCurrency (Player player) |
String | toString () |
The parent class of all currencies that provides basic functionality for any general currency. This can be used to register tangible, and even intangible currencies.
Definition at line 11 of file Currency.java.
boolean com.osroyale.content.store.currency.Currency.canRecieveCurrency | ( | Player | player | ) |
Determines if the currency can be received when player
's inventory is full.
player | the player to determine this for. |
true
if the currency can be recieved, false
otherwise. Implemented in com.osroyale.content.store.currency.impl.ClanPointCurrency, com.osroyale.content.store.currency.impl.DonatorPointCurrency, com.osroyale.content.store.currency.impl.ItemCurrency, com.osroyale.content.store.currency.impl.LMSPointCurrency, com.osroyale.content.store.currency.impl.MageArenaCurrency, com.osroyale.content.store.currency.impl.PestPointCurrency, com.osroyale.content.store.currency.impl.PrestigePointCurrency, com.osroyale.content.store.currency.impl.SkillingPointCurrency, com.osroyale.content.store.currency.impl.SlayerPointCurrency, and com.osroyale.content.store.currency.impl.VotePointCurrency.
int com.osroyale.content.store.currency.Currency.currencyAmount | ( | Player | player | ) |
The method that retrieves the amount of currency player
currently has.
player | the player who's currency amount will be determined. |
Implemented in com.osroyale.content.store.currency.impl.ClanPointCurrency, com.osroyale.content.store.currency.impl.DonatorPointCurrency, com.osroyale.content.store.currency.impl.ItemCurrency, com.osroyale.content.store.currency.impl.LMSPointCurrency, com.osroyale.content.store.currency.impl.MageArenaCurrency, com.osroyale.content.store.currency.impl.PestPointCurrency, com.osroyale.content.store.currency.impl.PrestigePointCurrency, com.osroyale.content.store.currency.impl.SkillingPointCurrency, com.osroyale.content.store.currency.impl.SlayerPointCurrency, and com.osroyale.content.store.currency.impl.VotePointCurrency.
void com.osroyale.content.store.currency.Currency.recieveCurrency | ( | Player | player, |
int | amount ) |
The method executed when the currency is given to player
.
player | the player the currency is given to. |
amount | the amount of currency that is given. |
Implemented in com.osroyale.content.store.currency.impl.ClanPointCurrency, com.osroyale.content.store.currency.impl.DonatorPointCurrency, com.osroyale.content.store.currency.impl.ItemCurrency, com.osroyale.content.store.currency.impl.LMSPointCurrency, com.osroyale.content.store.currency.impl.MageArenaCurrency, com.osroyale.content.store.currency.impl.PestPointCurrency, com.osroyale.content.store.currency.impl.PrestigePointCurrency, com.osroyale.content.store.currency.impl.SkillingPointCurrency, com.osroyale.content.store.currency.impl.SlayerPointCurrency, and com.osroyale.content.store.currency.impl.VotePointCurrency.
boolean com.osroyale.content.store.currency.Currency.takeCurrency | ( | Player | player, |
int | amount ) |
The method executed when the currency is taken from player
.
player | the player the currency is taken from. |
amount | the amount of currency that is taken. |
Implemented in com.osroyale.content.store.currency.impl.ClanPointCurrency, com.osroyale.content.store.currency.impl.DonatorPointCurrency, com.osroyale.content.store.currency.impl.ItemCurrency, com.osroyale.content.store.currency.impl.LMSPointCurrency, com.osroyale.content.store.currency.impl.MageArenaCurrency, com.osroyale.content.store.currency.impl.PestPointCurrency, com.osroyale.content.store.currency.impl.PrestigePointCurrency, com.osroyale.content.store.currency.impl.SkillingPointCurrency, com.osroyale.content.store.currency.impl.SlayerPointCurrency, and com.osroyale.content.store.currency.impl.VotePointCurrency.
boolean com.osroyale.content.store.currency.Currency.tangible | ( | ) |
Determines if this currency is tangible.
true
if this currency is tangible, false
otherwise. Implemented in com.osroyale.content.store.currency.impl.ClanPointCurrency, com.osroyale.content.store.currency.impl.DonatorPointCurrency, com.osroyale.content.store.currency.impl.ItemCurrency, com.osroyale.content.store.currency.impl.LMSPointCurrency, com.osroyale.content.store.currency.impl.MageArenaCurrency, com.osroyale.content.store.currency.impl.PestPointCurrency, com.osroyale.content.store.currency.impl.PrestigePointCurrency, com.osroyale.content.store.currency.impl.SkillingPointCurrency, com.osroyale.content.store.currency.impl.SlayerPointCurrency, and com.osroyale.content.store.currency.impl.VotePointCurrency.
String com.osroyale.content.store.currency.Currency.toString | ( | ) |
Gets the name of the currency.
Implemented in com.osroyale.content.store.currency.impl.ItemCurrency.