Class ScaledCurveCondition
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.ScaledCurveCondition
- All Implemented Interfaces:
JsonAsset<String>,JsonAssetWithMap<String,IndexedLookupTableAssetMap<String, Condition>>
- Direct Known Subclasses:
FlockSizeCondition,NearbyCountCondition,RecentSustainedDamageCondition,SelfStatAbsoluteCondition,TargetDistanceCondition,TargetMemoryCountCondition,TargetStatAbsoluteCondition,TimeOfDayCondition,TimeSinceLastUsedCondition,TotalSustainedDamageCondition
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BuilderCodec<ScaledCurveCondition> protected ScaledResponseCurveFields inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
ALWAYS_TRUE_SIMPLICITY, BASE_CODEC, BOOLEAN_CHECK_SIMPLICITY, CHILD_ASSET_CODEC, CHILD_ASSET_CODEC_ARRAY, CODEC, data, HIGH_COST_SIMPLICITY, id, NO_TARGET, NORMALISED_CURVE_SIMPLICITY, reference, SCALED_CURVE_SIMPLICITY, VALIDATOR_CACHE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoublecalculateUtility(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) protected abstract doublegetInput(int var1, ArchetypeChunk<EntityStore> var2, Ref<EntityStore> var3, CommandBuffer<EntityStore> var4, EvaluationContext var5) inttoString()Methods inherited from class com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
getAlwaysTrueFor, getAssetMap, getAssetStore, getId, getReference, setupNPC, setupNPC
-
Field Details
-
ABSTRACT_CODEC
-
responseCurve
-
-
Constructor Details
-
ScaledCurveCondition
protected ScaledCurveCondition()
-
-
Method Details
-
getResponseCurve
-
calculateUtility
public double calculateUtility(int selfIndex, ArchetypeChunk<EntityStore> archetypeChunk, Ref<EntityStore> target, CommandBuffer<EntityStore> commandBuffer, EvaluationContext context) - Specified by:
calculateUtilityin classCondition
-
getSimplicity
public int getSimplicity()- Specified by:
getSimplicityin classCondition
-
getInput
protected abstract double getInput(int var1, ArchetypeChunk<EntityStore> var2, Ref<EntityStore> var3, CommandBuffer<EntityStore> var4, EvaluationContext var5) -
toString
-