Loading...
Searching...
No Matches
PixelCrushers.LoveHate.Pad Class Reference

An emotional state, based on the PAD model: https://en.wikipedia.org/wiki/PAD_emotional_state_model. More...

Public Member Functions

void Modify (float happinessChange, float pleasureChange, float arousalChange, float dominanceChange)
 Modifies the PAD values.
 
Temperament GetTemperament ()
 Gets the actor's temperament based on current PAD values.
 

Public Attributes

float happiness = 0
 The sum of all pleasure values over the whole lifetime.
 
float pleasure = 0
 How happy or sad the actor currently is.
 
float arousal = 0
 How worked up/excited the actor currently is.
 
float dominance = 0
 How dominant or submissive the actor feels in the current situation.
 
float excitabilityThreshold = 20f
 The threshold above which the PAD values above affect temperament.
 

Detailed Description

An emotional state, based on the PAD model: https://en.wikipedia.org/wiki/PAD_emotional_state_model.

Member Function Documentation

◆ GetTemperament()

Temperament PixelCrushers.LoveHate.Pad.GetTemperament ( )
inline

Gets the actor's temperament based on current PAD values.

Returns
The temperament.

◆ Modify()

void PixelCrushers.LoveHate.Pad.Modify ( float  happinessChange,
float  pleasureChange,
float  arousalChange,
float  dominanceChange 
)
inline

Modifies the PAD values.

Parameters
happinessChangeHappiness change.
pleasureChangePleasure change.
arousalChangeArousal change.
dominanceChangeDominance change.

Member Data Documentation

◆ arousal

float PixelCrushers.LoveHate.Pad.arousal = 0

How worked up/excited the actor currently is.

◆ dominance

float PixelCrushers.LoveHate.Pad.dominance = 0

How dominant or submissive the actor feels in the current situation.

◆ excitabilityThreshold

float PixelCrushers.LoveHate.Pad.excitabilityThreshold = 20f

The threshold above which the PAD values above affect temperament.

◆ happiness

float PixelCrushers.LoveHate.Pad.happiness = 0

The sum of all pleasure values over the whole lifetime.

◆ pleasure

float PixelCrushers.LoveHate.Pad.pleasure = 0

How happy or sad the actor currently is.


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