Class AnimalAllele
java.lang.Object
zombie.characters.animals.AnimalAllele
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatbooleanfloatboolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatgetName()floatbooleanbooleanisUsed()voidload(ByteBuffer input, int WorldVersion, boolean IS_DEBUG_SAVE) voidsave(ByteBuffer output, boolean IS_DEBUG_SAVE) voidsetCurrentValue(float newValue) voidsetDominant(boolean dom) voidvoidsetTrueRatioValue(float newValue) voidsetUsed(boolean used)
-
Field Details
-
name
-
currentValue
public float currentValue -
trueRatioValue
public float trueRatioValue -
dominant
public boolean dominant -
used
public boolean used -
geneticDisorder
-
-
Constructor Details
-
AnimalAllele
public AnimalAllele()
-
-
Method Details
-
save
- Throws:
IOException
-
load
- Throws:
IOException
-
getName
-
getCurrentValue
public float getCurrentValue() -
setCurrentValue
public void setCurrentValue(float newValue) -
getTrueRatioValue
public float getTrueRatioValue() -
setTrueRatioValue
public void setTrueRatioValue(float newValue) -
isDominant
public boolean isDominant() -
setDominant
public void setDominant(boolean dom) -
setUsed
public void setUsed(boolean used) -
isUsed
public boolean isUsed() -
getGeneticDisorder
-
setGeneticDisorder
-