public Session(TcpClient c1, TcpClient c2) { connection1 = c1; connection2 = c2; player1points = 0; player2points = 0; manager = new TCPDataManager(); game = new TrivialPersuit(this.manager, this); InitializeSession(); }
public Session(TcpClient c1, TcpClient c2, Server server, int id) { this.id = id; this.server = server; connection1 = c1; connection2 = c2; player1points = 0; player2points = 0; InitializeSession(); game = new TrivialPersuit(this); }