public Truco(string p1n, BotConnection p1b, InterfazPlayer p1i, string p2n, BotConnection p2b, InterfazPlayer p2i, int p, Resultado r) { _partidas = p; _resultado = r; _player1 = new Player(p1n, this, p1b, p1i); _player2 = new Player(p2n, this, p2b, p2i); iniciarPartida(); }
public Player(string n, Truco t, BotConnection b, InterfazPlayer i) { nombre = n; _truco = t; _bot = b; if (_bot != null) { _bot.setPlayer(this); } _interfaz = i; if (_interfaz != null) { _interfaz.asignarNombre(n); } _cartas = new List <Carta>(); _cartasEnMesa = new List <Carta>(); _puntaje = 0; _partidasGanadas = 0; }