forked from IF-LK-2020/wordle
push und pull Stats überarbeitet
This commit is contained in:
41
User.java
41
User.java
@@ -1,16 +1,16 @@
|
||||
public class User {
|
||||
String connectionID;
|
||||
String username;
|
||||
private String connectionID;
|
||||
private String username;
|
||||
String password;
|
||||
int timesPlayed;
|
||||
int winPercentage;
|
||||
int currentStreak;
|
||||
int maxStreak;
|
||||
int lastDayWOTDFinished;
|
||||
int state;
|
||||
int wins;
|
||||
int [] wonInTurn;
|
||||
Game game;
|
||||
private int timesPlayed;
|
||||
private int winPercentage;
|
||||
private int currentStreak;
|
||||
private int maxStreak;
|
||||
private int lastDayWOTDFinished;
|
||||
private int state;
|
||||
private int wins;
|
||||
private int [] wonInTurn;
|
||||
private Game game;
|
||||
|
||||
public User (String pConnectionID){
|
||||
connectionID =pConnectionID;
|
||||
@@ -45,10 +45,21 @@ public class User {
|
||||
return state;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public void setWins(int wins) {
|
||||
this.wins = wins;
|
||||
}
|
||||
|
||||
public int getWinPercentage() {
|
||||
return winPercentage;
|
||||
}
|
||||
|
||||
public int getWonInTurnIndex(int index) {
|
||||
return wonInTurn[index];
|
||||
}
|
||||
|
||||
public int[] getWonInTurn() {
|
||||
return wonInTurn;
|
||||
}
|
||||
@@ -61,6 +72,10 @@ public class User {
|
||||
return username;
|
||||
}
|
||||
|
||||
public int getWins() {
|
||||
return wins;
|
||||
}
|
||||
|
||||
public void setConnectionID(String connectionID) {
|
||||
this.connectionID = connectionID;
|
||||
}
|
||||
@@ -97,6 +112,10 @@ public class User {
|
||||
this.winPercentage = winPercentage;
|
||||
}
|
||||
|
||||
public void setWonInTurnIndex(int index, int content) {
|
||||
this.wonInTurn[index] = content;
|
||||
}
|
||||
|
||||
public void setWonInTurn(int[] wonInTurn) {
|
||||
this.wonInTurn = wonInTurn;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user