![]() |
Grail (C#)
1.3.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
|
Bounds output of provided Evaluator from both sides. More...
Public Member Functions | |
DoubleSidedBound (Evaluator< ContextType > childEvaluator, float lowerBound, float upperBound) | |
Constructor. More... | |
sealed override float | Sample (float argument) |
Transforms argument into output value depending on the type of Curve. More... | |
![]() | |
Curve (Evaluator< ContextType > childEvaluator) | |
Constructor. More... | |
![]() | |
float | EvaluateContext (ContextType context, in UtilityEvaluatorSnapshot snapshot) |
Evaluates provided context and if provided snapshot is not empty, fills it with debug data describing this node. More... | |
Public Attributes | |
sealed override EvaluatorType | EvaluatorType => EvaluatorType.CURVE_DOUBLE_SIDED_BOUND |
Additional Inherited Members | |
![]() | |
sealed override float | Evaluate (ContextType context, in UtilityEvaluatorSnapshot snapshot) |
Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator. More... | |
sealed override void | DebugDump (IReadOnlyDictionary< object, int > nodeMapping, ref EvaluationDebugData debugData) |
Called from EvaluateContext, which generates additional debug data for each evaluator. Should be overriden in each derived evaluator to better reflect debug tree topology. More... | |
![]() | |
abstract EvaluatorType | EvaluatorType [get] |
Bounds output of provided Evaluator from both sides.
ContextType | Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
|
inline |
Constructor.
childEvaluator | Evaluator which output will be transformed by this curve. |
lowerBound | Value bounding the function from below. |
upperBound | Value bounding the function from above. |
|
inlinevirtual |
Transforms argument into output value depending on the type of Curve.
argument | Value of a curve argument belonging to its domain. |
Implements Grail.Evaluators.Curves.Curve< ContextType >.