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
Modifier and TypeMethodDescriptionintbooleanvoidstart()booleanbooleanwaitUntilGameStartedSuccessfully(int timeout) booleanwaitUntilReadyToAcceptClients(int timeout) Waits until socket is up, i.e.
-
Method Details
-
start
void start() -
makeRunningGame
boolean makeRunningGame() -
getHostingPort
int getHostingPort() -
getHostingHost
String getHostingHost() -
tryToStart
boolean tryToStart() -
waitUntilReadyToAcceptClients
boolean waitUntilReadyToAcceptClients(int timeout) Waits until socket is up, i.e. game is ready to accept clients. -
waitUntilGameStartedSuccessfully
boolean waitUntilGameStartedSuccessfully(int timeout)
-