Removed controller and replaced with runnable.
Remove unused logic package
This commit is contained in:
@@ -1,9 +1,7 @@
|
||||
package netwerkprog.game.client.game.connections;
|
||||
|
||||
import com.badlogic.gdx.Gdx;
|
||||
import netwerkprog.game.util.application.Controller;
|
||||
import netwerkprog.game.util.data.connection.ConnectionData;
|
||||
import netwerkprog.game.util.data.Data;
|
||||
import netwerkprog.game.util.data.connection.ConnectionData;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.io.ObjectInputStream;
|
||||
@@ -11,7 +9,7 @@ import java.io.ObjectOutputStream;
|
||||
import java.net.Socket;
|
||||
import java.util.Arrays;
|
||||
|
||||
public class Client extends Controller {
|
||||
public class Client implements Runnable {
|
||||
private final int port;
|
||||
private final String hostname;
|
||||
private boolean isConnected;
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
package netwerkprog.game.client.game.logic;
|
||||
|
||||
import netwerkprog.game.util.application.Controller;
|
||||
|
||||
public class Logic extends Controller {
|
||||
|
||||
public Logic() {
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
package netwerkprog.game.server;
|
||||
|
||||
import netwerkprog.game.util.application.Controller;
|
||||
import netwerkprog.game.util.data.Data;
|
||||
import netwerkprog.game.util.data.connection.ConnectionData;
|
||||
import netwerkprog.game.util.data.connection.NameData;
|
||||
@@ -15,7 +14,7 @@ import java.util.ArrayList;
|
||||
/**
|
||||
* The sessionController manages any connections from new clients and assigns individual threads to said clients.
|
||||
*/
|
||||
public class SessionController extends Controller implements DataCallback {
|
||||
public class SessionController implements DataCallback, Runnable {
|
||||
private ServerSocket serverSocket;
|
||||
private final ArrayList<ServerClient> clients;
|
||||
private boolean listening;
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
package netwerkprog.game.util.application;
|
||||
|
||||
public abstract class Controller implements Runnable {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user