javadoc fixes

#story[1188]
This commit is contained in:
hba56
2017-09-13 17:12:24 +12:00
parent e4dbebfcac
commit 4c52673fc1
9 changed files with 24 additions and 21 deletions
@@ -90,6 +90,7 @@ public class HostGameController extends Controller {
* Connect to a socket
* @param address address of the server
* @param port port that the server is run off
* @throws IOException socket error
*/
public void connectSocket(String address, int port) throws IOException {
Socket socket = new Socket(address, port);
@@ -99,6 +100,7 @@ public class HostGameController extends Controller {
/**
* Menu button pressed. Prompt alert then return to menu
* @throws IOException socket error
*/
public void menuBtnPressed() throws Exception {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
@@ -262,9 +262,6 @@ public class InGameLobbyController extends Controller {
}.start();
}
/**
* Hosts a game.
*/
public void enterGameLobby(Socket socket, boolean isHost){
try {
@@ -283,6 +280,7 @@ public class InGameLobbyController extends Controller {
/**
* Menu button pressed. Prompt alert then return to menu
* @throws IOException socket erro
*/
public void menuBtnPressed() throws IOException {
Alert alert = new Alert(Alert.AlertType.CONFIRMATION);
@@ -7,22 +7,17 @@ import javafx.scene.control.Button;
import javafx.scene.control.TableColumn;
import javafx.scene.control.TableView;
import javafx.scene.control.TextField;
import javafx.scene.layout.AnchorPane;
import network.Messages.HostGame;
import visualiser.app.MatchBrowserSingleton;
import visualiser.model.RaceConnection;
import visualiser.network.MatchBrowserClientRunnable;
import visualiser.network.MatchBrowserInterface;
import visualiser.network.MatchBrowserLobbyInterface;
import java.io.IOException;
import java.net.DatagramSocket;
import java.net.Socket;
import java.net.SocketException;
import java.net.URL;
import java.util.Observable;
import java.util.Observer;
import java.util.ResourceBundle;
/**
* Controller for the Lobby for entering games
@@ -87,6 +82,7 @@ public class LobbyController extends Controller {
/**
* Connect to a connection.
* @throws IOException socket error
*/
public void connectSocket() throws IOException {
RaceConnection connection = lobbyTable.getSelectionModel().getSelectedItem();
@@ -38,6 +38,7 @@ public class TitleController extends Controller {
/**
* To be implemented at a later date- will open the next scene displaying
* games a player can join. Place holder method for now!
* @throws IOException socket error
*/
public void joinAGame() throws IOException {
loadScene("lobby.fxml");