コード例 #1
0
 public void msg(ObiasClient SendedUser, String msg)
 {
     foreach (ObiasClient c in UserList)
     {
         c.msg(SendedUser.Username + ": " + msg);
     }
 }
コード例 #2
0
        public ObiasRoom OpenSupportRoom(ObiasClient c)
        {
            Random    rnd        = new Random();
            int       RoomNumber = 3;
            ObiasRoom r          = new ObiasRoom("Support", RoomNumber);

            r.join(c);
            r.join(Support[rnd.Next(0, Support.Count)]);
            return(r);
        }
コード例 #3
0
        public void join(ObiasClient c)
        {
            c.room     = this;
            c.isInRoom = true;
            msg(c.Username + " Joined the Room");
            c.msg("Joined " + Name + " Room");
            String user = "";

            foreach (ObiasClient a in UserList)
            {
                user += a.Username + "; ";
            }
            UserList.Add(c);
        }