Simulation.NeedItem Class Reference

A need, one of the core building blocks of NEEDSIMLifeSimulation More...

Public Member Functions

 NeedItem (string name, float changeRate, float critical, float satisfied)
 Create a new need. More...
 

Public Attributes

string needName
 The unique name of the need. Identifier. More...
 
float minValue
 The limit below which the need satisfaction level is capped. More...
 
float maxValue
 The limit above which the the need satisfaction level is capped. More...
 
float changePerSecond
 How much the need changes per second. For example how hungry a character gets over time More...
 
float criticalState
 The limit below which the state of the need satisfcation is considered critical. More...
 
float satisfiedState
 The limit above which the state of the need satisfaction is considered satisfied. More...
 

Detailed Description

A need, one of the core building blocks of NEEDSIMLifeSimulation

Constructor & Destructor Documentation

Simulation.NeedItem.NeedItem ( string  name,
float  changeRate,
float  critical,
float  satisfied 
)

Create a new need.

Parameters
nameThe unique name of the need. Identifier.
changeRateHow much the need changes per second. For example how hungry a character gets over time
criticalThe limit below which the state of the need satisfcation is considered critical.
satisfiedThe limit above which the state of the need satisfaction is considered satisfied.

Member Data Documentation

float Simulation.NeedItem.changePerSecond

How much the need changes per second. For example how hungry a character gets over time

float Simulation.NeedItem.criticalState

The limit below which the state of the need satisfcation is considered critical.

float Simulation.NeedItem.maxValue

The limit above which the the need satisfaction level is capped.

float Simulation.NeedItem.minValue

The limit below which the need satisfaction level is capped.

string Simulation.NeedItem.needName

The unique name of the need. Identifier.

float Simulation.NeedItem.satisfiedState

The limit above which the state of the need satisfaction is considered satisfied.


The documentation for this class was generated from the following file:
  • NeedItem.cs