RAIN.Personality.Trait Class Reference

Trait is a named personality influence that can be applied to other behavior measures to alter behavior. More...

List of all members.

Public Member Functions

 Trait ()
 Default constructor.
 Trait (string traitName, float baseInfluence)
 Parameterized constructor initializing name, base influence, and whether the Trait is open in an Editor window.
float Influence ()
 Influence returns an overall influence calculation that can be applied to other behavioral factors. If Influence is applied positively, it should be multiplied. If it is applied negatively, it should divide.

Properties

float BaseInfluence [get, set]
 BaseInfluence Property accessor. BaseInfluence is constrained between 0 and 1.
string Name [get, set]
 Trait Name Property accessor.

Detailed Description

Trait is a named personality influence that can be applied to other behavior measures to alter behavior.


Constructor & Destructor Documentation

RAIN.Personality.Trait.Trait ( )

Default constructor.

RAIN.Personality.Trait.Trait ( string  traitName,
float  baseInfluence 
)

Parameterized constructor initializing name, base influence, and whether the Trait is open in an Editor window.

Parameters:
traitNameName of the Trait
baseInfluenceBaseline influence factor, between 0 (no influence) and 1 (high influence)

Member Function Documentation

float RAIN.Personality.Trait.Influence ( )

Influence returns an overall influence calculation that can be applied to other behavioral factors. If Influence is applied positively, it should be multiplied. If it is applied negatively, it should divide.

Returns:
A value between 1.0f and 2.0f inclusive.

Property Documentation

float RAIN.Personality.Trait.BaseInfluence [get, set]

BaseInfluence Property accessor. BaseInfluence is constrained between 0 and 1.

string RAIN.Personality.Trait.Name [get, set]

Trait Name Property accessor.