Esempio n. 1
0
        public wfGoClient(string name, wfGoServer svr, Form1 f)
        {
            board  = new FightBoard();
            player = new FightPlayer(name, this);
            tcp    = new TcpClient();


            heart = ConstNumber.heart;

            frm    = f;
            server = svr;
        }
Esempio n. 2
0
 public void SubPlayer(FightPlayer p)
 {
     p.ComeOutRoom();
     p.indexinroom = -1;
     playerlist.Remove(p);
 }
Esempio n. 3
0
 public void AddPlayer(FightPlayer p)
 {
     p.ComeInRoom(this);
     p.indexinroom = playerlist.Count;
     playerlist.Add(p);
 }