public class CurrencyItemAcquireHook extends java.lang.Object implements AcquireHook
Modifier and Type | Field and Description |
---|---|
protected int |
currencyID |
Constructor and Description |
---|
CurrencyItemAcquireHook() |
CurrencyItemAcquireHook(int currencyID) |
Modifier and Type | Method and Description |
---|---|
boolean |
acquired(OID activatorOid,
AgisItem item)
Adds the item as currency for the player and returns true telling the item to be
destroyed.
|
int |
getCurrencyID() |
void |
setCurrencyID(int currencyID) |
java.lang.String |
toString() |
public CurrencyItemAcquireHook()
public CurrencyItemAcquireHook(int currencyID)
public void setCurrencyID(int currencyID)
public int getCurrencyID()
public boolean acquired(OID activatorOid, AgisItem item)
acquired
in interface AcquireHook
public java.lang.String toString()
toString
in class java.lang.Object