DOD, and added javadocs/fixed javadocs #story[1087]

This commit is contained in:
Fan-Wu Yang
2017-07-27 16:24:19 +12:00
parent 9eaf24e699
commit 442920f9f6
8 changed files with 38 additions and 4 deletions
@@ -17,7 +17,7 @@ import java.net.URL;
import java.util.ResourceBundle;
/**
* Created by zwu18 on 25/07/17.
* Controller for the Lobby for entering games
*/
public class LobbyController extends Controller {
@@ -64,6 +64,9 @@ public class LobbyController extends Controller {
joinGameBtn.setDisable(true);
}
/**
* Refreshes the connections in the lobby
*/
public void refreshBtnPressed(){
for(RaceConnection connection: connections) {
connection.check();
@@ -82,6 +85,9 @@ public class LobbyController extends Controller {
} catch (Exception e){}
}
/**
* Connect to a connection.
*/
public void connectSocket() {
try{
RaceConnection connection = lobbyTable.getSelectionModel().getSelectedItem();
@@ -113,6 +119,9 @@ public class LobbyController extends Controller {
return lobbyWrapper;
}
/**
* Enter the lobby page.
*/
public void enterLobby(){
lobbyWrapper.setVisible(true);
}