This optional component adds a more customizable emotion model based on PAD values than the PAD's built-in Temperament value. More...
Public Types | |
enum | EmotionMatchMode { BestFit , Sequentially } |
Public Member Functions | |
void | Awake () |
void | UpdateEmotionalState () |
Updates the current emotion based on the faction member's PAD values. | |
string | GetCurrentEmotionName () |
Returns the name of the current emotion determined by the faction member's PAD values. | |
int | GetCurrentEmotion () |
Returns the current emotion determined by the faction member's PAD values. | |
bool | IsWithinEmotionRange (EmotionDefinition emotionDefinition) |
Returns true if the current PAD values fall within the ranges specified by an emotionDefinition. | |
float | GetEmotionDistance (EmotionDefinition emotionDefinition) |
Returns distance between PAD values and average of emotion's range. | |
void | OnModifyPad (float happinessChange, float pleasureChange, float arousalChange, float dominanceChange) |
Updates the current emotion whenever the faction member's PAD values change. | |
Static Public Member Functions | |
static List< string > | ZonePluginActivator () |
For optional UtopiaWorx Zone Controller integration. | |
Public Attributes | |
EmotionModel | emotionModelTemplate |
The template to use when defining emotions. | |
EmotionDefinition[] | emotionDefinitions = new EmotionDefinition[0] |
The emotion definitions for this faction member. | |
EmotionMatchMode | emotionMatchMode = EmotionMatchMode.BestFit |
Specifies how to match emotion to PAD values. | |
int | currentEmotion = -1 |
Index into emotionDefinitions of the current emotion based on the faction member's PAD values. | |
string | currentEmotionName = string.Empty |
The emotion name associated with the current emotion. | |
This optional component adds a more customizable emotion model based on PAD values than the PAD's built-in Temperament value.
|
inline |
|
inline |
Returns the current emotion determined by the faction member's PAD values.
Identifies the emotion that most closely matches the PAD values.
|
inline |
Returns the name of the current emotion determined by the faction member's PAD values.
|
inline |
Returns distance between PAD values and average of emotion's range.
emotionDefinition | Emotion definition to check |
|
inline |
Returns true
if the current PAD values fall within the ranges specified by an emotionDefinition.
emotionDefinition | Emotion definition to check |
|
inline |
Updates the current emotion whenever the faction member's PAD values change.
Implements PixelCrushers.LoveHate.IModifyPadDeedEventHandler.
|
inline |
Updates the current emotion based on the faction member's PAD values.
|
inlinestatic |
For optional UtopiaWorx Zone Controller integration.
int PixelCrushers.LoveHate.EmotionalState.currentEmotion = -1 |
Index into emotionDefinitions of the current emotion based on the faction member's PAD values.
string PixelCrushers.LoveHate.EmotionalState.currentEmotionName = string.Empty |
The emotion name associated with the current emotion.
EmotionDefinition [] PixelCrushers.LoveHate.EmotionalState.emotionDefinitions = new EmotionDefinition[0] |
The emotion definitions for this faction member.
EmotionMatchMode PixelCrushers.LoveHate.EmotionalState.emotionMatchMode = EmotionMatchMode.BestFit |
Specifies how to match emotion to PAD values.
EmotionModel PixelCrushers.LoveHate.EmotionalState.emotionModelTemplate |
The template to use when defining emotions.