Atavism Version 2018.1AGIS API

atavism.agis.core
Class CurrencyItemActivateHook

java.lang.Object
  extended by atavism.agis.core.CurrencyItemActivateHook
All Implemented Interfaces:
ActivateHook, java.io.Serializable

public class CurrencyItemActivateHook
extends java.lang.Object
implements ActivateHook

an activate hook for items that trigger abilities when the item is activated, the mob uses the ability

See Also:
Serialized Form

Field Summary
protected  int currencyID
           
 
Constructor Summary
CurrencyItemActivateHook()
           
CurrencyItemActivateHook(int currencyID)
           
 
Method Summary
 boolean activate(OID activatorOid, AgisItem item, OID targetOid)
          returns whether the item was successfully activated
 int getCurrencyID()
           
 void setCurrencyID(int currencyID)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

currencyID

protected int currencyID
Constructor Detail

CurrencyItemActivateHook

public CurrencyItemActivateHook()

CurrencyItemActivateHook

public CurrencyItemActivateHook(int currencyID)
Method Detail

setCurrencyID

public void setCurrencyID(int currencyID)

getCurrencyID

public int getCurrencyID()

activate

public boolean activate(OID activatorOid,
                        AgisItem item,
                        OID targetOid)
Description copied from interface: ActivateHook
returns whether the item was successfully activated

Specified by:
activate in interface ActivateHook

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2018 Dragonsan Studios Sp. z o.o.