(C++)
1.0.0
A multi-platform, modular, universal engine for embedding advanced AI in games.
ConstantFunction.hh
1
#ifndef GRAIL_CONSTANT_FUNCTION_H
2
#define GRAIL_CONSTANT_FUNCTION_H
3
4
#include "Curve.hh"
5
6
namespace
grail
7
{
8
namespace
curves
9
{
10
class
ConstantFunction
final :
public
Curve
11
{
12
public
:
13
explicit
ConstantFunction
(
float
initConstant);
14
15
virtual
float
Sample
(
float
argument)
const override
;
16
17
float
GetConstant()
const
;
18
19
CurveTypeId GetTypeId()
const override
;
20
21
private
:
22
float
constant = 0.0f;
23
};
24
}
25
}
26
#endif
// GRAIL_CONSTANT_FUNCTION_H
grail::curves::ConstantFunction
Definition:
ConstantFunction.hh:11
grail::curves::ConstantFunction::Sample
virtual float Sample(float argument) const override
Sample - User-defined method which processes provided value (currently vector of values - multidemens...
Definition:
ConstantFunction.cpp:12
grail::curves::Curve
The Curve class - Defines objects transforming one value into the other.
Definition:
Curve.hh:17
GrailUtilityAI
Curves
ConstantFunction.hh
Generated by
1.9.1