Package zombie.characters.BodyDamage
Class Nutrition
java.lang.Object
zombie.characters.BodyDamage.Nutrition
-
Constructor Summary
-
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 <= 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
update()
-
Constructor Details
-
Nutrition
-
-
Method Details
-
update
public void update() -
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 <= 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)
-