Class Clothing

java.lang.Object
zombie.inventory.InventoryItem
zombie.inventory.types.Clothing
Direct Known Subclasses:
AlarmClockClothing

public class Clothing extends InventoryItem
  • Field Details

    • SpriteName

      protected String SpriteName
    • palette

      protected String palette
    • bloodLevel

      public float bloodLevel
    • CONDITION_PER_HOLES

      public static final int CONDITION_PER_HOLES
      See Also:
  • Constructor Details

  • Method Details

    • getCategory

      public String getCategory()
      Overrides:
      getCategory in class InventoryItem
    • IsClothing

      public boolean IsClothing()
      Overrides:
      IsClothing in class InventoryItem
    • getSaveType

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

      public void Unwear()
    • DoTooltip

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

      public boolean isDirty()
    • isBloody

      public boolean isBloody()
    • getName

      public String getName()
      Overrides:
      getName in class InventoryItem
    • update

      public void update()
      Overrides:
      update in class InventoryItem
    • updateWetness

      public void updateWetness()
    • updateWetness

      public void updateWetness(boolean boolean1)
    • getBulletDefense

      public float getBulletDefense()
    • setBulletDefense

      public void setBulletDefense(float float1)
    • flushWetness

      public void flushWetness()
    • finishupdate

      public boolean finishupdate()
      Overrides:
      finishupdate in class InventoryItem
    • Use

      public void Use(boolean boolean1, boolean boolean2)
      Overrides:
      Use in class InventoryItem
    • CanStack

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

      public static Clothing CreateFromSprite(String string)
    • save

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

      public void load(ByteBuffer byteBuffer, int int1) throws IOException
      Overrides:
      load in class InventoryItem
      Throws:
      IOException
    • getSpriteName

      public String getSpriteName()
    • setSpriteName

      public void setSpriteName(String string)
    • getPalette

      public String getPalette()
    • setPalette

      public void setPalette(String string)
    • getTemperature

      public float getTemperature()
    • setTemperature

      public void setTemperature(float float1)
    • setDirtyness

      public void setDirtyness(float float1)
    • setBloodLevel

      public void setBloodLevel(float float1)
    • getDirtyness

      public float getDirtyness()
    • getBloodlevel

      public float getBloodlevel()
    • getBloodlevelForPart

      public float getBloodlevelForPart(BloodBodyPartType bloodBodyPartType)
    • getBloodLevel

      public float getBloodLevel()
    • getBloodLevelForPart

      public float getBloodLevelForPart(BloodBodyPartType bloodBodyPartType)
    • getWeight

      public float getWeight()
      Overrides:
      getWeight in class InventoryItem
    • setWetness

      public void setWetness(float float1)
    • getWetness

      public float getWetness()
    • getWeightWet

      public float getWeightWet()
    • setWeightWet

      public void setWeightWet(float float1)
    • getConditionLowerChance

      public int getConditionLowerChance()
    • setConditionLowerChance

      public void setConditionLowerChance(int int1)
    • setCondition

      public void setCondition(int int1)
      Overrides:
      setCondition in class InventoryItem
    • getClothingDirtynessIncreaseLevel

      public float getClothingDirtynessIncreaseLevel()
    • getInsulation

      public float getInsulation()
    • setInsulation

      public void setInsulation(float float1)
    • getStompPower

      public float getStompPower()
    • setStompPower

      public void setStompPower(float float1)
    • getRunSpeedModifier

      public float getRunSpeedModifier()
    • setRunSpeedModifier

      public void setRunSpeedModifier(float float1)
    • getCombatSpeedModifier

      public float getCombatSpeedModifier()
    • setCombatSpeedModifier

      public void setCombatSpeedModifier(float float1)
    • isRemoveOnBroken

      public Boolean isRemoveOnBroken()
    • setRemoveOnBroken

      public void setRemoveOnBroken(Boolean Boolean1)
    • getCanHaveHoles

      public Boolean getCanHaveHoles()
    • setCanHaveHoles

      public void setCanHaveHoles(Boolean Boolean1)
    • isCosmetic

      public boolean isCosmetic()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getBiteDefense

      public float getBiteDefense()
    • setBiteDefense

      public void setBiteDefense(float float1)
    • getScratchDefense

      public float getScratchDefense()
    • setScratchDefense

      public void setScratchDefense(float float1)
    • getNeckProtectionModifier

      public float getNeckProtectionModifier()
    • setNeckProtectionModifier

      public void setNeckProtectionModifier(float float1)
    • getChanceToFall

      public int getChanceToFall()
    • setChanceToFall

      public void setChanceToFall(int int1)
    • getWindresistance

      public float getWindresistance()
    • setWindresistance

      public void setWindresistance(float float1)
    • getWaterResistance

      public float getWaterResistance()
    • setWaterResistance

      public void setWaterResistance(float float1)
    • getHolesNumber

      public int getHolesNumber()
    • getPatchesNumber

      public int getPatchesNumber()
    • getDefForPart

      public float getDefForPart(BloodBodyPartType bloodBodyPartType, boolean boolean1, boolean boolean2)
    • getBiteDefenseFromItem

      public static int getBiteDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • getScratchDefenseFromItem

      public static int getScratchDefenseFromItem(IsoGameCharacter gameCharacter, InventoryItem inventoryItem)
    • getPatchType

      public Clothing.ClothingPatch getPatchType(BloodBodyPartType bloodBodyPartType)
    • removePatch

      public void removePatch(BloodBodyPartType bloodBodyPartType)
    • canFullyRestore

      public boolean canFullyRestore(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem)
    • addPatch

      public void addPatch(IsoGameCharacter gameCharacter, BloodBodyPartType bloodBodyPartType, InventoryItem inventoryItem)
    • getCoveredParts

      public ArrayList getCoveredParts()
    • getNbrOfCoveredParts

      public int getNbrOfCoveredParts()
    • getCondLossPerHole

      public int getCondLossPerHole()
    • copyPatchesTo

      public void copyPatchesTo(Clothing clothing)
    • getClothingExtraSubmenu

      public String getClothingExtraSubmenu()
    • canBe3DRender

      public boolean canBe3DRender()
    • isWorn

      public boolean isWorn()