|
RuneHive-Game
|
The parent class of all currencies that provides basic functionality for any general currency. More...
Public Member Functions | |
| boolean | canRecieveCurrency (Player player) |
Determines if the currency can be received when player's inventory is full. | |
| int | currencyAmount (Player player) |
The method that retrieves the amount of currency player currently has. | |
| void | recieveCurrency (Player player, int amount) |
The method executed when the currency is given to player. | |
| boolean | takeCurrency (Player player, int amount) |
The method executed when the currency is taken from player. | |
| boolean | tangible () |
| Determines if this currency is tangible. | |
| String | toString () |
| Gets the name of the currency. | |
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.runehive.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.runehive.content.store.currency.impl.ClanPointCurrency, com.runehive.content.store.currency.impl.DonatorPointCurrency, com.runehive.content.store.currency.impl.ItemCurrency, com.runehive.content.store.currency.impl.LMSPointCurrency, com.runehive.content.store.currency.impl.MageArenaCurrency, com.runehive.content.store.currency.impl.PestPointCurrency, com.runehive.content.store.currency.impl.PrestigePointCurrency, com.runehive.content.store.currency.impl.SkillingPointCurrency, com.runehive.content.store.currency.impl.SlayerPointCurrency, and com.runehive.content.store.currency.impl.VotePointCurrency.
| int com.runehive.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.runehive.content.store.currency.impl.ClanPointCurrency, com.runehive.content.store.currency.impl.DonatorPointCurrency, com.runehive.content.store.currency.impl.ItemCurrency, com.runehive.content.store.currency.impl.LMSPointCurrency, com.runehive.content.store.currency.impl.MageArenaCurrency, com.runehive.content.store.currency.impl.PestPointCurrency, com.runehive.content.store.currency.impl.PrestigePointCurrency, com.runehive.content.store.currency.impl.SkillingPointCurrency, com.runehive.content.store.currency.impl.SlayerPointCurrency, and com.runehive.content.store.currency.impl.VotePointCurrency.
| void com.runehive.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.runehive.content.store.currency.impl.ClanPointCurrency, com.runehive.content.store.currency.impl.DonatorPointCurrency, com.runehive.content.store.currency.impl.ItemCurrency, com.runehive.content.store.currency.impl.LMSPointCurrency, com.runehive.content.store.currency.impl.MageArenaCurrency, com.runehive.content.store.currency.impl.PestPointCurrency, com.runehive.content.store.currency.impl.PrestigePointCurrency, com.runehive.content.store.currency.impl.SkillingPointCurrency, com.runehive.content.store.currency.impl.SlayerPointCurrency, and com.runehive.content.store.currency.impl.VotePointCurrency.
| boolean com.runehive.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.runehive.content.store.currency.impl.ClanPointCurrency, com.runehive.content.store.currency.impl.DonatorPointCurrency, com.runehive.content.store.currency.impl.ItemCurrency, com.runehive.content.store.currency.impl.LMSPointCurrency, com.runehive.content.store.currency.impl.MageArenaCurrency, com.runehive.content.store.currency.impl.PestPointCurrency, com.runehive.content.store.currency.impl.PrestigePointCurrency, com.runehive.content.store.currency.impl.SkillingPointCurrency, com.runehive.content.store.currency.impl.SlayerPointCurrency, and com.runehive.content.store.currency.impl.VotePointCurrency.
| boolean com.runehive.content.store.currency.Currency.tangible | ( | ) |
Determines if this currency is tangible.
true if this currency is tangible, false otherwise. Implemented in com.runehive.content.store.currency.impl.ClanPointCurrency, com.runehive.content.store.currency.impl.DonatorPointCurrency, com.runehive.content.store.currency.impl.ItemCurrency, com.runehive.content.store.currency.impl.LMSPointCurrency, com.runehive.content.store.currency.impl.MageArenaCurrency, com.runehive.content.store.currency.impl.PestPointCurrency, com.runehive.content.store.currency.impl.PrestigePointCurrency, com.runehive.content.store.currency.impl.SkillingPointCurrency, com.runehive.content.store.currency.impl.SlayerPointCurrency, and com.runehive.content.store.currency.impl.VotePointCurrency.
| String com.runehive.content.store.currency.Currency.toString | ( | ) |
Gets the name of the currency.
Implemented in com.runehive.content.store.currency.impl.ItemCurrency.