public static void Loggit(Utilisateur user, string message, ConsoleColor color) { Console.ForegroundColor = color; Console.Write("<{0}>", user.infos.Name); Console.ResetColor(); Console.WriteLine(message); }
public HotAndCold(Utilisateur player) : base(player) { GameName = "Hot and Cold"; rand = new Random(); toGuess = rand.Next(100); Player.Tell("Tu joue à Hot and Cold là!"); }
private static Utilisateur GIMME(Jid jid) { var toReturn = online.Find(a => a.ID.User == jid.User); if (toReturn == null) { toReturn = new Utilisateur(jid); online.Add(toReturn); Program.Loggit(toReturn, "Added!", ConsoleColor.Blue); toReturn.Input("aide"); } return toReturn; }
public Game(Utilisateur player) { Player = player; }