public static void printOut(Talkable p) { Console.WriteLine(p.Name + " says=" + p.talk()); }
/// <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)); }
public static void PrintOut(Talkable p) { Console.WriteLine(p.GetName() + " says=" + p.Talk()); outFile.FileWrite(p.GetName() + " | " + p.Talk()); }
/// <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)); }