public void msg(ObiasClient SendedUser, String msg) { foreach (ObiasClient c in UserList) { c.msg(SendedUser.Username + ": " + msg); } }
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); }
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); }