Class ItemContainer

java.lang.Object
zombie.inventory.ItemContainer

public class ItemContainer
extends java.lang.Object
  • Field Details

    • active

      public boolean active
    • dirty

      public boolean dirty
    • IsDevice

      public boolean IsDevice
    • ageFactor

      public float ageFactor
    • CookingFactor

      public float CookingFactor
    • Capacity

      public int Capacity
    • containingItem

      public InventoryItem containingItem
    • Items

      public java.util.ArrayList Items
    • IncludingObsoleteItems

      public java.util.ArrayList IncludingObsoleteItems
    • parent

      public IsoObject parent
    • SourceGrid

      public IsoGridSquare SourceGrid
    • inventoryContainer

      public InventoryContainer inventoryContainer
    • bExplored

      public boolean bExplored
    • type

      public java.lang.String type
    • ID

      public int ID
  • Constructor Details

    • ItemContainer

      public ItemContainer​(int ID, java.lang.String containerName, IsoGridSquare square, IsoObject parent, int wid, int hei)
    • ItemContainer

      public ItemContainer​(java.lang.String containerName, IsoGridSquare square, IsoObject parent, int wid, int hei)
    • ItemContainer

      public ItemContainer​(int ID)
    • ItemContainer

      public ItemContainer()
  • Method Details

    • getCapacity

      public int getCapacity()
    • FindAndReturnWaterItem

      public InventoryItem FindAndReturnWaterItem​(int uses)
    • getEffectiveCapacity

      public int getEffectiveCapacity​(IsoGameCharacter chr)
    • setExplored

      public void setExplored​(boolean b)
    • hasRoomFor

      public boolean hasRoomFor​(IsoGameCharacter chr, InventoryItem item)
    • hasRoomFor

      public boolean hasRoomFor​(IsoGameCharacter chr, float weightVal)
    • isExplored

      public boolean isExplored()
    • isInCharacterInventory

      public boolean isInCharacterInventory​(IsoGameCharacter chr)
    • isInside

      public boolean isInside​(InventoryItem item)
    • getContainingItem

      public InventoryItem getContainingItem()
    • DoAddItem

      public InventoryItem DoAddItem​(InventoryItem item)
    • DoAddItemBlind

      public InventoryItem DoAddItemBlind​(InventoryItem item)
    • AddItems

      public java.util.ArrayList AddItems​(java.lang.String item, int use)
    • AddItems

      public void AddItems​(InventoryItem item, int use)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String findItem, boolean includeReplaceOnDeplete)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String findItem)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String findItem, boolean includeReplaceOnDeplete, java.util.ArrayList containers)
    • getNumberOfItem

      public int getNumberOfItem​(java.lang.String findItem, boolean includeReplaceOnDeplete, boolean insideInv)
    • addItem

      public InventoryItem addItem​(InventoryItem item)
    • AddItem

      public InventoryItem AddItem​(InventoryItem item)
    • AddItemBlind

      public InventoryItem AddItemBlind​(InventoryItem item)
    • AddItem

      public InventoryItem AddItem​(java.lang.String type)
    • AddItem

      public boolean AddItem​(java.lang.String type, float useDelta)
    • contains

      public boolean contains​(InventoryItem item)
    • containsWithModule

      public boolean containsWithModule​(java.lang.String moduleType)
    • containsWithModule

      public boolean containsWithModule​(java.lang.String moduleType, boolean withDeltaLeft)
    • removeItemOnServer

      public void removeItemOnServer​(InventoryItem item)
    • addItemOnServer

      public void addItemOnServer​(InventoryItem item)
    • contains

      public boolean contains​(InventoryItem itemToFind, boolean doInv)
    • contains

      public boolean contains​(java.lang.String type, boolean doInv)
    • contains

      public boolean contains​(java.lang.String type)
    • getBestCondition

      public InventoryItem getBestCondition​(java.lang.String String)
    • FindAndReturnCategory

      public InventoryItem FindAndReturnCategory​(java.lang.String category)
    • FindAndReturn

      public java.util.ArrayList FindAndReturn​(java.lang.String String, int count)
    • FindAndReturn

      public InventoryItem FindAndReturn​(java.lang.String String, java.util.ArrayList itemToCheck)
    • FindAndReturn

      public InventoryItem FindAndReturn​(java.lang.String String)
    • FindAll

      public java.util.ArrayList FindAll​(java.lang.String itemType)
    • FindAndReturnStack

      public InventoryItem FindAndReturnStack​(java.lang.String String)
    • FindAndReturnStack

      public InventoryItem FindAndReturnStack​(InventoryItem itemlike)
    • HasType

      public boolean HasType​(ItemType itemType)
    • Remove

      public void Remove​(InventoryItem item)
    • DoRemoveItem

      public void DoRemoveItem​(InventoryItem item)
    • Remove

      public void Remove​(java.lang.String itemTypes)
    • Remove

      public InventoryItem Remove​(ItemType itemType)
    • Find

      public InventoryItem Find​(ItemType itemType)
    • RemoveAll

      public void RemoveAll​(java.lang.String itemType)
    • RemoveOneOf

      public boolean RemoveOneOf​(java.lang.String String, boolean insideInv)
    • RemoveOneOf

      public void RemoveOneOf​(java.lang.String String)
    • getWeight

      public int getWeight()
    • getContentsWeight

      public float getContentsWeight()
    • getMaxWeight

      public float getMaxWeight()
    • getCapacityWeight

      public float getCapacityWeight()
    • isPowered

      public boolean isPowered()
    • getTemprature

      public float getTemprature()
    • isTemperatureChanging

      public boolean isTemperatureChanging()
    • save

      public void save​(java.nio.ByteBuffer output, boolean net) throws java.io.IOException
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer input, int WorldVersion, boolean net) throws java.io.IOException
      Throws:
      java.io.IOException
    • isDrawDirty

      public boolean isDrawDirty()
    • setDrawDirty

      public void setDrawDirty​(boolean b)
    • getBestWeapon

      public InventoryItem getBestWeapon​(SurvivorDesc desc)
    • getBestWeapon

      public InventoryItem getBestWeapon()
    • getTotalFoodScore

      public float getTotalFoodScore​(SurvivorDesc desc)
    • getTotalWeaponScore

      public float getTotalWeaponScore​(SurvivorDesc desc)
    • getBestFood

      public InventoryItem getBestFood​(SurvivorDesc descriptor)
    • getBestBandage

      public InventoryItem getBestBandage​(SurvivorDesc descriptor)
    • getNumItems

      public int getNumItems​(java.lang.String item)
    • isActive

      public boolean isActive()
    • setActive

      public void setActive​(boolean active)
    • isDirty

      public boolean isDirty()
    • setDirty

      public void setDirty​(boolean dirty)
    • isIsDevice

      public boolean isIsDevice()
    • setIsDevice

      public void setIsDevice​(boolean IsDevice)
    • getAgeFactor

      public float getAgeFactor()
    • setAgeFactor

      public void setAgeFactor​(float ageFactor)
    • getCookingFactor

      public float getCookingFactor()
    • setCookingFactor

      public void setCookingFactor​(float CookingFactor)
    • getItems

      public java.util.ArrayList getItems()
    • setItems

      public void setItems​(java.util.ArrayList Items)
    • getParent

      public IsoObject getParent()
    • setParent

      public void setParent​(IsoObject parent)
    • getSourceGrid

      public IsoGridSquare getSourceGrid()
    • setSourceGrid

      public void setSourceGrid​(IsoGridSquare SourceGrid)
    • getType

      public java.lang.String getType()
    • setType

      public void setType​(java.lang.String type)
    • clear

      public void clear()
    • getWaterContainerCount

      public int getWaterContainerCount()
    • FindWaterSource

      public InventoryItem FindWaterSource()
    • getAllWaterFillables

      public java.util.ArrayList getAllWaterFillables()
    • getItemCount

      public int getItemCount​(java.lang.String type)
    • getItemCount

      public int getItemCount​(java.lang.String type, boolean doBags)
    • setWeightReduction

      public void setWeightReduction​(int weightReduction)
    • getWeightReduction

      public int getWeightReduction()
    • doLoad

      public boolean doLoad()
    • doLoadActual

      public boolean doLoadActual() throws java.io.FileNotFoundException, java.io.IOException
      Throws:
      java.io.FileNotFoundException
      java.io.IOException
    • removeAllItems

      public void removeAllItems()
    • setCustomTemperature

      public void setCustomTemperature​(float newTemp)
    • getCustomTemperature

      public float getCustomTemperature()
    • getItemFromType

      public InventoryItem getItemFromType​(java.lang.String type, IsoGameCharacter chr, boolean notEquipped)
    • getItemFromType

      public InventoryItem getItemFromType​(java.lang.String type)
    • getItemsFromType

      public java.util.ArrayList getItemsFromType​(java.lang.String type)
    • getItemsFromFullType

      public java.util.ArrayList getItemsFromFullType​(java.lang.String type)
    • getItemsFromFullType

      public java.util.ArrayList getItemsFromFullType​(java.lang.String type, boolean includeInv)
    • getItemsFromType

      public java.util.ArrayList getItemsFromType​(java.lang.String type, boolean includeInv)
    • getItemsFromCategory

      public java.util.ArrayList getItemsFromCategory​(java.lang.String category)
    • sendContentsToRemoteContainer

      public void sendContentsToRemoteContainer()
    • requestServerItemsForContainer

      public void requestServerItemsForContainer()
    • sendContentsToRemoteContainer

      @Deprecated public void sendContentsToRemoteContainer​(UdpConnection connection)
      Deprecated.
    • getItemWithID

      public InventoryItem getItemWithID​(long id)
    • removeItemWithID

      public boolean removeItemWithID​(long id)
    • containsID

      public boolean containsID​(long id)
    • removeItemWithIDRecurse

      public boolean removeItemWithIDRecurse​(long id)
    • isHasBeenLooted

      public boolean isHasBeenLooted()
    • setHasBeenLooted

      public void setHasBeenLooted​(boolean hasBeenLooted)
    • getOpenSound

      public java.lang.String getOpenSound()
    • setOpenSound

      public void setOpenSound​(java.lang.String openSound)
    • getCloseSound

      public java.lang.String getCloseSound()
    • setCloseSound

      public void setCloseSound​(java.lang.String closeSound)
    • getPutSound

      public java.lang.String getPutSound()
    • setPutSound

      public void setPutSound​(java.lang.String putSound)
    • haveThisKeyId

      public InventoryItem haveThisKeyId​(int keyId)
    • getOnlyAcceptCategory

      public java.lang.String getOnlyAcceptCategory()
    • setOnlyAcceptCategory

      public void setOnlyAcceptCategory​(java.lang.String onlyAcceptCategory)
    • getCharacter

      public IsoGameCharacter getCharacter()
    • emptyIt

      public void emptyIt()
    • getAllItems

      public java.util.LinkedHashMap getAllItems​(java.util.LinkedHashMap items, boolean inInv)
    • getItemById

      public InventoryItem getItemById​(long id)
    • floatingPointCorrection

      public float floatingPointCorrection​(float val)
    • addItemsToProcessItems

      public void addItemsToProcessItems()
    • removeItemsFromProcessItems

      public void removeItemsFromProcessItems()