Class Nutrition
java.lang.Object
zombie.characters.BodyDamage.Nutrition
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid> 100 obese 85 to 100 over weight 75 to 85 normal 65 to 75 underweight 50 to 65 very underweight invalid input: '<'= 50 emaciatedvoidbooleanYou gain xp only if you're in good shape As underweight or overweight you can still be "fit"booleanfloatfloatfloatfloatdoublebooleanbooleanbooleanvoidload(ByteBuffer input) voidsave(ByteBuffer output) voidsetCalories(float _calories) voidsetCarbohydrates(float _carbohydrates) voidsetDecWeight(boolean _decWeight) voidsetIncWeight(boolean _incWeight) voidsetIncWeightLot(boolean _incWeightLot) voidsetLipids(float _lipids) voidsetProteins(float _proteins) voidsetWeight(double _weight) voidvoidupdate()
-
Constructor Details
-
Nutrition
-
-
Method Details
-
update
public void update() -
syncWeight
public void syncWeight() -
save
-
load
-
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 invalid input: '<'= 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)
-