Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
Taslim-M committed Nov 17, 2019
1 parent 832fa45 commit c099659
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/hyperJump/Proxy.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class Proxy implements Observer, Subject {
// register yourself as a proxy with the dispatcher
d.registerObserver(this);
// Initiate the fields

observers = new ArrayList<Observer>();
}

Expand All @@ -27,14 +27,14 @@ void send_msg(msg m) {

@Override
public void call_back(msg m) {
msgToForward = m;
// call the game thread
notifyObservers(); // directly call_back the game thread
try {
Debug.trace("Message " + m.value + " received by " + this + " from dispacher");
} catch (IOException e) {
e.printStackTrace();
}
msgToForward = m;
// call the game thread
notifyObservers(); // directly call_back the game thread
try {
Debug.trace("Message " + m.value + " received by " + this + " from dispacher");
} catch (IOException e) {
e.printStackTrace();
}
}

@Override
Expand Down

0 comments on commit c099659

Please sign in to comment.