Trait is a named personality influence that can be applied to other behavior measures to alter behavior. More...
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. |
Trait is a named personality influence that can be applied to other behavior measures to alter behavior.
RAIN.Personality.Trait.Trait | ( | ) |
Default constructor.
RAIN.Personality.Trait.Trait | ( | string | traitName, |
float | baseInfluence | ||
) |
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.
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.