public class AccountEffectItemActivateHook extends java.lang.Object implements ActivateHook
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
effectType |
protected int |
effectValue |
protected boolean |
oadelete |
Constructor and Description |
---|
AccountEffectItemActivateHook() |
AccountEffectItemActivateHook(java.lang.String effectType,
int effectValue,
boolean oadelete) |
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.
|
boolean |
activate(OID activatorOid,
AgisItem item,
OID targetOid)
returns whether the item was successfully activated
|
java.lang.String |
getEffectType() |
int |
getEffectValue() |
void |
setEffectType(java.lang.String effectType) |
void |
setEffectValue(int effectValue) |
java.lang.String |
toString() |
protected java.lang.String effectType
protected int effectValue
protected boolean oadelete
public AccountEffectItemActivateHook()
public AccountEffectItemActivateHook(java.lang.String effectType, int effectValue, boolean oadelete)
public void setEffectType(java.lang.String effectType)
public java.lang.String getEffectType()
public void setEffectValue(int effectValue)
public int getEffectValue()
public boolean acquired(OID activatorOid, AgisItem item)
public boolean activate(OID activatorOid, AgisItem item, OID targetOid)
ActivateHook
activate
in interface ActivateHook
public java.lang.String toString()
toString
in class java.lang.Object