예제 #1
0
 public static void printOut(Talkable p)
 {
     Console.WriteLine(p.Name + " says=" + p.talk());
 }
예제 #2
0
 /// <summary>
 /// Get a context by name.
 /// </summary>
 /// <param name="talkable">The talkable to find in.</param>
 /// <param name="contextName">The context name.</param>
 /// <param name="language">The language of the name.</param>
 /// <returns>The context if found or null.</returns>
 public static Context GetContext(Talkable talkable, string contextName, string language)
 {
     return(Context.Find(talkable, contextName, language));
 }
예제 #3
0
 public static void PrintOut(Talkable p)
 {
     Console.WriteLine(p.GetName() + " says=" + p.Talk());
     outFile.FileWrite(p.GetName() + " | " + p.Talk());
 }
예제 #4
0
 /// <summary>
 /// Get a context by it's index.
 /// </summary>
 /// <param name="talkable">The talkable parent of the context.</param>
 /// <param name="contextIndex">The index of the context.</param>
 /// <returns>The <seealso cref="Diplomata.Models.Context" /> object or null.</returns>
 public static Context GetContext(Talkable talkable, int contextIndex)
 {
     return(Context.Find(talkable, contextIndex));
 }