dcsex.utility
Utility - describes an extensible utility system
Contents
Functions
Axis:__init(input, curve, m, k, b, c)
Parameters
- input
- a function reference where the signature is of the form: value input(object), thus input known how to obtain some value from object.
- curve
- on of enum dcsex.utility.curveTypes
- m
- response curve coefficent
- k
- response curve coefficent
- b
- response curve coefficent
- c
- response curve coefficent
Axis:score(agent)
Parameters
- agent
- object passed to inputfunc to determine the X value.
Returns
- returns the Y value or result of the Axis
IAUS:__init(…)
Parameters
- …
- varadioc param list of the Axis classes
IAUS:addAxis(axis)
Parameters
- axis
- an Axis reference
IAUS:score(agent)
Parameters
- agent
- the game object each Axis’ input function can query to obtain its ‘x’ input value.
Returns
- a utility score between 0 and 1