Skip to content
Snippets Groups Projects
Commit 96e1501a authored by Schlütter Yannik's avatar Schlütter Yannik
Browse files

Refactored attributes of class PlayerStatistics

parent ff84cb17
No related branches found
No related tags found
2 merge requests!7Merge DataBase to development,!6Merging from Database to development
...@@ -8,19 +8,19 @@ public class PlayerStatistics { ...@@ -8,19 +8,19 @@ public class PlayerStatistics {
private String playerID; private String playerID;
private String playerName; private String playerName;
private int playerLost; private int gamesLost;
private int playerWonRate; private int gamesWon;
private int playerKills; private int kills;
private int playerDeaths; private int deaths;
private int blocksDestroyed; private int blocksDestroyed;
private int gameTime; private int gameTime;
public PlayerStatistics(String playerName, int playerLost, int playerWonRate, int playerKills, int playerDeaths, int blocksDestroyed, int gameTime) { public PlayerStatistics(String playerName, int gamesLost, int gamesWon, int kills, int deaths, int blocksDestroyed, int gameTime) {
this.playerName = playerName; this.playerName = playerName;
this.playerLost = playerLost; this.gamesLost = gamesLost;
this.playerWonRate = playerWonRate; this.gamesWon = gamesWon;
this.playerKills = playerKills; this.kills = kills;
this.playerDeaths = playerDeaths; this.deaths = deaths;
this.blocksDestroyed = blocksDestroyed; this.blocksDestroyed = blocksDestroyed;
this.gameTime = gameTime; this.gameTime = gameTime;
} }
...@@ -33,36 +33,36 @@ public class PlayerStatistics { ...@@ -33,36 +33,36 @@ public class PlayerStatistics {
this.playerName = playerName; this.playerName = playerName;
} }
public int getPlayerLost() { public int getGamesLost() {
return playerLost; return gamesLost;
} }
public void setPlayerLost(int playerLost) { public void setGamesLost(int gamesLost) {
this.playerLost = playerLost; this.gamesLost = gamesLost;
} }
public int getPlayerWonRate() { public int getGamesWon() {
return playerWonRate; return gamesWon;
} }
public void setPlayerWonRate(int playerWonRate) { public void setGamesWon(int gamesWon) {
this.playerWonRate = playerWonRate; this.gamesWon = gamesWon;
} }
public int getPlayerKills() { public int getKills() {
return playerKills; return kills;
} }
public void setPlayerKills(int playerKills) { public void setKills(int kills) {
this.playerKills = playerKills; this.kills = kills;
} }
public int getPlayerDeaths() { public int getDeaths() {
return playerDeaths; return deaths;
} }
public void setPlayerDeaths(int playerDeaths) { public void setDeaths(int deaths) {
this.playerDeaths = playerDeaths; this.deaths = deaths;
} }
public int getBlocksDestroyed() { public int getBlocksDestroyed() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment