예제 #1
0
        public SpeechBubble(SpeechHandler speechHandler)
            : this(speechHandler.Speaker)
        {
            speechHandler.Generate(this);
            Listeners = new List<Personnage>(speechHandler.Listeners);

            OnLaunching += new LaunchingEventHandler(SpeechBubble_OnLaunching);
            OnClosing += new ClosingEventHandler(SpeechBubble_OnClosing);
        }
예제 #2
0
        public Boolean AddSpeech(SpeechHandler speech, Personnage listener)
        {
            speech.Listeners.Clear();

            if (speech.IsEmpty())
                return false;

            speech.Listeners.Add(listener);

            SpeechHandlers.Enqueue(speech);

            return true;
        }
예제 #3
0
 public SpeechHandler(Personnage speaker, SpeechHandler copy)
 {
     Messages = new List<SpeechMessage>(copy.Messages);
     Speaker = speaker;
     Listeners = new List<Personnage>(copy.Listeners);
 }