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()
boolean
isDecWeight()
boolean
isIncWeight()
boolean
isIncWeightLot()
void
load(java.nio.ByteBuffer byteBuffer)
void
save(java.nio.ByteBuffer byteBuffer)
void
setCalories(float float1)
void
setCarbohydrates(float float1)
void
setDecWeight(boolean boolean1)
void
setIncWeight(boolean boolean1)
void
setIncWeightLot(boolean boolean1)
void
setLipids(float float1)
void
setProteins(float float1)
void
setWeight(float float1)
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 byteBuffer) -
load
public void load(java.nio.ByteBuffer byteBuffer) -
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 float1) -
getProteins
public float getProteins() -
setProteins
public void setProteins(float float1) -
getCalories
public float getCalories() -
setCalories
public void setCalories(float float1) -
getLipids
public float getLipids() -
setLipids
public void setLipids(float float1) -
getWeight
public float getWeight() -
setWeight
public void setWeight(float float1) -
isIncWeight
public boolean isIncWeight() -
setIncWeight
public void setIncWeight(boolean boolean1) -
isIncWeightLot
public boolean isIncWeightLot() -
setIncWeightLot
public void setIncWeightLot(boolean boolean1) -
isDecWeight
public boolean isDecWeight() -
setDecWeight
public void setDecWeight(boolean boolean1)
-