private IC3poSpeachProvider HowToSpeakMaster(C3poVoiceInterface speachProvider) { switch (speachProvider) { case C3poVoiceInterface.Console: return(new C3poConsoleSpeachProvider()); case C3poVoiceInterface.LibLog: return(new C3poLibLogSpeachProvider()); default: return(null); } }
public C3poTalk(C3poVoiceInterface speachProvider = C3poVoiceInterface.Silent) { Says = HowToSpeakMaster(speachProvider); }
public void AddVoiceInterface(C3poVoiceInterface voiceInterface) { languages.Add(new C3poTalk(voiceInterface)); }