Skip to content

Commit

Permalink
cleaned stuff up
Browse files Browse the repository at this point in the history
  • Loading branch information
Daltz333 committed Nov 12, 2018
1 parent a06373d commit 62354ef
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/main/java/logic/GameHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public GameHandler(Server server, Hyperlink userName, GameMain gameController, C
public void updateUI() {
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = server.peekData();
if (data != null) {
Expand Down Expand Up @@ -77,7 +77,7 @@ public Void call() throws Exception {
public void updateClientUI() {
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = client.returnSocketData();
if (data != null) {
Expand Down Expand Up @@ -112,7 +112,7 @@ public Void call() throws Exception {
public void updateGameBoard(GridPane playerRow, GridPane opponentRow) {
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
boolean endStateOne = true;
boolean endStateTwo = true;
while(endStateOne || endStateTwo) {
Expand Down Expand Up @@ -157,7 +157,7 @@ public Void call() throws Exception {
public void listenForTurnCompletionServer() {
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = client.peekData();
if (data != null) {
Expand Down Expand Up @@ -193,7 +193,7 @@ public Void call() throws Exception {
public void listenForTurnCompletionClient() {
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = server.peekData();
if (data != null) {
Expand Down Expand Up @@ -235,7 +235,7 @@ public void listenForServerCards() {
AtomicReference<String> tempData = new AtomicReference<>();
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = client.peekData();
if (data != null) {
Expand Down Expand Up @@ -275,7 +275,7 @@ public void listenForClientCards() {
AtomicReference<String> tempData = new AtomicReference<>();
Task<Void> task = new Task<Void>() {
@Override
public Void call() throws Exception {
public Void call() {
while(true) {
String data = server.peekData();
if (data != null) {
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/scenes/SceneController.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public void setScene(int state) {
}

public void passClient(Client client) {
this.client = client;
SceneController.client = client;

}

Expand Down

0 comments on commit 62354ef

Please sign in to comment.