Exemple #1
0
        private void inicioJogo(List <String> infosPartida)
        {
            Console.SetCursorPosition((Console.WindowWidth - 33) / 2, 1);
            Console.Write("Aperte Enter para começar o jogo!");

            placar  = new Placar();
            player1 = new Player(infosPartida[0], infosPartida[1]);
            player2 = new Player(infosPartida[2], infosPartida[3], true);
            bola    = new Bola(player1, player2, placar);

            renderizaObjetos();
        }
Exemple #2
0
 public Bola(Player player1, Player player2, Placar placar)
 {
     this.player1 = player1;
     this.player2 = player2;
     this.placar  = placar;
 }