vooga.network.gamelobby
Interface ILobbyInfoReceiver

All Known Implementing Classes:
MultiplayerLobbyFrame

public interface ILobbyInfoReceiver

This interface should be implemented by classes that want to receive updates from the server concerning lobby activity via a VoogaLobbyClient .

Author:
tws10, tgr3, sam1

Method Summary
 void receiveGameStarting(long lobbyID, int playerNumber, int numberOfPlayers)
          Perform the appropriate action for starting the game.
 void receiveLobbyClosed(long lobbyID)
          Perform the appropriate action when a game session lobby has closed.
 void receiveNewLobby(long lobbyID, java.lang.String lobbyName)
          Perform the appropriate action when a new game session lobby has been opened.
 void receiveUserJoinedLobby(long lobbyID, java.lang.String userName)
          Perform the appropriate action when a user has joined a game session lobby.
 void receiveUserLeftLobby(long lobbyID, java.lang.String userName)
          Perform the appropriate action when a user has left a game session lobby.
 

Method Detail

receiveNewLobby

void receiveNewLobby(long lobbyID,
                     java.lang.String lobbyName)
Perform the appropriate action when a new game session lobby has been opened.

Parameters:
lobbyID -
lobbyName -

receiveLobbyClosed

void receiveLobbyClosed(long lobbyID)
Perform the appropriate action when a game session lobby has closed.

Parameters:
lobbyID -

receiveUserJoinedLobby

void receiveUserJoinedLobby(long lobbyID,
                            java.lang.String userName)
Perform the appropriate action when a user has joined a game session lobby.

Parameters:
lobbyID - - the ID of the lobby the user has joined.
userName -

receiveUserLeftLobby

void receiveUserLeftLobby(long lobbyID,
                          java.lang.String userName)
Perform the appropriate action when a user has left a game session lobby.

Parameters:
lobbyID -
userName -

receiveGameStarting

void receiveGameStarting(long lobbyID,
                         int playerNumber,
                         int numberOfPlayers)
Perform the appropriate action for starting the game.

Parameters:
lobbyID - - the ID of the lobby from which the game is starting
playerNumber - - the player number for this player
numberOfPlayers - - the total number of human players