Class EmotionalPameters


  • public abstract class EmotionalPameters
    extends java.lang.Object
    Defines the values for emotional parameters used in the dynamics of the emotional state. ex: the decay of an emotion, decay of mood, influence of mood in emotion.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static float EmotionDecayFactor
      Constant value that defines how fast should a emotion decay over time.
      static float EmotionInfluenceOnMood
      Defines how strong is the influence of the emotion's intensity on the character's mood.
      static float MinimumMoodValue
      Defines the minimum absolute value that mood must have, in order to be considered for influencing emotions.
      static float MoodDecayFactor
      Constant value that defines how fast should mood decay over time.
      static float MoodInfluenceOnEmotion
      Defines how strong is the influence of the current mood in the intensity of the emotion.
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EmotionDecayFactor

        public static final float EmotionDecayFactor
        Constant value that defines how fast should a emotion decay over time. This value is adjusted so that the slowest decaying emotions takes aproximately 15 seconds to decay to half of the original intensity, the fastest decaying emotions take 4 seconds, and the normal ones takes 7 seconds.
        See Also:
        Constant Field Values
      • MoodDecayFactor

        public static final float MoodDecayFactor
        Constant value that defines how fast should mood decay over time. This value is adjusted so that mood decays 3 times slower than the slowest decaying emotion in order to represent a longer persistence and duration of mood over emotions. So, it takes aproximately 60 seconds for the mood to decay to half of the initial value.
        See Also:
        Constant Field Values
      • EmotionInfluenceOnMood

        public static final float EmotionInfluenceOnMood
        Defines how strong is the influence of the emotion's intensity on the character's mood. Since we don't want the mood to be very volatile, we only take into account 30% of the emotion's intensity
        See Also:
        Constant Field Values
      • MoodInfluenceOnEmotion

        public static final float MoodInfluenceOnEmotion
        Defines how strong is the influence of the current mood in the intensity of the emotion. We don't want the influence of mood to be that great, so we only take into account 30% of the mood's value
        See Also:
        Constant Field Values
      • MinimumMoodValue

        public static final float MinimumMoodValue
        Defines the minimum absolute value that mood must have, in order to be considered for influencing emotions. At the moment, values of mood ranged in ]-0.5;0.5[ are considered to be neutral moods that do not infuence emotions
        See Also:
        Constant Field Values
    • Constructor Detail

      • EmotionalPameters

        public EmotionalPameters()