Class Nutrition

java.lang.Object
zombie.characters.BodyDamage.Nutrition

public final class Nutrition extends Object
  • Constructor Details

    • Nutrition

      public Nutrition(IsoPlayer parent)
  • Method Details

    • update

      public void update()
    • save

      public void save(ByteBuffer output)
    • load

      public void load(ByteBuffer input)
    • applyWeightFromTraits

      public void applyWeightFromTraits()
    • applyTraitFromWeight

      public void applyTraitFromWeight()
      > 100 obese 85 to 100 over weight 75 to 85 normal 65 to 75 underweight 50 to 65 very underweight <= 50 emaciated
    • characterHaveWeightTrouble

      public boolean characterHaveWeightTrouble()
    • canAddFitnessXp

      public boolean canAddFitnessXp()
      You gain xp only if you're in good shape As underweight or overweight you can still be "fit"
    • getCarbohydrates

      public float getCarbohydrates()
    • setCarbohydrates

      public void setCarbohydrates(float carbohydrates)
    • getProteins

      public float getProteins()
    • setProteins

      public void setProteins(float proteins)
    • getCalories

      public float getCalories()
    • setCalories

      public void setCalories(float calories)
    • getLipids

      public float getLipids()
    • setLipids

      public void setLipids(float lipids)
    • getWeight

      public double getWeight()
    • setWeight

      public void setWeight(double weight)
    • isIncWeight

      public boolean isIncWeight()
    • setIncWeight

      public void setIncWeight(boolean incWeight)
    • isIncWeightLot

      public boolean isIncWeightLot()
    • setIncWeightLot

      public void setIncWeightLot(boolean incWeightLot)
    • isDecWeight

      public boolean isDecWeight()
    • setDecWeight

      public void setDecWeight(boolean decWeight)