public final class PreGameInputHandler extends InputHandler
PreGameController| Modifier and Type | Field and Description |
|---|---|
private boolean |
launching
Is the game launching yet.
|
private static java.util.logging.Logger |
logger |
| Constructor and Description |
|---|
PreGameInputHandler(FreeColServer freeColServer)
The constructor to use.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.w3c.dom.Element |
logout(Connection connection,
org.w3c.dom.Element element)
Handles a "logout"-message.
|
private org.w3c.dom.Element |
ready(Connection connection,
org.w3c.dom.Element element)
Handles a "ready"-message from a client.
|
private org.w3c.dom.Element |
requestLaunch(Connection connection,
org.w3c.dom.Element element)
Handles a "requestLaunch"-message from a client.
|
private org.w3c.dom.Element |
setAvailable(Connection connection,
org.w3c.dom.Element element)
Handles a "setAvailable"-message from a client.
|
private org.w3c.dom.Element |
setColor(Connection connection,
org.w3c.dom.Element element)
Handles a "setColor"-message from a client.
|
private org.w3c.dom.Element |
setNation(Connection connection,
org.w3c.dom.Element element)
Handles a "setNation"-message from a client.
|
private org.w3c.dom.Element |
setNationType(Connection connection,
org.w3c.dom.Element element)
Handles a "setNationType"-message from a client.
|
private org.w3c.dom.Element |
updateGameOptions(Connection connection,
org.w3c.dom.Element element)
Handles a "updateGameOptions"-message from a client.
|
private org.w3c.dom.Element |
updateMapGeneratorOptions(Connection connection,
org.w3c.dom.Element element)
Handles a "updateMapGeneratorOptions"-message from a client.
|
createErrorReply, handle, register, unregistergetFreeColServer, getGameprivate static final java.util.logging.Logger logger
private boolean launching
public PreGameInputHandler(FreeColServer freeColServer)
freeColServer - The main server object.protected org.w3c.dom.Element logout(Connection connection, org.w3c.dom.Element element)
logout in class InputHandlerconnection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element ready(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element requestLaunch(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element setAvailable(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element setColor(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element setNation(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element setNationType(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element updateGameOptions(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.private org.w3c.dom.Element updateMapGeneratorOptions(Connection connection, org.w3c.dom.Element element)
connection - The Connection the message came from.element - The Element containing the request.