Example #1
0
 public void EmotionDOWN(string emo, int intensity)
 {
     HapFACS.HapFACSEmotion emFACS = new HapFACS.HapFACSEmotion();
     if (emo == "aHappy")
     {
         haptekPlayer.HyperText = emFACS.Happiness(intensity.ToString(), (intensity+10).ToString());
     }
     else if (emo == "aSad")
     {
         haptekPlayer.HyperText = emFACS.Sadness(intensity.ToString(), (intensity + 10).ToString());
     }
     else if (emo == "aAngry")
     {
         haptekPlayer.HyperText = emFACS.Anger(intensity.ToString(), (intensity + 10).ToString());
     }
     else
     {
         haptekPlayer.HyperText = emFACS.Neutral();
     }
 }
Example #2
0
 // for the module 1 we dont need to go increasingly
 public void Emotion(string emo)
 {
     HapFACS.HapFACSEmotion emFACS = new HapFACS.HapFACSEmotion();
     if (emo == "aHappy")
     {
         haptekPlayer.HyperText = emFACS.Happiness("75", "0");
     }
     else if (emo == "aSad")
     {
         haptekPlayer.HyperText = emFACS.Sadness("75", "0");
     }
     else if (emo == "aAngry")
     {
         haptekPlayer.HyperText = emFACS.Anger("75", "0");
     }
     else
     {
         haptekPlayer.HyperText = emFACS.Neutral();
     }
 }