zombie.inventory.types
Class HandWeapon

java.lang.Object
  extended by zombie.inventory.InventoryItem
      extended by zombie.inventory.types.HandWeapon

public class HandWeapon
extends InventoryItem

Author:
LEMMY

Field Summary
 float aimingMod
           
 boolean bIsAimedFirearm
           
 boolean bIsAimedHandWeapon
           
 float CriticalChance
           
 float HitAngleMod
           
 java.lang.String IdleAnim
           
 int ProjectileCount
           
 java.lang.String RunAnim
           
 float SplatSize
           
 
Fields inherited from class zombie.inventory.InventoryItem
CanStack, CanStoreWater, CloseKillMove, col, Cooked, fatigueChange, IsWaterSource, jobDelta, jobType, mainCategory, ReplaceOnUseOn, worldItem
 
Constructor Summary
HandWeapon(java.lang.String module, java.lang.String name, java.lang.String itemType, java.lang.String texName)
           
 
Method Summary
 boolean CanStack(InventoryItem item)
           
 void DoTooltip(ObjectTooltip tooltipUI)
           
 float getAimingMod()
           
 java.lang.String getAmmoType()
           
 java.lang.String getCategory()
           
 int getConditionLowerChance()
           
 float getCriticalChance()
           
 float getDamageMod(IsoGameCharacter chr)
           
 int getDoorDamage()
           
 java.lang.String getDoorHitSound()
           
 float getDoSwingBeforeImpact()
           
 float getEnduranceMod()
           
 float getFatigueMod(IsoGameCharacter chr)
           
 java.lang.String getImpactSound()
           
 float getKnockbackMod(IsoGameCharacter chr)
           
 float getKnockdownMod()
           
 float getMaxAngle()
           
 float getMaxDamage()
           
 int getMaxHitCount()
           
 float getMaxRange()
           
 float getMinAngle()
           
 float getMinDamage()
           
 float getMinimumSwingTime()
           
 float getMinRange()
           
 float getNoiseFactor()
           
 float getOtherBoost()
           
 java.lang.String getOtherHandRequire()
           
 java.lang.String getPhysicsObject()
           
 int getProjectileCount()
           
 float getPushBackMod()
           
 float getRangeMod(IsoGameCharacter chr)
           
 float getScore(SurvivorDesc desc)
           
 int getSoundRadius()
           
 int getSoundVolume()
           
 float getSpeedMod(IsoGameCharacter chr)
           
 int getSplatNumber()
           
 float getSplatSize()
           
 java.lang.String getSubCategory()
           
 java.lang.String getSwingSound()
           
 float getSwingTime()
           
 float getToHitMod(IsoGameCharacter chr)
           
 float getToHitModifier()
           
 java.lang.String getWeaponSprite()
           
 java.lang.String getZombieHitSound()
           
 boolean isAimed()
           
 boolean isAimedFirearm()
           
 boolean isAimedHandWeapon()
           
 boolean isAlwaysKnockdown()
           
 boolean isAngleFalloff()
           
 boolean isCanBarracade()
           
 boolean isCantAttackWithLowestEndurance()
           
 boolean isDirectional()
           
 boolean isKnockBackOnNoDeath()
           
 boolean isMultipleHitConditionAffected()
           
 boolean isOtherHandUse()
           
 boolean isRanged()
           
 boolean isRangeFalloff()
           
 boolean isShareDamage()
           
 boolean isShareEndurance()
           
 boolean isSplatBloodOnNoDeath()
           
 boolean isUseEndurance()
           
 boolean isUseSelf()
           
 void setAlwaysKnockdown(boolean AlwaysKnockdown)
           
 void setAmmoType(java.lang.String ammoType)
           
 void setAngleFalloff(boolean angleFalloff)
           
 void setCanBarracade(boolean bCanBarracade)
           
 void setCantAttackWithLowestEndurance(boolean CantAttackWithLowestEndurance)
           
 void setConditionLowerChance(int ConditionLowerChance)
           
 void setCriticalChance(float criticalChance)
           
 void setDirectional(boolean directional)
           
 void setDoorDamage(int DoorDamage)
           
 void setDoorHitSound(java.lang.String doorHitSound)
           
 void setDoSwingBeforeImpact(float doSwingBeforeImpact)
           
 void setEnduranceMod(float EnduranceMod)
           
 void setImpactSound(java.lang.String impactSound)
           
 void setKnockBackOnNoDeath(boolean knockBackOnNoDeath)
           
 void setKnockdownMod(float KnockdownMod)
           
 void setMaxAngle(float maxAngle)
           
 void setMaxDamage(float maxDamage)
           
 void setMaxHitCount(int maxHitCount)
           
 void setMaxRange(float maxRange)
           
 void setMinAngle(float minAngle)
           
 void setMinDamage(float minDamage)
           
 void setMinimumSwingTime(float minimumSwingTime)
           
 void setMinRange(float minRange)
           
 void setMultipleHitConditionAffected(boolean MultipleHitConditionAffected)
           
 void setNoiseFactor(float noiseFactor)
           
 void setOtherBoost(float otherBoost)
           
 void setOtherHandRequire(java.lang.String otherHandRequire)
           
 void setOtherHandUse(boolean otherHandUse)
           
 void setPhysicsObject(java.lang.String physicsObject)
           
 void setPushBackMod(float pushBackMod)
           
 void setRanged(boolean ranged)
           
 void setRangeFalloff(boolean rangeFalloff)
           
 void setShareDamage(boolean shareDamage)
           
 void setShareEndurance(boolean shareEndurance)
           
 void setSoundRadius(int soundRadius)
           
 void setSoundVolume(int soundVolume)
           
 void setSplatBloodOnNoDeath(boolean splatBloodOnNoDeath)
           
 void setSplatNumber(int splatNumber)
           
 void setSubCategory(java.lang.String subcategory)
           
 void setSwingSound(java.lang.String swingSound)
           
 void setSwingTime(float swingTime)
           
 void setToHitModifier(float toHitModifier)
           
 void setUseEndurance(boolean useEndurance)
           
 void setUseSelf(boolean useSelf)
           
 void setWeaponSprite(java.lang.String weaponSprite)
           
 void setZombieHitSound(java.lang.String hitSound)
           
 boolean TestCanBarracade(IsoGameCharacter owner)
           
 
Methods inherited from class zombie.inventory.InventoryItem
canBeActivated, canStoreWater, CopyModData, finishupdate, getActualWeight, getAge, getB, getBoredomChange, getBurntString, getCat, getCondition, getConditionMax, getConsumeMenu, getContainer, getContainerX, getContainerY, getCookedString, getCookingTime, getCount, getCurrentCondition, getDescription, getFatigueChange, getFullType, getG, getJobDelta, getJobType, getLightDistance, getLightStrength, getMinutesToBurn, getMinutesToCook, getModData, getModule, getName, getNewPlaceDir, getOffAge, getOffAgeMax, getOffString, getPlaceDir, getPreviousOwner, getR, getReplaceOnUse, getReplaceOnUseOn, getRightClickContainer, getScriptItem, getStressChange, getSwingAnim, getTaken, getTex, getTexture, getTextureBurnt, getTextureCooked, getTexturerotten, getType, getUnCookedString, getUnhappyChange, getUses, getWeight, getWorldItem, getWorldTexture, HowRotten, isActivated, isAlwaysWelcomeGift, isBurnt, isCanBandage, IsClothing, isCooked, isDisappearOnUse, IsDrainable, IsFood, isIsCookable, IsLiterature, IsRotten, isTorchCone, isWaterSource, IsWeapon, load, load, ModDataMatches, save, save, setActivated, setActualWeight, setAge, setAlwaysWelcomeGift, setAutoAge, setBoredomChange, setBurnt, setBurntString, setCanBandage, setCanBeActivated, setCat, setCondition, setConditionMax, setConsumeMenu, setContainer, SetContainerPosition, setContainerX, setContainerY, setCooked, setCookedString, setCookingTime, setCount, setDescription, setDisappearOnUse, setFatigueChange, setIsCookable, setIsWaterSource, setJobDelta, setJobType, setLightDistance, setLightStrength, setMinutesToBurn, setMinutesToCook, setModule, setName, setNewPlaceDir, setOffAge, setOffAgeMax, setOffString, setPlaceDir, setPreviousOwner, setReplaceOnUse, setReplaceOnUseOn, setRightClickContainer, setScriptItem, setStressChange, setSwingAnim, setTaken, setTexture, setTextureBurnt, setTextureCooked, setTexturerotten, setTorchCone, setType, setUnCookedString, setUnhappyChange, setUses, setWeight, setWorldItem, setWorldTexture, update, Use, Use, Use, Use, UseItem
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SplatSize

public float SplatSize

bIsAimedFirearm

public boolean bIsAimedFirearm

bIsAimedHandWeapon

public boolean bIsAimedHandWeapon

RunAnim

public java.lang.String RunAnim

IdleAnim

public java.lang.String IdleAnim

HitAngleMod

public float HitAngleMod

ProjectileCount

public int ProjectileCount

aimingMod

public float aimingMod

CriticalChance

public float CriticalChance
Constructor Detail

HandWeapon

public HandWeapon(java.lang.String module,
                  java.lang.String name,
                  java.lang.String itemType,
                  java.lang.String texName)
Method Detail

getSplatSize

public float getSplatSize()

CanStack

public boolean CanStack(InventoryItem item)
Overrides:
CanStack in class InventoryItem

getCategory

public java.lang.String getCategory()
Overrides:
getCategory in class InventoryItem

getScore

public float getScore(SurvivorDesc desc)
Overrides:
getScore in class InventoryItem

TestCanBarracade

public boolean TestCanBarracade(IsoGameCharacter owner)

DoTooltip

public void DoTooltip(ObjectTooltip tooltipUI)
Overrides:
DoTooltip in class InventoryItem

getDamageMod

public float getDamageMod(IsoGameCharacter chr)

getRangeMod

public float getRangeMod(IsoGameCharacter chr)

getFatigueMod

public float getFatigueMod(IsoGameCharacter chr)

getKnockbackMod

public float getKnockbackMod(IsoGameCharacter chr)

getSpeedMod

public float getSpeedMod(IsoGameCharacter chr)

getToHitMod

public float getToHitMod(IsoGameCharacter chr)

getAmmoType

public java.lang.String getAmmoType()
Returns:
the ammoType

setAmmoType

public void setAmmoType(java.lang.String ammoType)
Parameters:
ammoType - the ammoType to set

isAngleFalloff

public boolean isAngleFalloff()
Returns:
the angleFalloff

setAngleFalloff

public void setAngleFalloff(boolean angleFalloff)
Parameters:
angleFalloff - the angleFalloff to set

isCanBarracade

public boolean isCanBarracade()
Returns:
the bCanBarracade

setCanBarracade

public void setCanBarracade(boolean bCanBarracade)
Parameters:
bCanBarracade - the bCanBarracade to set

isDirectional

public boolean isDirectional()
Returns:
the directional

setDirectional

public void setDirectional(boolean directional)
Parameters:
directional - the directional to set

getDoSwingBeforeImpact

public float getDoSwingBeforeImpact()
Returns:
the doSwingBeforeImpact

setDoSwingBeforeImpact

public void setDoSwingBeforeImpact(float doSwingBeforeImpact)
Parameters:
doSwingBeforeImpact - the doSwingBeforeImpact to set

getImpactSound

public java.lang.String getImpactSound()
Returns:
the impactSound

setImpactSound

public void setImpactSound(java.lang.String impactSound)
Parameters:
impactSound - the impactSound to set

isKnockBackOnNoDeath

public boolean isKnockBackOnNoDeath()
Returns:
the knockBackOnNoDeath

setKnockBackOnNoDeath

public void setKnockBackOnNoDeath(boolean knockBackOnNoDeath)
Parameters:
knockBackOnNoDeath - the knockBackOnNoDeath to set

getMaxAngle

public float getMaxAngle()
Returns:
the maxAngle

setMaxAngle

public void setMaxAngle(float maxAngle)
Parameters:
maxAngle - the maxAngle to set

getMaxDamage

public float getMaxDamage()
Returns:
the maxDamage

setMaxDamage

public void setMaxDamage(float maxDamage)
Parameters:
maxDamage - the maxDamage to set

getMaxHitCount

public int getMaxHitCount()
Returns:
the maxHitCount

setMaxHitCount

public void setMaxHitCount(int maxHitCount)
Parameters:
maxHitCount - the maxHitCount to set

getMaxRange

public float getMaxRange()
Returns:
the maxRange

setMaxRange

public void setMaxRange(float maxRange)
Parameters:
maxRange - the maxRange to set

isRanged

public boolean isRanged()
Returns:
the ranged

setRanged

public void setRanged(boolean ranged)
Parameters:
ranged - the ranged to set

getMinAngle

public float getMinAngle()
Returns:
the minAngle

setMinAngle

public void setMinAngle(float minAngle)
Parameters:
minAngle - the minAngle to set

getMinDamage

public float getMinDamage()
Returns:
the minDamage

setMinDamage

public void setMinDamage(float minDamage)
Parameters:
minDamage - the minDamage to set

getMinimumSwingTime

public float getMinimumSwingTime()
Returns:
the minimumSwingTime

setMinimumSwingTime

public void setMinimumSwingTime(float minimumSwingTime)
Parameters:
minimumSwingTime - the minimumSwingTime to set

getMinRange

public float getMinRange()
Returns:
the minRange

setMinRange

public void setMinRange(float minRange)
Parameters:
minRange - the minRange to set

getNoiseFactor

public float getNoiseFactor()
Returns:
the noiseFactor

setNoiseFactor

public void setNoiseFactor(float noiseFactor)
Parameters:
noiseFactor - the noiseFactor to set

getOtherHandRequire

public java.lang.String getOtherHandRequire()
Returns:
the otherHandRequire

setOtherHandRequire

public void setOtherHandRequire(java.lang.String otherHandRequire)
Parameters:
otherHandRequire - the otherHandRequire to set

isOtherHandUse

public boolean isOtherHandUse()
Returns:
the otherHandUse

setOtherHandUse

public void setOtherHandUse(boolean otherHandUse)
Parameters:
otherHandUse - the otherHandUse to set

getPhysicsObject

public java.lang.String getPhysicsObject()
Returns:
the physicsObject

setPhysicsObject

public void setPhysicsObject(java.lang.String physicsObject)
Parameters:
physicsObject - the physicsObject to set

getPushBackMod

public float getPushBackMod()
Returns:
the pushBackMod

setPushBackMod

public void setPushBackMod(float pushBackMod)
Parameters:
pushBackMod - the pushBackMod to set

isRangeFalloff

public boolean isRangeFalloff()
Returns:
the rangeFalloff

setRangeFalloff

public void setRangeFalloff(boolean rangeFalloff)
Parameters:
rangeFalloff - the rangeFalloff to set

isShareDamage

public boolean isShareDamage()
Returns:
the shareDamage

setShareDamage

public void setShareDamage(boolean shareDamage)
Parameters:
shareDamage - the shareDamage to set

getSoundRadius

public int getSoundRadius()
Returns:
the soundRadius

setSoundRadius

public void setSoundRadius(int soundRadius)
Parameters:
soundRadius - the soundRadius to set

getSoundVolume

public int getSoundVolume()
Returns:
the soundVolume

setSoundVolume

public void setSoundVolume(int soundVolume)
Parameters:
soundVolume - the soundVolume to set

isSplatBloodOnNoDeath

public boolean isSplatBloodOnNoDeath()
Returns:
the splatBloodOnNoDeath

setSplatBloodOnNoDeath

public void setSplatBloodOnNoDeath(boolean splatBloodOnNoDeath)
Parameters:
splatBloodOnNoDeath - the splatBloodOnNoDeath to set

getSplatNumber

public int getSplatNumber()
Returns:
the splatNumber

setSplatNumber

public void setSplatNumber(int splatNumber)
Parameters:
splatNumber - the splatNumber to set

getSwingSound

public java.lang.String getSwingSound()
Returns:
the swingSound

setSwingSound

public void setSwingSound(java.lang.String swingSound)
Parameters:
swingSound - the swingSound to set

getSwingTime

public float getSwingTime()
Returns:
the swingTime

setSwingTime

public void setSwingTime(float swingTime)
Parameters:
swingTime - the swingTime to set

getToHitModifier

public float getToHitModifier()
Returns:
the toHitModifier

setToHitModifier

public void setToHitModifier(float toHitModifier)
Parameters:
toHitModifier - the toHitModifier to set

isUseEndurance

public boolean isUseEndurance()
Returns:
the useEndurance

setUseEndurance

public void setUseEndurance(boolean useEndurance)
Parameters:
useEndurance - the useEndurance to set

isUseSelf

public boolean isUseSelf()
Returns:
the useSelf

setUseSelf

public void setUseSelf(boolean useSelf)
Parameters:
useSelf - the useSelf to set

getWeaponSprite

public java.lang.String getWeaponSprite()
Returns:
the weaponSprite

setWeaponSprite

public void setWeaponSprite(java.lang.String weaponSprite)
Parameters:
weaponSprite - the weaponSprite to set

getOtherBoost

public float getOtherBoost()
Returns:
the otherBoost

setOtherBoost

public void setOtherBoost(float otherBoost)
Parameters:
otherBoost - the otherBoost to set

getDoorDamage

public int getDoorDamage()
Returns:
the DoorDamage

setDoorDamage

public void setDoorDamage(int DoorDamage)
Parameters:
DoorDamage - the DoorDamage to set

getDoorHitSound

public java.lang.String getDoorHitSound()
Returns:
the doorHitSound

setDoorHitSound

public void setDoorHitSound(java.lang.String doorHitSound)
Parameters:
doorHitSound - the doorHitSound to set

getConditionLowerChance

public int getConditionLowerChance()
Returns:
the ConditionLowerChance

setConditionLowerChance

public void setConditionLowerChance(int ConditionLowerChance)
Parameters:
ConditionLowerChance - the ConditionLowerChance to set

isMultipleHitConditionAffected

public boolean isMultipleHitConditionAffected()
Returns:
the MultipleHitConditionAffected

setMultipleHitConditionAffected

public void setMultipleHitConditionAffected(boolean MultipleHitConditionAffected)
Parameters:
MultipleHitConditionAffected - the MultipleHitConditionAffected to set

isShareEndurance

public boolean isShareEndurance()
Returns:
the shareEndurance

setShareEndurance

public void setShareEndurance(boolean shareEndurance)
Parameters:
shareEndurance - the shareEndurance to set

isAlwaysKnockdown

public boolean isAlwaysKnockdown()
Returns:
the AlwaysKnockdown

setAlwaysKnockdown

public void setAlwaysKnockdown(boolean AlwaysKnockdown)
Parameters:
AlwaysKnockdown - the AlwaysKnockdown to set

getEnduranceMod

public float getEnduranceMod()
Returns:
the EnduranceMod

setEnduranceMod

public void setEnduranceMod(float EnduranceMod)
Parameters:
EnduranceMod - the EnduranceMod to set

getKnockdownMod

public float getKnockdownMod()
Returns:
the KnockdownMod

setKnockdownMod

public void setKnockdownMod(float KnockdownMod)
Parameters:
KnockdownMod - the KnockdownMod to set

isCantAttackWithLowestEndurance

public boolean isCantAttackWithLowestEndurance()
Returns:
the CantAttackWithLowestEndurance

setCantAttackWithLowestEndurance

public void setCantAttackWithLowestEndurance(boolean CantAttackWithLowestEndurance)
Parameters:
CantAttackWithLowestEndurance - the CantAttackWithLowestEndurance to set

isAimedFirearm

public boolean isAimedFirearm()

isAimedHandWeapon

public boolean isAimedHandWeapon()

getProjectileCount

public int getProjectileCount()

getAimingMod

public float getAimingMod()

isAimed

public boolean isAimed()

setCriticalChance

public void setCriticalChance(float criticalChance)

getCriticalChance

public float getCriticalChance()

setSubCategory

public void setSubCategory(java.lang.String subcategory)

getSubCategory

public java.lang.String getSubCategory()

setZombieHitSound

public void setZombieHitSound(java.lang.String hitSound)

getZombieHitSound

public java.lang.String getZombieHitSound()