示例#1
0
    // private Player (Player.PlayerID pid, int points = 0, int wins = 0) {
    //     PlayerDetails = new Player.Details();
    //     PID = pid;
    //     pointsScored = points;
    //     roundsWon = wins;
    //     AssignPaddle ();
    // }

    public Player(Player.PlayerID pid, int points = 0, int wins = 0)
    {
        PlayerDetails = new Player.Details();
        PID           = pid;
        pointsScored  = points;
        roundsWon     = wins;
        AssignPaddle();
    }
示例#2
0
 public Player()
 {
     PlayerDetails = new Player.Details();
     AssignPaddle();
 }