Package soc.qase.state

Examples of soc.qase.state.Inventory


@return item index count. */
/*-------------------------------------------------------------------*/
  protected int getInventoryItemCount(int itemIndex)
  {
    World world;
    Inventory inv;

    if(proxy == null || (world = proxy.getWorld()) == null || (inv = world.getInventory()) == null)
      return -1;

    return inv.getCount(itemIndex);
  }
View Full Code Here


null if the inventory does not exist. */
/*-------------------------------------------------------------------*/
  protected int[] getInventoryItemCount(int startItemIndex, int endItemIndex)
  {
    World world;
    Inventory inv;

    if(proxy == null || (world = proxy.getWorld()) == null || (inv = world.getInventory()) == null)
      return null;

    return inv.getCount(startItemIndex, endItemIndex);
  }
View Full Code Here

@return item count. */
/*-------------------------------------------------------------------*/
  protected int getInventoryItemCount(String item)
  {
    World world;
    Inventory inv;

    if(proxy == null || (world = proxy.getWorld()) == null || (inv = world.getInventory()) == null)
      return -1;

    return inv.getCount(item);
  }
View Full Code Here

/**  Constructor. Parses the data and extracts message details.
@param data message source. */
/*-------------------------------------------------------------------*/
  public ServerInventory(byte[] data, int off)
  {
    inventory = new Inventory();

    for(int i = 0; i < 256; i++)
      inventory.setCount(i, Utils.shortValue(data, off + (i * 2)));

    setLength(512);
 
View Full Code Here

TOP

Related Classes of soc.qase.state.Inventory

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.