Exemplo n.º 1
0
        /// <summary>
        /// A check to see if a spacific sound is playing.
        /// </summary>
        /// <param name="soundName">The name of the sound to check.</param>
        /// <returns>The result of the check.</returns>
        public static bool IsPlaying(String soundName)
        {
            Cue c = soundBank.GetCue(soundName);

            foreach (Cue cu in cueSounds)
            {
                if (c.ToString() == cu.ToString())
                {
                    if (cu.IsPlaying)
                    {
                        return(true);
                    }
                }
            }

            return(false);
        }
Exemplo n.º 2
0
 public string GetName()
 {
     return(MyAction.ToString() + "-" + MyCue.ToString() + "-" + MyDirection.ToString());
 }