Contents
Class LineOfSightCondition
java.lang.Object
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.Condition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.base.SimpleCondition
com.hypixel.hytale.server.npc.decisionmaker.core.conditions.LineOfSightCondition
- All Implemented Interfaces:
JsonAsset<String>, JsonAssetWithMap<String, IndexedLookupTableAssetMap<String, Condition>>
-
Field Summary
FieldsFields inherited from class SimpleCondition
ABSTRACT_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns a value representing the relative simplicity/cost to evaluate the condition, where lower numbers are simpler to compute.Methods inherited from class SimpleCondition
calculateUtility, toStringMethods inherited from class Condition
getAlwaysTrueFor, getAssetMap, getAssetStore, getId, getReference, setupNPC, setupNPC
-
Field Details
-
CODEC
-
-
Constructor Details
-
LineOfSightCondition
public LineOfSightCondition()
-
-
Method Details
-
getSimplicity
public int getSimplicity()Description copied from class:ConditionReturns a value representing the relative simplicity/cost to evaluate the condition, where lower numbers are simpler to compute.- Overrides:
getSimplicityin classSimpleCondition- Returns:
- a simplicity value
-