mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-08-03 23:30:26 +02:00
fixed addPlayer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user