Atavism Version 2018.1AGIS API

atavism.agis.util
Class EquipHelper

java.lang.Object
  extended by atavism.agis.util.EquipHelper

public class EquipHelper
extends java.lang.Object

Contains static functions that assist with Equipping and Unequipping items.

Author:
Andrew

Constructor Summary
EquipHelper()
           
 
Method Summary
static void ItemAcquiredStatHelper(OID oid, AgisItem item, boolean acquired, CombatInfo obj)
          Updates the stats and other properties of the character who has just acquired or lost an item.
static void updateDisplay(OID mobOid, java.lang.String displayVal, AgisEquipSlot slot)
          Sets the displayID on the player for the specified slot.
static void UpdateEquiperStats(OID oid, AgisItem itemToEquip, AgisItem itemToUnequip, CombatInfo obj)
          Updates the stats and other properties of the character equipping or unequipping an item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EquipHelper

public EquipHelper()
Method Detail

ItemAcquiredStatHelper

public static void ItemAcquiredStatHelper(OID oid,
                                          AgisItem item,
                                          boolean acquired,
                                          CombatInfo obj)
Updates the stats and other properties of the character who has just acquired or lost an item. By default is empty and is to be filled in by developers if they wish.

Parameters:
oid -
item: - The item acquired or lost
acquired: - True means the player now has the item, false means they lost it.
obj -

UpdateEquiperStats

public static void UpdateEquiperStats(OID oid,
                                      AgisItem itemToEquip,
                                      AgisItem itemToUnequip,
                                      CombatInfo obj)
Updates the stats and other properties of the character equipping or unequipping an item.

Parameters:
oid: - the identifier of the equipers
item: - the item being equipped
equipping: - whether the item is being equipped or unequipped
obj: - the equipers combat object

updateDisplay

public static void updateDisplay(OID mobOid,
                                 java.lang.String displayVal,
                                 AgisEquipSlot slot)
Sets the displayID on the player for the specified slot.

Parameters:
mobOid -
displayVal -
slot -


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