Class EmotionDisposition

java.lang.Object
FAtiMA.Core.emotionalState.EmotionDisposition
All Implemented Interfaces:
Serializable

public class EmotionDisposition extends Object implements Serializable
Represents the character's emotional disposition (Emotional Threshold + Decay Rate) towards an Emotion Type.
Author:
Joao Dias
See Also:
  • Constructor Details

    • EmotionDisposition

      public EmotionDisposition(String emotion, int threshold, int decay)
      Creates a new EmotionDisposition
      Parameters:
      threshold - - the threshold for the emotion
      decay - - 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

      public String getEmotion()
    • toString

      public String toString()
      Converts the emotional disposition to a String
      Overrides:
      toString in class Object
      Returns:
      the converted String