fixed addPlayer

This commit is contained in:
Johannes Schmelz
2024-11-15 04:27:32 +01:00
parent 3bdfd6a78a
commit 10b978debf
2 changed files with 6 additions and 2 deletions

View File

@@ -40,12 +40,16 @@ public class Player implements FieldVisitor<Void>{
private int rollResult;
private PlayerHandler handler;
Player(int id, String name, PlayerHandler handler) {
public Player(int id, String name, PlayerHandler handler) {
this.name = name;
this.id = id;
this.handler = handler;
}
public Player(int id) {
this.id = id;
}
public int getId() {
return id;
}