Updated and added more documentations

#story[1047]
This commit is contained in:
Haoming Yin
2017-07-26 19:55:35 +12:00
parent af9f1417f1
commit ef6821a0cd
5 changed files with 32 additions and 18 deletions
@@ -13,8 +13,10 @@ public class ClientStateQueryingRunnable extends Observable implements Runnable
public ClientStateQueryingRunnable() {}
/**
* Notifies observers "game started" if ClientState raceStarted flag is true and terminates itself.
* Notifies observers "update players" if ClientState boatsUpdated flag is true and resets the flag to false;
* Notifies observers(the lobby controller) that "game started" if ClientState
* raceStarted flag is true and terminates itself. Also, it notifies observers
* to add/remove players if ClientState boatsUpdated flag is true, then resets
* the flag to false;
*/
@Override
public void run() {