Atavism Version 2018.1AGIS API

atavism.agis.core
Class EquipActivateHook

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

public class EquipActivateHook
extends java.lang.Object
implements ActivateHook

an activate hook attached to equippable items, eg: weapons, armor hook will unequip the item in the current slot and equip the item associated with the hook

See Also:
Serialized Form

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

Field Detail

itemOid

protected OID itemOid
Constructor Detail

EquipActivateHook

public EquipActivateHook()
Method Detail

activate

public boolean activate(OID activatorOid,
                        AgisItem item,
                        OID targetOid)
returns whether the item was successfully activated

Specified by:
activate in interface ActivateHook


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