dcsex.utility

Utility - describes an extensible utility system

Contents

  1. Functions
    1. Axis:__init(input, curve, m, k, b, c)
    2. Axis:score(agent)
    3. IAUS:__init(…)
    4. IAUS:addAxis(axis)
    5. IAUS:score(agent)

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