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; }
public void SubPlayer(FightPlayer p) { p.ComeOutRoom(); p.indexinroom = -1; playerlist.Remove(p); }
public void AddPlayer(FightPlayer p) { p.ComeInRoom(this); p.indexinroom = playerlist.Count; playerlist.Add(p); }