Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BattleArena
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Scherbaum Maximilian
BattleArena
Commits
96e1501a
Commit
96e1501a
authored
1 year ago
by
Schlütter Yannik
Browse files
Options
Downloads
Patches
Plain Diff
Refactored attributes of class PlayerStatistics
parent
ff84cb17
No related branches found
Branches containing commit
No related tags found
Tags containing commit
2 merge requests
!7
Merge DataBase to development
,
!6
Merging from Database to development
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hdm_stuttgart/battlearena/Persistance/Classes/PlayerStatistics.java
+25
-25
25 additions, 25 deletions
...art/battlearena/Persistance/Classes/PlayerStatistics.java
with
25 additions
and
25 deletions
src/main/java/de/hdm_stuttgart/battlearena/Persistance/Classes/PlayerStatistics.java
+
25
−
25
View file @
96e1501a
...
@@ -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
player
Lost
;
private
int
games
Lost
;
private
int
playerWonRate
;
private
int
gamesWon
;
private
int
playerK
ills
;
private
int
k
ills
;
private
int
playerD
eaths
;
private
int
d
eaths
;
private
int
blocksDestroyed
;
private
int
blocksDestroyed
;
private
int
gameTime
;
private
int
gameTime
;
public
PlayerStatistics
(
String
playerName
,
int
player
Lost
,
int
playerWonRate
,
int
playerK
ills
,
int
playerD
eaths
,
int
blocksDestroyed
,
int
gameTime
)
{
public
PlayerStatistics
(
String
playerName
,
int
games
Lost
,
int
gamesWon
,
int
k
ills
,
int
d
eaths
,
int
blocksDestroyed
,
int
gameTime
)
{
this
.
playerName
=
playerName
;
this
.
playerName
=
playerName
;
this
.
player
Lost
=
player
Lost
;
this
.
games
Lost
=
games
Lost
;
this
.
playerWonRate
=
playerWonRate
;
this
.
gamesWon
=
gamesWon
;
this
.
playerKills
=
playerK
ills
;
this
.
kills
=
k
ills
;
this
.
playerD
eaths
=
playerD
eaths
;
this
.
d
eaths
=
d
eaths
;
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
get
Player
Lost
()
{
public
int
get
Games
Lost
()
{
return
player
Lost
;
return
games
Lost
;
}
}
public
void
set
Player
Lost
(
int
player
Lost
)
{
public
void
set
Games
Lost
(
int
games
Lost
)
{
this
.
player
Lost
=
player
Lost
;
this
.
games
Lost
=
games
Lost
;
}
}
public
int
get
PlayerWonRate
()
{
public
int
get
GamesWon
()
{
return
playerWonRate
;
return
gamesWon
;
}
}
public
void
set
PlayerWonRate
(
int
playerWonRate
)
{
public
void
set
GamesWon
(
int
gamesWon
)
{
this
.
playerWonRate
=
playerWonRate
;
this
.
gamesWon
=
gamesWon
;
}
}
public
int
get
Player
Kills
()
{
public
int
getKills
()
{
return
playerK
ills
;
return
k
ills
;
}
}
public
void
set
Player
Kills
(
int
playerK
ills
)
{
public
void
setKills
(
int
k
ills
)
{
this
.
playerKills
=
playerK
ills
;
this
.
kills
=
k
ills
;
}
}
public
int
get
Player
Deaths
()
{
public
int
getDeaths
()
{
return
playerD
eaths
;
return
d
eaths
;
}
}
public
void
set
Player
Deaths
(
int
playerD
eaths
)
{
public
void
setDeaths
(
int
d
eaths
)
{
this
.
playerD
eaths
=
playerD
eaths
;
this
.
d
eaths
=
d
eaths
;
}
}
public
int
getBlocksDestroyed
()
{
public
int
getBlocksDestroyed
()
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment