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 emaciatedvoid
boolean
You gain xp only if you're in good shape As underweight or overweight you can still be "fit"boolean
float
float
float
float
double
boolean
boolean
boolean
void
load
(ByteBuffer input) void
save
(ByteBuffer output) void
setCalories
(float _calories) void
setCarbohydrates
(float _carbohydrates) void
setDecWeight
(boolean _decWeight) void
setIncWeight
(boolean _incWeight) void
setIncWeightLot
(boolean _incWeightLot) void
setLipids
(float _lipids) void
setProteins
(float _proteins) void
setWeight
(double _weight) void
void
update()
-
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)
-