Package zombie.characters.BodyDamage
Class Nutrition
java.lang.Object
zombie.characters.BodyDamage.Nutrition
public class Nutrition
extends java.lang.Object
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description void
applyTraitFromWeight()
void
applyWeightFromTraits()
boolean
canAddFitnessXp()
boolean
characterHaveWeightTrouble()
float
getCalories()
float
getCarbohydrates()
float
getLipids()
float
getProteins()
float
getWeight()
void
load(java.nio.ByteBuffer input)
void
save(java.nio.ByteBuffer output)
void
setCalories(float calories)
void
setCarbohydrates(float carbohydrates)
void
setLipids(float lipids)
void
setProteins(float proteins)
void
setWeight(float weight)
void
update()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Nutrition
-
-
Method Details
-
update
public void update() -
save
public void save(java.nio.ByteBuffer output) -
load
public void load(java.nio.ByteBuffer input) -
applyWeightFromTraits
public void applyWeightFromTraits() -
applyTraitFromWeight
public void applyTraitFromWeight() -
characterHaveWeightTrouble
public boolean characterHaveWeightTrouble() -
canAddFitnessXp
public boolean canAddFitnessXp() -
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 float getWeight() -
setWeight
public void setWeight(float weight)
-