Skip to content
Snippets Groups Projects
Commit aaf0eab4 authored by morkolai's avatar morkolai
Browse files

Removed redundant code from model

parent e030d3e4
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
......@@ -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
}
......
......@@ -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
}
......
//Wich players are int the game, holds a Game
//Controller?
// TODO: remove? Replaced by Lobby.java
\ No newline at end of file
package com.mygdx.game.model
package com.mygdx.game.model
import com.badlogic.gdx.math.Vector3
......
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