Package zombie.inventory
Class ItemContainer
java.lang.Object
zombie.inventory.ItemContainer
public class ItemContainer
extends java.lang.Object
-
Field Summary
Fields Modifier and Type Field Description boolean
active
float
ageFactor
boolean
bExplored
int
Capacity
InventoryItem
containingItem
float
CookingFactor
boolean
dirty
int
ID
java.util.ArrayList
IncludingObsoleteItems
InventoryContainer
inventoryContainer
boolean
IsDevice
java.util.ArrayList
Items
IsoObject
parent
IsoGridSquare
SourceGrid
java.lang.String
type
VehiclePart
vehiclePart
-
Constructor Summary
Constructors Constructor Description ItemContainer()
ItemContainer(int int1)
ItemContainer(int int1, java.lang.String string, IsoGridSquare square, IsoObject object, int int2, int int3)
ItemContainer(java.lang.String string, IsoGridSquare square, IsoObject object, int int1, int int2)
-
Method Summary
Modifier and Type Method Description InventoryItem
addItem(InventoryItem inventoryItem)
InventoryItem
AddItem(java.lang.String string)
boolean
AddItem(java.lang.String string, float float1)
InventoryItem
AddItem(InventoryItem inventoryItem)
InventoryItem
AddItemBlind(InventoryItem inventoryItem)
void
addItemOnServer(InventoryItem inventoryItem)
java.util.ArrayList
AddItems(java.lang.String string, int int1)
void
AddItems(InventoryItem inventoryItem, int int1)
void
addItemsToProcessItems()
void
clear()
boolean
contains(java.lang.String string)
boolean
contains(java.lang.String string, boolean boolean1)
boolean
contains(java.lang.String string, boolean boolean1, boolean boolean2)
boolean
contains(InventoryItem inventoryItem)
boolean
contains(InventoryItem inventoryItem, boolean boolean1)
boolean
containsID(long long1)
boolean
containsWithModule(java.lang.String string)
boolean
containsWithModule(java.lang.String string, boolean boolean1)
InventoryItem
DoAddItem(InventoryItem inventoryItem)
InventoryItem
DoAddItemBlind(InventoryItem inventoryItem)
boolean
doLoad()
boolean
doLoadActual()
void
DoRemoveItem(InventoryItem inventoryItem)
void
emptyIt()
InventoryItem
Find(ItemType itemType)
java.util.ArrayList
FindAll(java.lang.String string)
InventoryItem
FindAndReturn(java.lang.String string)
java.util.ArrayList
FindAndReturn(java.lang.String string, int int1)
InventoryItem
FindAndReturn(java.lang.String string, java.util.ArrayList arrayList)
InventoryItem
FindAndReturnCategory(java.lang.String string)
InventoryItem
FindAndReturnStack(java.lang.String string)
InventoryItem
FindAndReturnStack(InventoryItem inventoryItem)
InventoryItem
FindAndReturnWaterItem(int int1)
InventoryItem
FindWaterSource()
static float
floatingPointCorrection(float float1)
float
getAgeFactor()
java.util.LinkedHashMap
getAllItems(java.util.LinkedHashMap linkedHashMap, boolean boolean1)
java.util.ArrayList
getAllWaterFillables()
InventoryItem
getBestBandage(SurvivorDesc survivorDesc)
InventoryItem
getBestCondition(java.lang.String string)
InventoryItem
getBestFood(SurvivorDesc survivorDesc)
InventoryItem
getBestWeapon()
InventoryItem
getBestWeapon(SurvivorDesc survivorDesc)
int
getCapacity()
float
getCapacityWeight()
IsoGameCharacter
getCharacter()
java.lang.String
getCloseSound()
InventoryItem
getContainingItem()
float
getContentsWeight()
float
getCookingFactor()
float
getCustomTemperature()
int
getEffectiveCapacity(IsoGameCharacter gameCharacter)
InventoryItem
getItemById(long long1)
int
getItemCount(java.lang.String string)
int
getItemCount(java.lang.String string, boolean boolean1)
InventoryItem
getItemFromType(java.lang.String string)
InventoryItem
getItemFromType(java.lang.String string, boolean boolean1, boolean boolean2)
InventoryItem
getItemFromType(java.lang.String string, IsoGameCharacter gameCharacter, boolean boolean1, boolean boolean2, boolean boolean3)
java.util.ArrayList
getItems()
java.util.LinkedHashMap
getItems4Admin()
java.util.ArrayList
getItemsFromCategory(java.lang.String string)
java.util.ArrayList
getItemsFromFullType(java.lang.String string)
java.util.ArrayList
getItemsFromFullType(java.lang.String string, boolean boolean1)
java.util.ArrayList
getItemsFromType(java.lang.String string)
java.util.ArrayList
getItemsFromType(java.lang.String string, boolean boolean1)
InventoryItem
getItemWithID(long long1)
InventoryItem
getItemWithIDRecursiv(long long1)
float
getMaxWeight()
int
getNumberOfItem(java.lang.String string)
int
getNumberOfItem(java.lang.String string, boolean boolean1)
int
getNumberOfItem(java.lang.String string, boolean boolean1, boolean boolean2)
int
getNumberOfItem(java.lang.String string, boolean boolean1, java.util.ArrayList arrayList)
int
getNumItems(java.lang.String string)
java.lang.String
getOnlyAcceptCategory()
java.lang.String
getOpenSound()
IsoObject
getParent()
java.lang.String
getPutSound()
IsoGridSquare
getSourceGrid()
float
getTemprature()
float
getTotalFoodScore(SurvivorDesc survivorDesc)
float
getTotalWeaponScore(SurvivorDesc survivorDesc)
java.lang.String
getType()
int
getWaterContainerCount()
int
getWeight()
int
getWeightReduction()
boolean
hasRoomFor(IsoGameCharacter gameCharacter, float float1)
boolean
hasRoomFor(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
boolean
HasType(ItemType itemType)
InventoryItem
haveThisKeyId(int int1)
boolean
isActive()
boolean
isDirty()
boolean
isDrawDirty()
boolean
isEmpty()
boolean
isExistYet()
boolean
isExplored()
boolean
isHasBeenLooted()
boolean
isInCharacterInventory(IsoGameCharacter gameCharacter)
boolean
isInside(InventoryItem inventoryItem)
boolean
isIsDevice()
boolean
isPowered()
boolean
isTemperatureChanging()
java.util.ArrayList
load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1)
void
Remove(java.lang.String string)
void
Remove(InventoryItem inventoryItem)
InventoryItem
Remove(ItemType itemType)
void
RemoveAll(java.lang.String string)
void
removeAllItems()
void
removeItemOnServer(InventoryItem inventoryItem)
void
removeItemsFromProcessItems()
boolean
removeItemWithID(long long1)
boolean
removeItemWithIDRecurse(long long1)
void
RemoveOneOf(java.lang.String string)
boolean
RemoveOneOf(java.lang.String string, boolean boolean1)
void
requestServerItemsForContainer()
void
requestSync()
java.util.ArrayList
save(java.nio.ByteBuffer byteBuffer, boolean boolean1)
java.util.ArrayList
save(java.nio.ByteBuffer byteBuffer, boolean boolean1, IsoGameCharacter gameCharacter)
void
sendContentsToRemoteContainer()
void
sendContentsToRemoteContainer(UdpConnection udpConnection)
Deprecated.void
setActive(boolean boolean1)
void
setAgeFactor(float float1)
void
setCloseSound(java.lang.String string)
void
setCookingFactor(float float1)
void
setCustomTemperature(float float1)
void
setDirty(boolean boolean1)
void
setDrawDirty(boolean boolean1)
void
setExplored(boolean boolean1)
void
setHasBeenLooted(boolean boolean1)
void
setIsDevice(boolean boolean1)
void
setItems(java.util.ArrayList arrayList)
void
setOnlyAcceptCategory(java.lang.String string)
void
setOpenSound(java.lang.String string)
void
setParent(IsoObject object)
void
setPutSound(java.lang.String string)
void
setSourceGrid(IsoGridSquare square)
void
setType(java.lang.String string)
void
setWeightReduction(int int1)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
Items
public java.util.ArrayList Items -
IncludingObsoleteItems
public java.util.ArrayList IncludingObsoleteItems -
parent
-
SourceGrid
-
vehiclePart
-
inventoryContainer
-
bExplored
public boolean bExplored -
type
public java.lang.String type -
ID
public int ID
-
-
Constructor Details
-
ItemContainer
public ItemContainer(int int1, java.lang.String string, IsoGridSquare square, IsoObject object, int int2, int int3) -
ItemContainer
public ItemContainer(java.lang.String string, IsoGridSquare square, IsoObject object, int int1, int int2) -
ItemContainer
public ItemContainer(int int1) -
ItemContainer
public ItemContainer()
-
-
Method Details
-
getCapacity
public int getCapacity() -
FindAndReturnWaterItem
-
getEffectiveCapacity
-
setExplored
public void setExplored(boolean boolean1) -
hasRoomFor
-
hasRoomFor
-
isExplored
public boolean isExplored() -
isInCharacterInventory
-
isInside
-
getContainingItem
-
DoAddItem
-
DoAddItemBlind
-
AddItems
public java.util.ArrayList AddItems(java.lang.String string, int int1) -
AddItems
-
getNumberOfItem
public int getNumberOfItem(java.lang.String string, boolean boolean1) -
getNumberOfItem
public int getNumberOfItem(java.lang.String string) -
getNumberOfItem
public int getNumberOfItem(java.lang.String string, boolean boolean1, java.util.ArrayList arrayList) -
getNumberOfItem
public int getNumberOfItem(java.lang.String string, boolean boolean1, boolean boolean2) -
addItem
-
AddItem
-
AddItemBlind
-
AddItem
-
AddItem
public boolean AddItem(java.lang.String string, float float1) -
contains
-
containsWithModule
public boolean containsWithModule(java.lang.String string) -
containsWithModule
public boolean containsWithModule(java.lang.String string, boolean boolean1) -
removeItemOnServer
-
addItemOnServer
-
contains
-
contains
public boolean contains(java.lang.String string, boolean boolean1) -
contains
public boolean contains(java.lang.String string, boolean boolean1, boolean boolean2) -
contains
public boolean contains(java.lang.String string) -
getBestCondition
-
FindAndReturnCategory
-
FindAndReturn
public java.util.ArrayList FindAndReturn(java.lang.String string, int int1) -
FindAndReturn
-
FindAndReturn
-
FindAll
public java.util.ArrayList FindAll(java.lang.String string) -
FindAndReturnStack
-
FindAndReturnStack
-
HasType
-
Remove
-
DoRemoveItem
-
Remove
public void Remove(java.lang.String string) -
Remove
-
Find
-
RemoveAll
public void RemoveAll(java.lang.String string) -
RemoveOneOf
public boolean RemoveOneOf(java.lang.String string, boolean boolean1) -
RemoveOneOf
public void RemoveOneOf(java.lang.String string) -
getWeight
public int getWeight() -
getContentsWeight
public float getContentsWeight() -
getMaxWeight
public float getMaxWeight() -
getCapacityWeight
public float getCapacityWeight() -
isEmpty
public boolean isEmpty() -
isPowered
public boolean isPowered() -
getTemprature
public float getTemprature() -
isTemperatureChanging
public boolean isTemperatureChanging() -
save
public java.util.ArrayList save(java.nio.ByteBuffer byteBuffer, boolean boolean1, IsoGameCharacter gameCharacter) throws java.io.IOException- Throws:
java.io.IOException
-
save
public java.util.ArrayList save(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
load
public java.util.ArrayList load(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException- Throws:
java.io.IOException
-
isDrawDirty
public boolean isDrawDirty() -
setDrawDirty
public void setDrawDirty(boolean boolean1) -
getBestWeapon
-
getBestWeapon
-
getTotalFoodScore
-
getTotalWeaponScore
-
getBestFood
-
getBestBandage
-
getNumItems
public int getNumItems(java.lang.String string) -
isActive
public boolean isActive() -
setActive
public void setActive(boolean boolean1) -
isDirty
public boolean isDirty() -
setDirty
public void setDirty(boolean boolean1) -
isIsDevice
public boolean isIsDevice() -
setIsDevice
public void setIsDevice(boolean boolean1) -
getAgeFactor
public float getAgeFactor() -
setAgeFactor
public void setAgeFactor(float float1) -
getCookingFactor
public float getCookingFactor() -
setCookingFactor
public void setCookingFactor(float float1) -
getItems
public java.util.ArrayList getItems() -
setItems
public void setItems(java.util.ArrayList arrayList) -
getParent
-
setParent
-
getSourceGrid
-
setSourceGrid
-
getType
public java.lang.String getType() -
setType
public void setType(java.lang.String string) -
clear
public void clear() -
getWaterContainerCount
public int getWaterContainerCount() -
FindWaterSource
-
getAllWaterFillables
public java.util.ArrayList getAllWaterFillables() -
getItemCount
public int getItemCount(java.lang.String string) -
getItemCount
public int getItemCount(java.lang.String string, boolean boolean1) -
setWeightReduction
public void setWeightReduction(int int1) -
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 float1) -
getCustomTemperature
public float getCustomTemperature() -
getItemFromType
public InventoryItem getItemFromType(java.lang.String string, IsoGameCharacter gameCharacter, boolean boolean1, boolean boolean2, boolean boolean3) -
getItemFromType
-
getItemFromType
-
getItemsFromType
public java.util.ArrayList getItemsFromType(java.lang.String string) -
getItemsFromFullType
public java.util.ArrayList getItemsFromFullType(java.lang.String string) -
getItemsFromFullType
public java.util.ArrayList getItemsFromFullType(java.lang.String string, boolean boolean1) -
getItemsFromType
public java.util.ArrayList getItemsFromType(java.lang.String string, boolean boolean1) -
getItemsFromCategory
public java.util.ArrayList getItemsFromCategory(java.lang.String string) -
sendContentsToRemoteContainer
public void sendContentsToRemoteContainer() -
requestSync
public void requestSync() -
requestServerItemsForContainer
public void requestServerItemsForContainer() -
sendContentsToRemoteContainer
Deprecated. -
getItemWithIDRecursiv
-
getItemWithID
-
removeItemWithID
public boolean removeItemWithID(long long1) -
containsID
public boolean containsID(long long1) -
removeItemWithIDRecurse
public boolean removeItemWithIDRecurse(long long1) -
isHasBeenLooted
public boolean isHasBeenLooted() -
setHasBeenLooted
public void setHasBeenLooted(boolean boolean1) -
getOpenSound
public java.lang.String getOpenSound() -
setOpenSound
public void setOpenSound(java.lang.String string) -
getCloseSound
public java.lang.String getCloseSound() -
setCloseSound
public void setCloseSound(java.lang.String string) -
getPutSound
public java.lang.String getPutSound() -
setPutSound
public void setPutSound(java.lang.String string) -
haveThisKeyId
-
getOnlyAcceptCategory
public java.lang.String getOnlyAcceptCategory() -
setOnlyAcceptCategory
public void setOnlyAcceptCategory(java.lang.String string) -
getCharacter
-
emptyIt
public void emptyIt() -
getItems4Admin
public java.util.LinkedHashMap getItems4Admin() -
getAllItems
public java.util.LinkedHashMap getAllItems(java.util.LinkedHashMap linkedHashMap, boolean boolean1) -
getItemById
-
floatingPointCorrection
public static float floatingPointCorrection(float float1) -
addItemsToProcessItems
public void addItemsToProcessItems() -
removeItemsFromProcessItems
public void removeItemsFromProcessItems() -
isExistYet
public boolean isExistYet()
-