Refactoring client for more atomic classes, will mimic the socket, game state, logic thread layout used by the server.

#refactor
This commit is contained in:
Calum
2017-07-20 13:04:29 +12:00
parent 360c55fdb9
commit 037b0db01b
4 changed files with 13 additions and 2 deletions
@@ -35,7 +35,6 @@ public class ClientToServerThread extends Thread {
} catch (IOException e) {
e.printStackTrace();
}
}
static void serverLog(String message, int logLevel){
@@ -0,0 +1,10 @@
package seng302.client;
import javafx.scene.layout.AnchorPane;
/**
* Created by cir27 on 20/07/17.
*/
public class GameView extends AnchorPane {
}
@@ -29,6 +29,7 @@ import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.util.Duration;
import javafx.util.StringConverter;
import seng302.client.ClientToServerThread;
import seng302.utilities.GeoUtility;
import seng302.controllers.annotations.Annotation;
import seng302.controllers.annotations.ImportantAnnotationController;
@@ -86,6 +87,7 @@ public class RaceViewController extends Thread implements ImportantAnnotationDel
private Yacht selectedBoat;
public void initialize() {
// Load a default important annotation state
importantAnnotations = new ImportantAnnotationsState();
@@ -9,9 +9,9 @@ import javafx.scene.paint.Color;
import javafx.scene.shape.Line;
import javafx.scene.shape.Polygon;
import javafx.scene.transform.Rotate;
import seng302.controllers.GameViewController;
import seng302.models.Yacht;
import seng302.utilities.GeoUtility;
import seng302.controllers.CanvasController;
import seng302.models.mark.GateMark;
import seng302.models.mark.Mark;
import seng302.models.mark.SingleMark;