javadoc fixes
#story[1188]
This commit is contained in:
@@ -27,6 +27,7 @@ public class MatchBrowserLobbyInterface extends Observable {
|
||||
|
||||
/**
|
||||
* start receiving game info
|
||||
* @param socket to receive from
|
||||
*/
|
||||
public void startReceivingHostData(DatagramSocket socket) {
|
||||
this.socket = socket;
|
||||
@@ -37,6 +38,8 @@ public class MatchBrowserLobbyInterface extends Observable {
|
||||
|
||||
/**
|
||||
* Used by client to received race information from the server
|
||||
* @param socket socket to read from
|
||||
* @throws IOException socket error
|
||||
*/
|
||||
protected void receiveGameInfo(DatagramSocket socket) throws IOException {
|
||||
byte[] data = new byte[64];
|
||||
@@ -47,7 +50,7 @@ public class MatchBrowserLobbyInterface extends Observable {
|
||||
try {
|
||||
HostGamesRequest message = (HostGamesRequest) hostedGamesRequestDecoder.decode(data);
|
||||
games = message.getKnownGames();
|
||||
System.out.println(games.get(0).getIp());
|
||||
// System.out.println(games.get(0).getIp());
|
||||
setChanged();
|
||||
notifyObservers();
|
||||
} catch (InvalidMessageException e) {
|
||||
@@ -57,6 +60,7 @@ public class MatchBrowserLobbyInterface extends Observable {
|
||||
|
||||
/**
|
||||
* Gets the host games
|
||||
* @return games to be returned in list
|
||||
*/
|
||||
public List<HostGame> getGames() {
|
||||
return games;
|
||||
|
||||
Reference in New Issue
Block a user