Package FAtiMA.Core.emotionalState
Class EmotionDisposition
- java.lang.Object
-
- FAtiMA.Core.emotionalState.EmotionDisposition
-
- All Implemented Interfaces:
java.io.Serializable
public class EmotionDisposition extends java.lang.Object implements java.io.SerializableRepresents the character's emotional disposition (Emotional Threshold + Decay Rate) towards an Emotion Type.- Author:
- Joao Dias
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EmotionDisposition(java.lang.String emotion, int threshold, int decay)Creates a new EmotionDisposition
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetDecay()Gets the decay rate for the emotionjava.lang.StringgetEmotion()intgetThreshold()gets the emotion's thresholdjava.lang.StringtoString()Converts the emotional disposition to a String
-
-
-
Method Detail
-
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
public java.lang.String getEmotion()
-
toString
public java.lang.String toString()
Converts the emotional disposition to a String- Overrides:
toStringin classjava.lang.Object- Returns:
- the converted String
-
-