Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
TDT4240-group23
SpaceCheckers
Commits
aaf0eab4
Commit
aaf0eab4
authored
Apr 26, 2021
by
morkolai
Browse files
Removed redundant code from model
parent
e030d3e4
Changes
5
Hide whitespace changes
Inline
Side-by-side
CheckersClient/core/src/com/mygdx/game/controllers/NetworkController.java
View file @
aaf0eab4
...
...
@@ -22,7 +22,7 @@ public class NetworkController {
this
.
client
=
new
Client
();
client
.
start
();
try
{
String
IP4_LAN_ADDRESS
=
"192.168.
0.136
"
;
String
IP4_LAN_ADDRESS
=
"192.168.
1.65
"
;
client
.
connect
(
10000
,
IP4_LAN_ADDRESS
,
54555
);
}
catch
(
IOException
e
)
{
...
...
CheckersClient/core/src/com/mygdx/game/model/GameMode.kt
View file @
aaf0eab4
...
...
@@ -14,18 +14,10 @@ class GameMode(rules:AbstractRules, board:AbstractBoard) {
this
.
board
=
board
}
fun
setBoard
(
board
:
AbstractBoard
)
{
this
.
board
=
board
}
fun
getBoard
():
AbstractBoard
{
return
this
.
board
}
fun
setRules
(
rules
:
AbstractRules
)
{
this
.
rules
=
rules
}
fun
getRules
():
AbstractRules
{
return
this
.
rules
}
...
...
CheckersClient/core/src/com/mygdx/game/model/GameState.kt
View file @
aaf0eab4
...
...
@@ -32,22 +32,6 @@ class GameState(gameMode: GameMode) {
return
this
.
gameMode
}
fun
isStarted
():
Boolean
{
return
isStarted
}
fun
setStarted
()
{
this
.
isStarted
=
true
}
fun
isFinished
():
Boolean
{
return
isFinished
}
fun
getWinner
():
Int
?
{
return
this
.
winner
}
fun
setWinner
(
winner
:
Int
)
{
this
.
winner
=
winner
}
...
...
CheckersClient/core/src/com/mygdx/game/model/Lobby.kt
deleted
100644 → 0
View file @
e030d3e4
//Wich players are int the game, holds a Game
//Controller?
// TODO: remove? Replaced by Lobby.java
\ No newline at end of file
CheckersClient/core/src/com/mygdx/game/model/gamemodes/boards/Direction.kt
View file @
aaf0eab4
package
com.mygdx.game.model
package
com.mygdx.game.model
import
com.badlogic.gdx.math.Vector3
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment