DecisionFlex
Utilty AI for Unity
 All Classes Namespaces Functions Variables Events Pages
Classes | Public Member Functions | Static Public Attributes | List of all members
TenPN.DecisionFlex.Demos.iPerson Class Reference

The core logic of the simulation, simulating eg Hunger increasing over time. More...

Inheritance diagram for TenPN.DecisionFlex.Demos.iPerson:

Public Member Functions

float GetAttribute (Attribute att)
 
void BoostAttribute (Attribute att, float boost)
 

Static Public Attributes

static readonly Attribute[] Attributes
 

Detailed Description

The core logic of the simulation, simulating eg Hunger increasing over time.

An iPerson is a collection of Attributes, which are just floats. Over time they drift up or down. We use DecisionFlex to decide if we should Eat or Work or whatever next, which ends up being just a call to BoostAttribute with the attribute to boost.

Member Data Documentation

readonly Attribute [] TenPN.DecisionFlex.Demos.iPerson.Attributes
static
Initial value:
=
(Attribute[]) Enum.GetValues(typeof(Attribute))

The documentation for this class was generated from the following file: