forked from IF-LK-2020/wordle
not Valid Command und Willkommens und schlussnachricht hinzugefügt
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
public class User {
|
||||
int connectionID;
|
||||
String connectionID;
|
||||
String username;
|
||||
String password;
|
||||
int timesPlayed;
|
||||
@@ -11,7 +11,7 @@ public class User {
|
||||
int [] wonInTurn;
|
||||
Game game;
|
||||
|
||||
public User (int pConnectionID){
|
||||
public User (String pConnectionID){
|
||||
connectionID =pConnectionID;
|
||||
game = new Game();
|
||||
}
|
||||
@@ -20,7 +20,7 @@ public class User {
|
||||
return game;
|
||||
}
|
||||
|
||||
public int getConnectionID() {
|
||||
public String getConnectionID() {
|
||||
return connectionID;
|
||||
}
|
||||
|
||||
@@ -60,7 +60,7 @@ public class User {
|
||||
return username;
|
||||
}
|
||||
|
||||
public void setConnectionID(int connectionID) {
|
||||
public void setConnectionID(String connectionID) {
|
||||
this.connectionID = connectionID;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user