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
Merge requests
!12
merge LokalGameplay into development
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
merge LokalGameplay into development
LocalGameplay
into
development
Overview
0
Commits
7
Pipelines
0
Changes
1
Merged
Scherbaum Maximilian
requested to merge
LocalGameplay
into
development
1 year ago
Overview
0
Commits
7
Pipelines
0
Changes
1
Expand
0
0
Merge request reports
Viewing commit
447c1383
Prev
Next
Show latest version
1 file
+
3
−
2
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
447c1383
update: Player.java comments and player balancing
#74
#75
· 447c1383
Scherbaum Maximilian
authored
1 year ago
src/main/java/de/hdm_stuttgart/battlearena/Model/Entity/Player.java
+
3
−
2
Options
@@ -94,6 +94,7 @@ class Player implements IEntity {
playerDirection
=
EntityDirection
.
DOWN
;
}
//Values result from balancing
private
void
initializePlayerStats
()
{
if
(
entityClass
==
EntityClass
.
HUMAN
)
{
maxPlayerHealth
=
50
;
@@ -102,7 +103,7 @@ class Player implements IEntity {
playerSpeed
=
5
;
}
else
if
(
entityClass
==
EntityClass
.
HIGH_BORN
)
{
maxPlayerHealth
=
100
;
health
=
7
0
;
health
=
7
5
;
damage
=
2
;
playerSpeed
=
3
;
}
else
if
(
entityClass
==
EntityClass
.
LOW_BORN
)
{
@@ -111,7 +112,7 @@ class Player implements IEntity {
damage
=
10
;
playerSpeed
=
7
;
}
else
{
maxPlayerHealth
=
3
0
;
maxPlayerHealth
=
4
0
;
health
=
15
;
damage
=
7
;
playerSpeed
=
5
;
Loading