Loading...
Searching...
No Matches
PixelCrushers.LoveHate.Wrappers.EmotionalState Class Reference

This wrapper keeps references intact if you switch between the compiled assembly and source code versions of the original class. More...

Inheritance diagram for PixelCrushers.LoveHate.Wrappers.EmotionalState:
Collaboration diagram for PixelCrushers.LoveHate.Wrappers.EmotionalState:

Additional Inherited Members

- Public Types inherited from PixelCrushers.LoveHate.EmotionalState
enum  EmotionMatchMode { BestFit , Sequentially }
 
- Public Member Functions inherited from PixelCrushers.LoveHate.EmotionalState
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 inherited from PixelCrushers.LoveHate.EmotionalState
static List< string > ZonePluginActivator ()
 For optional UtopiaWorx Zone Controller integration.
 
- Public Attributes inherited from PixelCrushers.LoveHate.EmotionalState
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.
 

Detailed Description

This wrapper keeps references intact if you switch between the compiled assembly and source code versions of the original class.


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