Example #1
0
 public FightPlayer(string Name, wfGoClient c)
 {
     name        = Name;
     room        = null;
     client      = c;
     indexinroom = -1;
 }
Example #2
0
 private void Listen()
 {
     tcplistener.Start();
     while (state)
     {
         wfGoClient client = new wfGoClient("null", this, frm);
         client.tcp = tcplistener.AcceptTcpClient();
         client.StartListenThread();
         client.StartHeartSubThread();
         clientlist.Add(client);
         Broadcast b = new Broadcast(roomlist, Convert.ToInt32(frm.LblOnLineNum.Text), frm.TxtInfo.Text);
         client.SendBroadcastMSG(b);
     }
 }