Beispiel #1
0
        private IC3poSpeachProvider HowToSpeakMaster(C3poVoiceInterface speachProvider)
        {
            switch (speachProvider)
            {
            case C3poVoiceInterface.Console:
                return(new C3poConsoleSpeachProvider());

            case C3poVoiceInterface.LibLog:
                return(new C3poLibLogSpeachProvider());

            default:
                return(null);
            }
        }
Beispiel #2
0
 public C3poTalk(C3poVoiceInterface speachProvider = C3poVoiceInterface.Silent)
 {
     Says = HowToSpeakMaster(speachProvider);
 }
Beispiel #3
0
 public void AddVoiceInterface(C3poVoiceInterface voiceInterface)
 {
     languages.Add(new C3poTalk(voiceInterface));
 }