net.sf.colossus.webcommon
Interface IGameRunner

All Known Implementing Classes:
RunGameInOwnJVM, RunGameInSameJVM

public interface IGameRunner

Interface for classes that can run/supervise a WebServer Game. Implemented by RunGameInOwnJVM and RunGameInSameJVM.

Author:
Clemens Katzer

Method Summary
 java.lang.String getHostingHost()
           
 int getHostingPort()
           
 boolean makeRunningGame()
           
 void setServerNull()
           
 void start()
           
 boolean waitUntilGameStartedSuccessfully(int timeout)
           
 boolean waitUntilReadyToAcceptClients(int timeout)
          Waits until socket is up, i.e.
 

Method Detail

start

void start()

makeRunningGame

boolean makeRunningGame()

getHostingPort

int getHostingPort()

getHostingHost

java.lang.String getHostingHost()

setServerNull

void setServerNull()

waitUntilReadyToAcceptClients

boolean waitUntilReadyToAcceptClients(int timeout)
Waits until socket is up, i.e. game is ready to accept clients.


waitUntilGameStartedSuccessfully

boolean waitUntilGameStartedSuccessfully(int timeout)