Package FAtiMA.Core.emotionalState
Class EmotionDisposition
java.lang.Object
FAtiMA.Core.emotionalState.EmotionDisposition
- All Implemented Interfaces:
Serializable
Represents the character's emotional disposition
(Emotional Threshold + Decay Rate) towards an Emotion Type.
- Author:
- Joao Dias
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEmotionDisposition(String emotion, int threshold, int decay) Creates a new EmotionDisposition -
Method Summary
-
Constructor Details
-
EmotionDisposition
Creates a new EmotionDisposition- Parameters:
threshold- - the threshold for the emotiondecay- - the decay rate for the emotion
-
-
Method Details
-
getDecay
public int getDecay()Gets the decay rate for the emotion- Returns:
- the decay rate
-
getThreshold
public int getThreshold()gets the emotion's threshold- Returns:
- the threshold
-
getEmotion
-
toString
Converts the emotional disposition to a String
-