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
433b78c6
Commit
433b78c6
authored
1 year ago
by
Elrabu
Browse files
Options
Downloads
Patches
Plain Diff
Update: ConnectionHandler.java Added Getter for the PlayerX and PlayerY Variable
parent
182c019f
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!35
Update: Added more Stuff to be transported over the server.
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/ConnectionHandler.java
+11
-0
11 additions, 0 deletions
...gart/battlearena/Model/Multiplayer/ConnectionHandler.java
with
11 additions
and
0 deletions
src/main/java/de/hdm_stuttgart/battlearena/Model/Multiplayer/ConnectionHandler.java
+
11
−
0
View file @
433b78c6
...
@@ -5,6 +5,17 @@ import org.apache.logging.log4j.LogManager;
...
@@ -5,6 +5,17 @@ import org.apache.logging.log4j.LogManager;
public
class
ConnectionHandler
{
public
class
ConnectionHandler
{
private
int
playerX
;
private
int
playerY
;
private
static
final
Logger
log
=
LogManager
.
getLogger
(
ConnectionHandler
.
class
);
private
static
final
Logger
log
=
LogManager
.
getLogger
(
ConnectionHandler
.
class
);
public
int
getPlayerX
()
{
return
playerX
;
}
public
int
getPlayerY
()
{
return
playerY
;
}
}
}
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