zombie.inventory
Class InventoryItem
java.lang.Object
zombie.inventory.InventoryItem
- Direct Known Subclasses:
- Clothing, ComboItem, DrainableComboItem, Food, HandWeapon, InventoryContainer, Literature
public class InventoryItem
- extends java.lang.Object
- Author:
- LEMMY
Constructor Summary |
InventoryItem(java.lang.String module,
java.lang.String name,
java.lang.String type,
java.lang.String tex)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Cooked
public boolean Cooked
ReplaceOnUseOn
public java.lang.String ReplaceOnUseOn
col
public Color col
IsWaterSource
public boolean IsWaterSource
CanStoreWater
public boolean CanStoreWater
CanStack
public boolean CanStack
fatigueChange
public float fatigueChange
worldItem
public IsoWorldInventoryObject worldItem
jobDelta
public float jobDelta
jobType
public java.lang.String jobType
mainCategory
public java.lang.String mainCategory
CloseKillMove
public java.lang.String CloseKillMove
InventoryItem
public InventoryItem(java.lang.String module,
java.lang.String name,
java.lang.String type,
java.lang.String tex)
getWorldItem
public IsoWorldInventoryObject getWorldItem()
setWorldItem
public void setWorldItem(IsoWorldInventoryObject w)
setJobDelta
public void setJobDelta(float delta)
getJobDelta
public float getJobDelta()
setJobType
public void setJobType(java.lang.String type)
getJobType
public java.lang.String getJobType()
getModData
public se.krka.kahlua.vm.KahluaTable getModData()
getR
public float getR()
getG
public float getG()
getB
public float getB()
getType
public java.lang.String getType()
getTex
public Texture getTex()
getCategory
public java.lang.String getCategory()
IsRotten
public boolean IsRotten()
HowRotten
public float HowRotten()
CanStack
public boolean CanStack(InventoryItem item)
ModDataMatches
public boolean ModDataMatches(InventoryItem item)
DoTooltip
public void DoTooltip(ObjectTooltip tooltipUI)
SetContainerPosition
public void SetContainerPosition(int x,
int y)
Use
public void Use()
UseItem
public void UseItem()
Use
public void Use(boolean bCrafting)
Use
public void Use(boolean bCrafting,
boolean bInContainer)
Use
public void Use(IsoGameCharacter useOn)
update
public void update()
finishupdate
public boolean finishupdate()
getFullType
public java.lang.String getFullType()
save
public void save(java.io.DataOutputStream output)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.io.DataInputStream input)
throws java.io.IOException
- Throws:
java.io.IOException
save
public void save(java.nio.ByteBuffer output)
throws java.io.IOException
- Throws:
java.io.IOException
load
public void load(java.nio.ByteBuffer input)
throws java.io.IOException
- Throws:
java.io.IOException
IsFood
public boolean IsFood()
IsWeapon
public boolean IsWeapon()
IsDrainable
public boolean IsDrainable()
IsLiterature
public boolean IsLiterature()
IsClothing
public boolean IsClothing()
getScore
public float getScore(SurvivorDesc desc)
getPreviousOwner
public IsoGameCharacter getPreviousOwner()
- Returns:
- the previousOwner
setPreviousOwner
public void setPreviousOwner(IsoGameCharacter previousOwner)
- Parameters:
previousOwner
- the previousOwner to set
getScriptItem
public Item getScriptItem()
- Returns:
- the ScriptItem
setScriptItem
public void setScriptItem(Item ScriptItem)
- Parameters:
ScriptItem
- the ScriptItem to set
getCat
public ItemType getCat()
- Returns:
- the cat
setCat
public void setCat(ItemType cat)
- Parameters:
cat
- the cat to set
getConsumeMenu
public java.lang.String getConsumeMenu()
- Returns:
- the consumeMenu
setConsumeMenu
public void setConsumeMenu(java.lang.String consumeMenu)
- Parameters:
consumeMenu
- the consumeMenu to set
getContainer
public ItemContainer getContainer()
- Returns:
- the container
setContainer
public void setContainer(ItemContainer container)
- Parameters:
container
- the container to set
getContainerX
public int getContainerX()
- Returns:
- the containerX
setContainerX
public void setContainerX(int containerX)
- Parameters:
containerX
- the containerX to set
getContainerY
public int getContainerY()
- Returns:
- the containerY
setContainerY
public void setContainerY(int containerY)
- Parameters:
containerY
- the containerY to set
isDisappearOnUse
public boolean isDisappearOnUse()
- Returns:
- the DisappearOnUse
setDisappearOnUse
public void setDisappearOnUse(boolean DisappearOnUse)
- Parameters:
DisappearOnUse
- the DisappearOnUse to set
getName
public java.lang.String getName()
- Returns:
- the name
setName
public void setName(java.lang.String name)
- Parameters:
name
- the name to set
getReplaceOnUse
public java.lang.String getReplaceOnUse()
- Returns:
- the replaceOnUse
setReplaceOnUse
public void setReplaceOnUse(java.lang.String replaceOnUse)
- Parameters:
replaceOnUse
- the replaceOnUse to set
getConditionMax
public int getConditionMax()
- Returns:
- the ConditionMax
setConditionMax
public void setConditionMax(int ConditionMax)
- Parameters:
ConditionMax
- the ConditionMax to set
getRightClickContainer
public ItemContainer getRightClickContainer()
- Returns:
- the rightClickContainer
setRightClickContainer
public void setRightClickContainer(ItemContainer rightClickContainer)
- Parameters:
rightClickContainer
- the rightClickContainer to set
getSwingAnim
public java.lang.String getSwingAnim()
- Returns:
- the swingAnim
setSwingAnim
public void setSwingAnim(java.lang.String swingAnim)
- Parameters:
swingAnim
- the swingAnim to set
getTexture
public Texture getTexture()
- Returns:
- the texture
setTexture
public void setTexture(Texture texture)
- Parameters:
texture
- the texture to set
getTexturerotten
public Texture getTexturerotten()
- Returns:
- the texturerotten
setTexturerotten
public void setTexturerotten(Texture texturerotten)
- Parameters:
texturerotten
- the texturerotten to set
getTextureCooked
public Texture getTextureCooked()
- Returns:
- the textureCooked
setTextureCooked
public void setTextureCooked(Texture textureCooked)
- Parameters:
textureCooked
- the textureCooked to set
getTextureBurnt
public Texture getTextureBurnt()
- Returns:
- the textureBurnt
setTextureBurnt
public void setTextureBurnt(Texture textureBurnt)
- Parameters:
textureBurnt
- the textureBurnt to set
setType
public void setType(java.lang.String type)
- Parameters:
type
- the type to set
getUses
public int getUses()
- Returns:
- the uses
setUses
public void setUses(int uses)
- Parameters:
uses
- the uses to set
getAge
public float getAge()
- Returns:
- the Age
setAge
public void setAge(float Age)
- Parameters:
Age
- the Age to set
setAutoAge
public void setAutoAge()
isIsCookable
public boolean isIsCookable()
- Returns:
- the IsCookable
setIsCookable
public void setIsCookable(boolean IsCookable)
- Parameters:
IsCookable
- the IsCookable to set
getCookingTime
public float getCookingTime()
- Returns:
- the CookingTime
setCookingTime
public void setCookingTime(float CookingTime)
- Parameters:
CookingTime
- the CookingTime to set
getMinutesToCook
public float getMinutesToCook()
- Returns:
- the MinutesToCook
setMinutesToCook
public void setMinutesToCook(float MinutesToCook)
- Parameters:
MinutesToCook
- the MinutesToCook to set
getMinutesToBurn
public float getMinutesToBurn()
- Returns:
- the MinutesToBurn
setMinutesToBurn
public void setMinutesToBurn(float MinutesToBurn)
- Parameters:
MinutesToBurn
- the MinutesToBurn to set
isCooked
public boolean isCooked()
- Returns:
- the Cooked
setCooked
public void setCooked(boolean Cooked)
- Parameters:
Cooked
- the Cooked to set
isBurnt
public boolean isBurnt()
- Returns:
- the Burnt
setBurnt
public void setBurnt(boolean Burnt)
- Parameters:
Burnt
- the Burnt to set
getOffAge
public int getOffAge()
- Returns:
- the OffAge
setOffAge
public void setOffAge(int OffAge)
- Parameters:
OffAge
- the OffAge to set
getOffAgeMax
public int getOffAgeMax()
- Returns:
- the OffAgeMax
setOffAgeMax
public void setOffAgeMax(int OffAgeMax)
- Parameters:
OffAgeMax
- the OffAgeMax to set
getWeight
public float getWeight()
- Returns:
- the Weight
setWeight
public void setWeight(float Weight)
- Parameters:
Weight
- the Weight to set
getActualWeight
public float getActualWeight()
- Returns:
- the ActualWeight
setActualWeight
public void setActualWeight(float ActualWeight)
- Parameters:
ActualWeight
- the ActualWeight to set
getWorldTexture
public java.lang.String getWorldTexture()
- Returns:
- the WorldTexture
setWorldTexture
public void setWorldTexture(java.lang.String WorldTexture)
- Parameters:
WorldTexture
- the WorldTexture to set
getDescription
public java.lang.String getDescription()
- Returns:
- the Description
setDescription
public void setDescription(java.lang.String Description)
- Parameters:
Description
- the Description to set
getCondition
public int getCondition()
- Returns:
- the Condition
setCondition
public void setCondition(int Condition)
- Parameters:
Condition
- the Condition to set
getOffString
public java.lang.String getOffString()
- Returns:
- the OffString
setOffString
public void setOffString(java.lang.String OffString)
- Parameters:
OffString
- the OffString to set
getCookedString
public java.lang.String getCookedString()
- Returns:
- the CookedString
setCookedString
public void setCookedString(java.lang.String CookedString)
- Parameters:
CookedString
- the CookedString to set
getUnCookedString
public java.lang.String getUnCookedString()
- Returns:
- the UnCookedString
setUnCookedString
public void setUnCookedString(java.lang.String UnCookedString)
- Parameters:
UnCookedString
- the UnCookedString to set
getBurntString
public java.lang.String getBurntString()
- Returns:
- the BurntString
setBurntString
public void setBurntString(java.lang.String BurntString)
- Parameters:
BurntString
- the BurntString to set
getModule
public java.lang.String getModule()
- Returns:
- the module
setModule
public void setModule(java.lang.String module)
- Parameters:
module
- the module to set
isAlwaysWelcomeGift
public boolean isAlwaysWelcomeGift()
- Returns:
- the AlwaysWelcomeGift
setAlwaysWelcomeGift
public void setAlwaysWelcomeGift(boolean AlwaysWelcomeGift)
- Parameters:
AlwaysWelcomeGift
- the AlwaysWelcomeGift to set
isCanBandage
public boolean isCanBandage()
- Returns:
- the CanBandage
setCanBandage
public void setCanBandage(boolean CanBandage)
- Parameters:
CanBandage
- the CanBandage to set
getBoredomChange
public float getBoredomChange()
- Returns:
- the boredomChange
setBoredomChange
public void setBoredomChange(float boredomChange)
- Parameters:
boredomChange
- the boredomChange to set
getUnhappyChange
public float getUnhappyChange()
- Returns:
- the unhappyChange
setUnhappyChange
public void setUnhappyChange(float unhappyChange)
- Parameters:
unhappyChange
- the unhappyChange to set
getStressChange
public float getStressChange()
- Returns:
- the stressChange
setStressChange
public void setStressChange(float stressChange)
- Parameters:
stressChange
- the stressChange to set
getTaken
public java.util.ArrayList<IsoObject> getTaken()
- Returns:
- the Taken
setTaken
public void setTaken(java.util.ArrayList<IsoObject> Taken)
- Parameters:
Taken
- the Taken to set
getPlaceDir
public IsoDirections getPlaceDir()
- Returns:
- the placeDir
setPlaceDir
public void setPlaceDir(IsoDirections placeDir)
- Parameters:
placeDir
- the placeDir to set
getNewPlaceDir
public IsoDirections getNewPlaceDir()
- Returns:
- the newPlaceDir
setNewPlaceDir
public void setNewPlaceDir(IsoDirections newPlaceDir)
- Parameters:
newPlaceDir
- the newPlaceDir to set
setReplaceOnUseOn
public void setReplaceOnUseOn(java.lang.String ReplaceOnUseOn)
getReplaceOnUseOn
public java.lang.String getReplaceOnUseOn()
setIsWaterSource
public void setIsWaterSource(boolean IsWaterSource)
isWaterSource
public boolean isWaterSource()
- Returns:
- the IsWaterSource
CopyModData
public void CopyModData(se.krka.kahlua.vm.KahluaTable DefaultModData)
getCount
public int getCount()
setCount
public void setCount(int count)
isActivated
public boolean isActivated()
setActivated
public void setActivated(boolean activated)
setCanBeActivated
public void setCanBeActivated(boolean activatedItem)
canBeActivated
public boolean canBeActivated()
setLightStrength
public void setLightStrength(float lightStrength)
getLightStrength
public float getLightStrength()
isTorchCone
public boolean isTorchCone()
setTorchCone
public void setTorchCone(boolean isTorchCone)
getLightDistance
public int getLightDistance()
setLightDistance
public void setLightDistance(int lightDistance)
canStoreWater
public boolean canStoreWater()
getFatigueChange
public float getFatigueChange()
setFatigueChange
public void setFatigueChange(float fatigueChange)
getCurrentCondition
public float getCurrentCondition()
- Return the real condition of the weapon, based on this calcul : Condition/ConditionMax * 100
- Returns:
- float