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); }
public Boolean AddSpeech(SpeechHandler speech, Personnage listener) { speech.Listeners.Clear(); if (speech.IsEmpty()) return false; speech.Listeners.Add(listener); SpeechHandlers.Enqueue(speech); return true; }
public SpeechHandler(Personnage speaker, SpeechHandler copy) { Messages = new List<SpeechMessage>(copy.Messages); Speaker = speaker; Listeners = new List<Personnage>(copy.Listeners); }