de.limdul.cassiopeia.control.servermodus
Class ServerConnecting
java.lang.Object
de.limdul.cassiopeia.control.servermodus.ServerModus
de.limdul.cassiopeia.control.servermodus.ServerConnecting
- All Implemented Interfaces:
- CassiopeiaListener, GameCommandListener, TCPCommandListener
public class ServerConnecting
- extends ServerModus
Verarbeitet die Verbindung zu einem Client.
Entweder die Verbindung wird nicht akzeptiert oder der Client wird in die Lobby entlassen.
Die Spezifikation findet sich unter protocoll/server/connecting.dia.
- Version:
- $Revision: 69 $
- Author:
- Martin Köhler
| Fields inherited from class de.limdul.cassiopeia.control.servermodus.ServerModus |
CONNECTING, END_GAME, GAME_CASTLE_MISS, GAME_DRAGON_UPDATE_POINTS, GAME_ENCHANTED_TUNNEL, GAME_INFO, GAME_MOVE_DRAGON, GAME_PLACE_DRAGON, GAME_PLACE_FAIRY, GAME_PLACE_RIVER_2_CROSSING, GAME_PLAY_CARD, GAME_PLAY_FIGURE, GAME_PLAY_KATHARER, GAME_SELECT_MOVE_DRAGON, GAME_SELECT_PLACE_DRAGON, GAME_UPDATE_POINTS, LOBBY, START_GAME, UNKNOWN_MODUS |
| Methods inherited from class de.limdul.cassiopeia.control.servermodus.ServerModus |
addClient, addExpectedTCP, addToReplay, clearExpectedTCP, createModus, getEventHandler, getGame, getGameLogic, initialize, isLocalGame, parseChatMessage, removeClient, sendCommand, sendCommand, sendGameOptions, setConnection, setEventHandler, setGameLogic, shutdown, testTCPCommand |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServerConnecting
public ServerConnecting(EventHandler handler,
boolean isLocal)
- Erzeugt einen neuen ServerConnecting Modus.
- Parameters:
handler - Der Ereignisshandler.isLocal - Ob es sich um ein lokales Spiel handelt.
parseGameCommand
public void parseGameCommand(GameCommand command)
- Description copied from interface:
GameCommandListener
- Verarbeitet ein
GameCommand.
- Specified by:
parseGameCommand in interface GameCommandListener- Overrides:
parseGameCommand in class ServerModus
- Parameters:
command - Das GameCommand- See Also:
ServerModus.parseGameCommand(de.limdul.cassiopeia.control.gamecommands.GameCommand)
parseTCPCommand
public void parseTCPCommand(TCPCommand command)
- Description copied from interface:
TCPCommandListener
- Verarbeitet
TCPCommand.
- Parameters:
command - Das TCPCommand.- See Also:
TCPCommandListener.parseTCPCommand(de.limdul.cassiopeia.control.tcpip.commands.TCPCommand)
getType
public int getType()
- Description copied from class:
ServerModus
- Liefert den Typ des Modus.
- Specified by:
getType in class ServerModus
- Returns:
- Der Typ des Modus.
- See Also:
ServerModus.getType()