atavism.agis.core
Class CurrencyItemAcquireHook
java.lang.Object
atavism.agis.core.CurrencyItemAcquireHook
- All Implemented Interfaces:
- AcquireHook, java.io.Serializable
public class CurrencyItemAcquireHook
- extends java.lang.Object
- implements AcquireHook
An acquire hook for items that turn into currency
when acquired.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
currencyID
protected int currencyID
CurrencyItemAcquireHook
public CurrencyItemAcquireHook()
CurrencyItemAcquireHook
public CurrencyItemAcquireHook(int currencyID)
setCurrencyID
public void setCurrencyID(int currencyID)
getCurrencyID
public int getCurrencyID()
acquired
public boolean acquired(OID activatorOid,
AgisItem item)
- Adds the item as currency for the player and returns true telling the item to be
destroyed.
- Specified by:
acquired
in interface AcquireHook
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object