Atavism Version 2018.1AGIS API

atavism.server.plugins
Class InventoryClient

java.lang.Object
  extended by atavism.server.plugins.InventoryClient

public class InventoryClient
extends java.lang.Object

Client for sending/getting messages to the InventoryPlugin


Nested Class Summary
static class InventoryClient.ActivateMessage
          the obj is the "main" oid for the message since that is what the InventoryPlugin is subscribing on
static class InventoryClient.AddItemMessage
           
static class InventoryClient.InvUpdateMessage
           
static class InventoryClient.ItemInfo
           
static class InventoryClient.LootAllMessage
          message is asking the inventory plugin to execute looting by looter of the passed in container
static class InventoryClient.RemoveOrFindItemMessage
           
 
Field Summary
static java.lang.String INV_METHOD_OID
           
static java.lang.String INV_METHOD_TEMPLATE
           
static java.lang.String INV_METHOD_TEMPLATE_LIST
           
static Namespace ITEM_NAMESPACE
           
static MessageType MSG_TYPE_ACTIVATE
           
static MessageType MSG_TYPE_ADD_ITEM
           
static MessageType MSG_TYPE_CREATE_INV
           
static MessageType MSG_TYPE_DESTROY_ITEM
           
static MessageType MSG_TYPE_INV_FIND
           
static MessageType MSG_TYPE_INV_REMOVE
           
static MessageType MSG_TYPE_INV_UPDATE
           
static MessageType MSG_TYPE_LOOTALL
           
static Namespace NAMESPACE
           
static java.lang.String TEMPL_ACTIVATE_HOOK
           
static java.lang.String TEMPL_DCMAP
           
static java.lang.String TEMPL_EQUIP_INFO
           
static java.lang.String TEMPL_ICON
           
static java.lang.String TEMPL_ITEMS
          template starting items
static java.lang.String TEMPL_VALUE
           
 
Constructor Summary
InventoryClient()
           
 
Method Summary
static void activateObject(OID objOid, OID activatorOid, OID targetOid)
           
static boolean addItem(OID containerOid, OID mobOid, OID rootContainerOid, OID itemOid)
           
static OID findItem(OID mobOid, int templateID)
           
static java.util.List<OID> findItems(OID mobOid, java.util.ArrayList<java.lang.Integer> templateIDs)
           
static void getInventory(OID objOid)
          Requests a full inventory update from the InventoryPlugin
static boolean lootAll(OID looterOid, OID containerOid)
           
static OID removeItem(OID mobOid, int templateID)
           
static OID removeItem(OID mobOid, OID itemOid)
           
static java.util.List<OID> removeItems(OID mobOid, java.util.ArrayList<java.lang.Integer> templateNames)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MSG_TYPE_ADD_ITEM

public static final MessageType MSG_TYPE_ADD_ITEM

MSG_TYPE_CREATE_INV

public static final MessageType MSG_TYPE_CREATE_INV

MSG_TYPE_INV_UPDATE

public static final MessageType MSG_TYPE_INV_UPDATE

MSG_TYPE_ACTIVATE

public static final MessageType MSG_TYPE_ACTIVATE

MSG_TYPE_LOOTALL

public static final MessageType MSG_TYPE_LOOTALL

MSG_TYPE_INV_FIND

public static final MessageType MSG_TYPE_INV_FIND

MSG_TYPE_INV_REMOVE

public static final MessageType MSG_TYPE_INV_REMOVE

MSG_TYPE_DESTROY_ITEM

public static final MessageType MSG_TYPE_DESTROY_ITEM

INV_METHOD_OID

public static final java.lang.String INV_METHOD_OID
See Also:
Constant Field Values

INV_METHOD_TEMPLATE

public static final java.lang.String INV_METHOD_TEMPLATE
See Also:
Constant Field Values

INV_METHOD_TEMPLATE_LIST

public static final java.lang.String INV_METHOD_TEMPLATE_LIST
See Also:
Constant Field Values

TEMPL_ITEMS

public static final java.lang.String TEMPL_ITEMS
template starting items

See Also:
Constant Field Values

TEMPL_EQUIP_INFO

public static final java.lang.String TEMPL_EQUIP_INFO
See Also:
Constant Field Values

TEMPL_ACTIVATE_HOOK

public static final java.lang.String TEMPL_ACTIVATE_HOOK
See Also:
Constant Field Values

TEMPL_ICON

public static final java.lang.String TEMPL_ICON
See Also:
Constant Field Values

TEMPL_DCMAP

public static final java.lang.String TEMPL_DCMAP
See Also:
Constant Field Values

TEMPL_VALUE

public static final java.lang.String TEMPL_VALUE
See Also:
Constant Field Values

NAMESPACE

public static Namespace NAMESPACE

ITEM_NAMESPACE

public static Namespace ITEM_NAMESPACE
Constructor Detail

InventoryClient

public InventoryClient()
Method Detail

getInventory

public static void getInventory(OID objOid)
Requests a full inventory update from the InventoryPlugin


activateObject

public static void activateObject(OID objOid,
                                  OID activatorOid,
                                  OID targetOid)

lootAll

public static boolean lootAll(OID looterOid,
                              OID containerOid)

addItem

public static boolean addItem(OID containerOid,
                              OID mobOid,
                              OID rootContainerOid,
                              OID itemOid)

removeItem

public static OID removeItem(OID mobOid,
                             OID itemOid)

removeItem

public static OID removeItem(OID mobOid,
                             int templateID)

removeItems

public static java.util.List<OID> removeItems(OID mobOid,
                                              java.util.ArrayList<java.lang.Integer> templateNames)

findItem

public static OID findItem(OID mobOid,
                           int templateID)

findItems

public static java.util.List<OID> findItems(OID mobOid,
                                            java.util.ArrayList<java.lang.Integer> templateIDs)


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