RuneHive-Game
Loading...
Searching...
No Matches
com.runehive.content.store.currency.Currency Interface Reference

The parent class of all currencies that provides basic functionality for any general currency. More...

Inheritance diagram for com.runehive.content.store.currency.Currency:

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.

Detailed Description

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.

Author
lare96 http://github.com/lare96

Definition at line 11 of file Currency.java.

Member Function Documentation

◆ canRecieveCurrency()

◆ currencyAmount()

◆ recieveCurrency()

◆ takeCurrency()

◆ tangible()

◆ toString()

String com.runehive.content.store.currency.Currency.toString ( )

Gets the name of the currency.

Implemented in com.runehive.content.store.currency.impl.ItemCurrency.


The documentation for this interface was generated from the following file: