Class EmotionDisposition

  • All Implemented Interfaces:
    java.io.Serializable

    public class EmotionDisposition
    extends java.lang.Object
    implements java.io.Serializable
    Represents 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
      int getDecay()
      Gets the decay rate for the emotion
      java.lang.String getEmotion()  
      int getThreshold()
      gets the emotion's threshold
      java.lang.String toString()
      Converts the emotional disposition to a String
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • EmotionDisposition

        public EmotionDisposition​(java.lang.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 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:
        toString in class java.lang.Object
        Returns:
        the converted String