Exemple #1
0
 public static void Loggit(Utilisateur user, string message, ConsoleColor color)
 {
     Console.ForegroundColor = color;
     Console.Write("<{0}>", user.infos.Name);
     Console.ResetColor();
     Console.WriteLine(message);
 }
Exemple #2
0
 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à!");
 }
Exemple #3
0
        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;
        }
Exemple #4
0
 public Game(Utilisateur player)
 {
     Player = player;
 }