games.strategy.engine.lobby.server
Class LobbyGameController

java.lang.Object
  extended by games.strategy.engine.lobby.server.LobbyGameController
All Implemented Interfaces:
ILobbyGameController, IRemote

public class LobbyGameController
extends java.lang.Object
implements ILobbyGameController


Field Summary
 
Fields inherited from interface games.strategy.engine.lobby.server.ILobbyGameController
GAME_CONTROLLER_REMOTE
 
Constructor Summary
LobbyGameController(ILobbyGameBroadcaster broadcaster, IMessenger messenger)
           
 
Method Summary
 java.util.Map<GUID,GameDescription> listGames()
           
 void postGame(GUID gameID, GameDescription description)
           
 void register(IRemoteMessenger remote)
           
 java.lang.String testGame(GUID gameID)
          Test if the server can connect to the game at this address.
 void updateGame(GUID gameID, GameDescription description)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LobbyGameController

public LobbyGameController(ILobbyGameBroadcaster broadcaster,
                           IMessenger messenger)
Method Detail

postGame

public void postGame(GUID gameID,
                     GameDescription description)
Specified by:
postGame in interface ILobbyGameController

updateGame

public void updateGame(GUID gameID,
                       GameDescription description)
Specified by:
updateGame in interface ILobbyGameController

listGames

public java.util.Map<GUID,GameDescription> listGames()
Specified by:
listGames in interface ILobbyGameController

register

public void register(IRemoteMessenger remote)

testGame

public java.lang.String testGame(GUID gameID)
Description copied from interface: ILobbyGameController
Test if the server can connect to the game at this address. This is used to see if the client address is network accessible (this will not be true if the client is behind a nat or firewall that is not properly configured)

This method may only be called by the node that is hosting this game.

Specified by:
testGame in interface ILobbyGameController