DOD, and added javadocs/fixed javadocs #story[1087]
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user