Runner's High
Public Attributes | List of all members
Accel.ProgressDetector Class Reference

A ProgressDetector is just a state detector with some additional fields. More...

Inheritance diagram for Accel.ProgressDetector:
Accel.StateDetector Accel.DataOutput< float > Accel.StateOutput Accel.DataInput< float >

Public Attributes

float distanceGoal = -1
 The distance the runner wants to achieve before the scene ends. More...
 
float speedGoal = -1
 The sped the runners wants to run at. More...
 
float runWithoutPauseGoal = -1
 The minimum duration of arun phase. More...
 
float achievedDistance
 The distance covered since Scene start. More...
 
float currentSpeed
 The current speed. More...
 
float averageSpeed
 The average speed. More...
 
float currentRunWithoutPause
 The duration of the current run. More...
 
List< float > runsWithoutPause = new List<float>()
 Get a list of the durations of all run phases. More...
 
float totalRunWithoutPause
 the total time spent running. More...
 
- Public Attributes inherited from Accel.StateDetector
List< float > OnThresholds = new List<float>()
 
List< float > OffThresholds = new List<float>()
 
float minTriggerTime = 0
 The minimum time between subsequent triggers. Can be handy to prevent false triggers. More...
 
int onCount = 0
 How many times the detector switched to on since Scene start. More...
 

Additional Inherited Members

- Public Member Functions inherited from Accel.StateDetector
void AddInputVal (DataOutput< float > input, float onThreshold=1, float offThreshold=0)
 Add an input to the StateDetector. More...
 
- Protected Member Functions inherited from Accel.StateDetector
unsafe void Update ()
 
- Protected Attributes inherited from Accel.StateDetector
List< DataOutput< float > > inputs = new List<DataOutput<float>>()
 
bool on
 
float floatState = 0
 
- Properties inherited from Accel.StateDetector
DataOutput< float > InputVal [get, set]
 The object this instance gets its data from. Must be of type DataOuput. Deletes all other inputs that are currently assigned.
 
float OnThreshold [get, set]
 The OnThreshold (if only 1 input is assigned), or the OnThreshold of the first input (if multiple inputs are assigned) More...
 
float OffThreshold [get, set]
 The OffThreshold (if only 1 input is assigned), or the OffThreshold of the first input (if multiple inputs are assigned) More...
 
bool off [get, set]
 
bool On [get]
 The current state of the detector.
 
float Val [get]
 The current state of the detector, converted to float.
 
- Properties inherited from Accel.DataOutput< float >
Val [get]
 The current output calue.
 
- Properties inherited from Accel.StateOutput
bool On [get]
 
- Properties inherited from Accel.DataInput< float >
DataOutput< T > InputVal [get, set]
 

Detailed Description

A ProgressDetector is just a state detector with some additional fields.

Member Data Documentation

◆ achievedDistance

float Accel.ProgressDetector.achievedDistance

The distance covered since Scene start.

◆ averageSpeed

float Accel.ProgressDetector.averageSpeed

The average speed.

◆ currentRunWithoutPause

float Accel.ProgressDetector.currentRunWithoutPause

The duration of the current run.

◆ currentSpeed

float Accel.ProgressDetector.currentSpeed

The current speed.

◆ distanceGoal

float Accel.ProgressDetector.distanceGoal = -1

The distance the runner wants to achieve before the scene ends.

◆ runsWithoutPause

List<float> Accel.ProgressDetector.runsWithoutPause = new List<float>()

Get a list of the durations of all run phases.

◆ runWithoutPauseGoal

float Accel.ProgressDetector.runWithoutPauseGoal = -1

The minimum duration of arun phase.

◆ speedGoal

float Accel.ProgressDetector.speedGoal = -1

The sped the runners wants to run at.

◆ totalRunWithoutPause

float Accel.ProgressDetector.totalRunWithoutPause

the total time spent running.


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