Class HandWeapon

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

public class HandWeapon
extends InventoryItem
  • Field Details

    • SplatSize

      public float SplatSize
    • ammoType

      protected java.lang.String ammoType
    • angleFalloff

      protected boolean angleFalloff
    • bCanBarracade

      protected boolean bCanBarracade
    • directional

      protected boolean directional
    • doSwingBeforeImpact

      protected float doSwingBeforeImpact
    • impactSound

      protected java.lang.String impactSound
    • knockBackOnNoDeath

      protected boolean knockBackOnNoDeath
    • maxAngle

      protected float maxAngle
    • maxDamage

      protected float maxDamage
    • maxHitCount

      protected int maxHitCount
    • maxRange

      protected float maxRange
    • ranged

      protected boolean ranged
    • minAngle

      protected float minAngle
    • minDamage

      protected float minDamage
    • minimumSwingTime

      protected float minimumSwingTime
    • minRange

      protected float minRange
    • noiseFactor

      protected float noiseFactor
    • otherHandRequire

      protected java.lang.String otherHandRequire
    • otherHandUse

      protected boolean otherHandUse
    • physicsObject

      protected java.lang.String physicsObject
    • pushBackMod

      protected float pushBackMod
    • rangeFalloff

      protected boolean rangeFalloff
    • shareDamage

      protected boolean shareDamage
    • soundRadius

      protected int soundRadius
    • soundVolume

      protected int soundVolume
    • splatBloodOnNoDeath

      protected boolean splatBloodOnNoDeath
    • splatNumber

      protected int splatNumber
    • swingSound

      protected java.lang.String swingSound
    • swingTime

      protected float swingTime
    • toHitModifier

      protected float toHitModifier
    • useEndurance

      protected boolean useEndurance
    • useSelf

      protected boolean useSelf
    • weaponSprite

      protected java.lang.String weaponSprite
    • otherBoost

      protected float otherBoost
    • DoorDamage

      protected int DoorDamage
    • doorHitSound

      protected java.lang.String doorHitSound
    • ConditionLowerChance

      protected int ConditionLowerChance
    • MultipleHitConditionAffected

      protected boolean MultipleHitConditionAffected
    • shareEndurance

      protected boolean shareEndurance
    • AlwaysKnockdown

      protected boolean AlwaysKnockdown
    • EnduranceMod

      protected float EnduranceMod
    • KnockdownMod

      protected float KnockdownMod
    • CantAttackWithLowestEndurance

      protected boolean CantAttackWithLowestEndurance
    • 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 Details

    • HandWeapon

      public HandWeapon​(java.lang.String string, java.lang.String string2, java.lang.String string3, java.lang.String string4)
    • HandWeapon

      public HandWeapon​(java.lang.String string, java.lang.String string2, java.lang.String string3, Item item)
  • Method Details

    • getSplatSize

      public float getSplatSize()
    • CanStack

      public boolean CanStack​(InventoryItem inventoryItem)
      Overrides:
      CanStack in class InventoryItem
    • getCategory

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

      public int getSaveType()
      Overrides:
      getSaveType in class InventoryItem
    • getScore

      public float getScore​(SurvivorDesc survivorDesc)
      Overrides:
      getScore in class InventoryItem
    • TestCanBarracade

      public boolean TestCanBarracade​(IsoGameCharacter gameCharacter)
    • DoTooltip

      public void DoTooltip​(ObjectTooltip objectTooltip, ObjectTooltip.Layout layout)
      Overrides:
      DoTooltip in class InventoryItem
    • getDamageMod

      public float getDamageMod​(IsoGameCharacter gameCharacter)
    • getRangeMod

      public float getRangeMod​(IsoGameCharacter gameCharacter)
    • getFatigueMod

      public float getFatigueMod​(IsoGameCharacter gameCharacter)
    • getKnockbackMod

      public float getKnockbackMod​(IsoGameCharacter gameCharacter)
    • getSpeedMod

      public float getSpeedMod​(IsoGameCharacter gameCharacter)
    • getToHitMod

      public float getToHitMod​(IsoGameCharacter gameCharacter)
    • getAmmoType

      public java.lang.String getAmmoType()
    • setAmmoType

      public void setAmmoType​(java.lang.String string)
    • isAngleFalloff

      public boolean isAngleFalloff()
    • setAngleFalloff

      public void setAngleFalloff​(boolean boolean1)
    • isCanBarracade

      public boolean isCanBarracade()
    • setCanBarracade

      public void setCanBarracade​(boolean boolean1)
    • isDirectional

      public boolean isDirectional()
    • setDirectional

      public void setDirectional​(boolean boolean1)
    • getDoSwingBeforeImpact

      public float getDoSwingBeforeImpact()
    • setDoSwingBeforeImpact

      public void setDoSwingBeforeImpact​(float float1)
    • getImpactSound

      public java.lang.String getImpactSound()
    • setImpactSound

      public void setImpactSound​(java.lang.String string)
    • isKnockBackOnNoDeath

      public boolean isKnockBackOnNoDeath()
    • setKnockBackOnNoDeath

      public void setKnockBackOnNoDeath​(boolean boolean1)
    • getMaxAngle

      public float getMaxAngle()
    • setMaxAngle

      public void setMaxAngle​(float float1)
    • getMaxDamage

      public float getMaxDamage()
    • setMaxDamage

      public void setMaxDamage​(float float1)
    • getMaxHitCount

      public int getMaxHitCount()
    • setMaxHitCount

      public void setMaxHitCount​(int int1)
    • getMaxRange

      public float getMaxRange()
    • getMaxRange

      public float getMaxRange​(IsoGameCharacter gameCharacter)
    • setMaxRange

      public void setMaxRange​(float float1)
    • isRanged

      public boolean isRanged()
    • setRanged

      public void setRanged​(boolean boolean1)
    • getMinAngle

      public float getMinAngle()
    • setMinAngle

      public void setMinAngle​(float float1)
    • getMinDamage

      public float getMinDamage()
    • setMinDamage

      public void setMinDamage​(float float1)
    • getMinimumSwingTime

      public float getMinimumSwingTime()
    • setMinimumSwingTime

      public void setMinimumSwingTime​(float float1)
    • getMinRange

      public float getMinRange()
    • setMinRange

      public void setMinRange​(float float1)
    • getNoiseFactor

      public float getNoiseFactor()
    • setNoiseFactor

      public void setNoiseFactor​(float float1)
    • getOtherHandRequire

      public java.lang.String getOtherHandRequire()
    • setOtherHandRequire

      public void setOtherHandRequire​(java.lang.String string)
    • isOtherHandUse

      public boolean isOtherHandUse()
    • setOtherHandUse

      public void setOtherHandUse​(boolean boolean1)
    • getPhysicsObject

      public java.lang.String getPhysicsObject()
    • setPhysicsObject

      public void setPhysicsObject​(java.lang.String string)
    • getPushBackMod

      public float getPushBackMod()
    • setPushBackMod

      public void setPushBackMod​(float float1)
    • isRangeFalloff

      public boolean isRangeFalloff()
    • setRangeFalloff

      public void setRangeFalloff​(boolean boolean1)
    • isShareDamage

      public boolean isShareDamage()
    • setShareDamage

      public void setShareDamage​(boolean boolean1)
    • getSoundRadius

      public int getSoundRadius()
    • setSoundRadius

      public void setSoundRadius​(int int1)
    • getSoundVolume

      public int getSoundVolume()
    • setSoundVolume

      public void setSoundVolume​(int int1)
    • isSplatBloodOnNoDeath

      public boolean isSplatBloodOnNoDeath()
    • setSplatBloodOnNoDeath

      public void setSplatBloodOnNoDeath​(boolean boolean1)
    • getSplatNumber

      public int getSplatNumber()
    • setSplatNumber

      public void setSplatNumber​(int int1)
    • getSwingSound

      public java.lang.String getSwingSound()
    • setSwingSound

      public void setSwingSound​(java.lang.String string)
    • getSwingTime

      public float getSwingTime()
    • setSwingTime

      public void setSwingTime​(float float1)
    • getToHitModifier

      public float getToHitModifier()
    • setToHitModifier

      public void setToHitModifier​(float float1)
    • isUseEndurance

      public boolean isUseEndurance()
    • setUseEndurance

      public void setUseEndurance​(boolean boolean1)
    • isUseSelf

      public boolean isUseSelf()
    • setUseSelf

      public void setUseSelf​(boolean boolean1)
    • getWeaponSprite

      public java.lang.String getWeaponSprite()
    • setWeaponSprite

      public void setWeaponSprite​(java.lang.String string)
    • getOtherBoost

      public float getOtherBoost()
    • setOtherBoost

      public void setOtherBoost​(float float1)
    • getDoorDamage

      public int getDoorDamage()
    • setDoorDamage

      public void setDoorDamage​(int int1)
    • getDoorHitSound

      public java.lang.String getDoorHitSound()
    • setDoorHitSound

      public void setDoorHitSound​(java.lang.String string)
    • getConditionLowerChance

      public int getConditionLowerChance()
    • setConditionLowerChance

      public void setConditionLowerChance​(int int1)
    • isMultipleHitConditionAffected

      public boolean isMultipleHitConditionAffected()
    • setMultipleHitConditionAffected

      public void setMultipleHitConditionAffected​(boolean boolean1)
    • isShareEndurance

      public boolean isShareEndurance()
    • setShareEndurance

      public void setShareEndurance​(boolean boolean1)
    • isAlwaysKnockdown

      public boolean isAlwaysKnockdown()
    • setAlwaysKnockdown

      public void setAlwaysKnockdown​(boolean boolean1)
    • getEnduranceMod

      public float getEnduranceMod()
    • setEnduranceMod

      public void setEnduranceMod​(float float1)
    • getKnockdownMod

      public float getKnockdownMod()
    • setKnockdownMod

      public void setKnockdownMod​(float float1)
    • isCantAttackWithLowestEndurance

      public boolean isCantAttackWithLowestEndurance()
    • setCantAttackWithLowestEndurance

      public void setCantAttackWithLowestEndurance​(boolean boolean1)
    • 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 float1)
    • getCriticalChance

      public float getCriticalChance()
    • setSubCategory

      public void setSubCategory​(java.lang.String string)
    • getSubCategory

      public java.lang.String getSubCategory()
    • setZombieHitSound

      public void setZombieHitSound​(java.lang.String string)
    • getZombieHitSound

      public java.lang.String getZombieHitSound()
    • getCategories

      public java.util.ArrayList getCategories()
    • setCategories

      public void setCategories​(java.util.ArrayList arrayList)
    • getAimingPerkCritModifier

      public int getAimingPerkCritModifier()
    • setAimingPerkCritModifier

      public void setAimingPerkCritModifier​(int int1)
    • getAimingPerkRangeModifier

      public float getAimingPerkRangeModifier()
    • setAimingPerkRangeModifier

      public void setAimingPerkRangeModifier​(float float1)
    • getHitChance

      public int getHitChance()
    • setHitChance

      public void setHitChance​(int int1)
    • getAimingPerkHitChanceModifier

      public float getAimingPerkHitChanceModifier()
    • setAimingPerkHitChanceModifier

      public void setAimingPerkHitChanceModifier​(float float1)
    • getAimingPerkMinAngleModifier

      public float getAimingPerkMinAngleModifier()
    • setAimingPerkMinAngleModifier

      public void setAimingPerkMinAngleModifier​(float float1)
    • getRecoilDelay

      public int getRecoilDelay()
    • setRecoilDelay

      public void setRecoilDelay​(int int1)
    • isPiercingBullets

      public boolean isPiercingBullets()
    • setPiercingBullets

      public void setPiercingBullets​(boolean boolean1)
    • getSoundGain

      public float getSoundGain()
    • setSoundGain

      public void setSoundGain​(float float1)
    • getScope

      public WeaponPart getScope()
    • setScope

      public void setScope​(WeaponPart weaponPart)
    • getClip

      public WeaponPart getClip()
    • setClip

      public void setClip​(WeaponPart weaponPart)
    • getCanon

      public WeaponPart getCanon()
    • setCanon

      public void setCanon​(WeaponPart weaponPart)
    • getRecoilpad

      public WeaponPart getRecoilpad()
    • setRecoilpad

      public void setRecoilpad​(WeaponPart weaponPart)
    • getClipSize

      public int getClipSize()
    • setClipSize

      public void setClipSize​(int int1)
    • save

      public void save​(java.nio.ByteBuffer byteBuffer, boolean boolean1) throws java.io.IOException
      Overrides:
      save in class InventoryItem
      Throws:
      java.io.IOException
    • load

      public void load​(java.nio.ByteBuffer byteBuffer, int int1, boolean boolean1) throws java.io.IOException
      Overrides:
      load in class InventoryItem
      Throws:
      java.io.IOException
    • getMinRangeRanged

      public float getMinRangeRanged()
    • setMinRangeRanged

      public void setMinRangeRanged​(float float1)
    • getReloadTime

      public int getReloadTime()
    • setReloadTime

      public void setReloadTime​(int int1)
    • getSling

      public WeaponPart getSling()
    • setSling

      public void setSling​(WeaponPart weaponPart)
    • getAimingTime

      public int getAimingTime()
    • setAimingTime

      public void setAimingTime​(int int1)
    • getStock

      public WeaponPart getStock()
    • setStock

      public void setStock​(WeaponPart weaponPart)
    • getTreeDamage

      public int getTreeDamage()
    • setTreeDamage

      public void setTreeDamage​(int int1)
    • getBulletOutSound

      public java.lang.String getBulletOutSound()
    • setBulletOutSound

      public void setBulletOutSound​(java.lang.String string)
    • getShellFallSound

      public java.lang.String getShellFallSound()
    • setShellFallSound

      public void setShellFallSound​(java.lang.String string)
    • setWeaponPart

      public void setWeaponPart​(java.lang.String string, WeaponPart weaponPart)
    • getWeaponPart

      public WeaponPart getWeaponPart​(java.lang.String string)
    • attachWeaponPart

      public void attachWeaponPart​(WeaponPart weaponPart)
    • attachWeaponPart

      public void attachWeaponPart​(WeaponPart weaponPart, boolean boolean1)
    • detachWeaponPart

      public void detachWeaponPart​(WeaponPart weaponPart)
    • getTriggerExplosionTimer

      public int getTriggerExplosionTimer()
    • setTriggerExplosionTimer

      public void setTriggerExplosionTimer​(int int1)
    • canBePlaced

      public boolean canBePlaced()
    • setCanBePlaced

      public void setCanBePlaced​(boolean boolean1)
    • getExplosionRange

      public int getExplosionRange()
    • setExplosionRange

      public void setExplosionRange​(int int1)
    • getExplosionPower

      public int getExplosionPower()
    • setExplosionPower

      public void setExplosionPower​(int int1)
    • getFireRange

      public int getFireRange()
    • setFireRange

      public void setFireRange​(int int1)
    • getSmokeRange

      public int getSmokeRange()
    • setSmokeRange

      public void setSmokeRange​(int int1)
    • getFirePower

      public int getFirePower()
    • setFirePower

      public void setFirePower​(int int1)
    • getNoiseRange

      public int getNoiseRange()
    • setNoiseRange

      public void setNoiseRange​(int int1)
    • getExtraDamage

      public float getExtraDamage()
    • setExtraDamage

      public void setExtraDamage​(float float1)
    • getExplosionTimer

      public int getExplosionTimer()
    • setExplosionTimer

      public void setExplosionTimer​(int int1)
    • getPlacedSprite

      public java.lang.String getPlacedSprite()
    • setPlacedSprite

      public void setPlacedSprite​(java.lang.String string)
    • canBeReused

      public boolean canBeReused()
    • setCanBeReused

      public void setCanBeReused​(boolean boolean1)
    • getSensorRange

      public int getSensorRange()
    • setSensorRange

      public void setSensorRange​(int int1)
    • getRunAnim

      public java.lang.String getRunAnim()