Exemplo n.º 1
0
 public Player(string name, Color color, PlayerType type, PlayerDificulty dificulty)
 {
     this.name      = name;
     this.color     = color;
     this.points    = 0;
     this.type      = type;
     this.dificulty = dificulty;
 }
Exemplo n.º 2
0
 public void setDificulty(int dificulty)
 {
     this.dificulty = (PlayerDificulty)dificulty;
 }
Exemplo n.º 3
0
 public void addPlayer(string name, Color color, PlayerType type, PlayerDificulty dificulty)
 {
     players.Add(new Player(name, color, type, dificulty));
 }