Skip to main content

Schmeechee.Operation

A class in Root.Township, Alta.Intelligence.

A scoring rule for schmeechee actions that returns one value when the critter is grounded (or upside down) and another when not.

Constructors​

MemberWhat it is
Operation(Schmeechee.OperationType operation, float trueValue, float falseValue)Creates a Schmeechee.Operation from operation, trueValue and falseValue.

Fields​

3 private and internal fields
MemberWhat it is
private float falseValueScore when the state doesn't hold. Default 0.
private Schmeechee.OperationType operationWhich state to check: grounded or upside down.
private float trueValueScore when the state holds. Default 1.

Methods​

MemberWhat it is
override float Evaluate(Agent agent, ITarget target)Returns trueValue if the agent is a schmeechee in the chosen state, otherwise falseValue.