Contents
Class EvaluationContext
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.EvaluationContext
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongdoubledoublefloatvoidreset()voidsetLastUsedNanos(long lastUsedNanos) voidsetMinimumUtility(double minimumUtility) voidsetMinimumWeightCoefficient(double minimumWeightCoefficient) voidsetPredictability(float predictability) Sets the degree of predictability for the option to be chosen. 1 means that the best option will always be selected, 0 will be almost entirely erratic.
-
Constructor Details
-
EvaluationContext
public EvaluationContext()
-
-
Method Details
-
getMinimumUtility
public double getMinimumUtility() -
setMinimumUtility
public void setMinimumUtility(double minimumUtility) -
getMinimumWeightCoefficient
public double getMinimumWeightCoefficient() -
setMinimumWeightCoefficient
public void setMinimumWeightCoefficient(double minimumWeightCoefficient) -
getPredictability
public float getPredictability() -
setPredictability
public void setPredictability(float predictability) Sets the degree of predictability for the option to be chosen. 1 means that the best option will always be selected, 0 will be almost entirely erratic.- Parameters:
predictability- the degree of predictability
-
getLastUsedNanos
public long getLastUsedNanos() -
setLastUsedNanos
public void setLastUsedNanos(long lastUsedNanos) -
reset
public void reset()
-