Atavism Version 2018.1AGIS API

atavism.agis.core
Class AccountEffectItemAcquireHook

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

public class AccountEffectItemAcquireHook
extends java.lang.Object
implements AcquireHook

An acquire hook for items that turn into currency when acquired.

See Also:
Serialized Form

Field Summary
protected  java.lang.String effectType
           
protected  int effectValue
           
 
Constructor Summary
AccountEffectItemAcquireHook()
           
AccountEffectItemAcquireHook(java.lang.String effectType, int effectValue)
           
 
Method Summary
 boolean acquired(OID activatorOid, AgisItem item)
          Adds the item as currency for the player and returns true telling the item to be destroyed.
 java.lang.String getEffectType()
           
 int getEffectValue()
           
 void setEffectType(java.lang.String effectType)
           
 void setEffectValue(int effectValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

effectType

protected java.lang.String effectType

effectValue

protected int effectValue
Constructor Detail

AccountEffectItemAcquireHook

public AccountEffectItemAcquireHook()

AccountEffectItemAcquireHook

public AccountEffectItemAcquireHook(java.lang.String effectType,
                                    int effectValue)
Method Detail

setEffectType

public void setEffectType(java.lang.String effectType)

getEffectType

public java.lang.String getEffectType()

setEffectValue

public void setEffectValue(int effectValue)

getEffectValue

public int getEffectValue()

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


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