atavism.server.currency
Class CurrencySystem
java.lang.Object
atavism.server.currency.CurrencySystem
- Direct Known Subclasses:
- SocialGoldCashCurrencySystem
public class CurrencySystem
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CurrencySystem
public CurrencySystem(int id,
java.lang.String name)
setSharedByAccount
public void setSharedByAccount(boolean sharedByAccount)
getSharedByAccount
public boolean getSharedByAccount()
setLogTransactions
public void setLogTransactions(boolean logTransactions)
getLogTransactions
public boolean getLogTransactions()
addDependsOn
public void addDependsOn(CurrencySystem dependsOnCurrencySystem)
getDependsOn
public java.util.LinkedList<CurrencySystem> getDependsOn()
getMinBalance
public java.lang.Float getMinBalance()
getMaxBalance
public java.lang.Float getMaxBalance()
getID
public int getID()
getName
public java.lang.String getName()
logTransaction
public void logTransaction(Purse purse,
java.lang.Float delta,
java.lang.String reason)
getBalance
public java.lang.Float getBalance(Purse playerPurse)
updateBalance
public java.lang.Float updateBalance(Purse playerPurse,
java.lang.Float delta,
java.lang.String reason)
amountToString
public java.lang.String amountToString(java.lang.Float amount)