Updated maven version to 2.0.
Added a dedicatedServer module. Removed Visualiser module. Removed mock module. Removed network module. Fixed weird exception non-handling that appeared for some reason.
This commit is contained in:
@@ -49,7 +49,6 @@ public class HostController extends Controller {
|
||||
public void hostGamePressed() throws IOException{
|
||||
try {
|
||||
this.game = new Event(false);
|
||||
game.start();
|
||||
connectSocket("localhost", 4942);
|
||||
} catch (EventConstructionException e) {
|
||||
Logger.getGlobal().log(Level.SEVERE, "Could not create Event.", e);
|
||||
|
||||
@@ -68,13 +68,7 @@ public class VisualiserRaceService implements RunnableWithFramePeriod {
|
||||
while (!Thread.interrupted()) {
|
||||
|
||||
long currentFrameTime = System.currentTimeMillis();
|
||||
|
||||
try {
|
||||
waitForFramePeriod(previousFrameTime, currentFrameTime, 16);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
|
||||
waitForFramePeriod(previousFrameTime, currentFrameTime, 16);
|
||||
previousFrameTime = currentFrameTime;
|
||||
|
||||
|
||||
|
||||
@@ -330,11 +330,8 @@ public class ServerConnection implements RunnableWithFramePeriod {
|
||||
while (!Thread.interrupted()) {
|
||||
|
||||
long currentFrameTime = System.currentTimeMillis();
|
||||
try {
|
||||
waitForFramePeriod(previousFrameTime, currentFrameTime, 100);
|
||||
} catch (Exception e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
waitForFramePeriod(previousFrameTime, currentFrameTime, 100);
|
||||
|
||||
previousFrameTime = currentFrameTime;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user