de.limdul.cassiopeia.control.metaserver
Class OpenGame

java.lang.Object
  extended by de.limdul.cassiopeia.control.metaserver.MetaModus
      extended by de.limdul.cassiopeia.control.metaserver.OpenGame
All Implemented Interfaces:
CassiopeiaListener, GameCommandListener, TCPCommandListener

public class OpenGame
extends MetaModus

Modus, der angibt, dass ein Spiel vom Client geöffnet werden soll.

Version:
$Revision: 69 $
Author:
Martin Köhler

Field Summary
 
Fields inherited from class de.limdul.cassiopeia.control.metaserver.MetaModus
CLIENT_CONNECTING, META_LOBBY, OPEN_GAME
 
Constructor Summary
OpenGame(EventHandler handler, MetaServer server)
          Erzeugt den Modus.
 
Method Summary
 int getType()
          Liefert den Typ des Modus.
 void init()
          Initialisiert den Modus.
 void parseGameCommand(GameCommand command)
          Verarbeitet ein GameCommand.
 void parseTCPCommand(TCPCommand command)
          Verarbeitet TCPCommand.
 
Methods inherited from class de.limdul.cassiopeia.control.metaserver.MetaModus
addClient, addExpectedTCP, clearExpectedTCP, createModus, getEventHandler, getServer, isClient, removeClient, sendCommand, sendOptions, setConnection, setEventHandler, shutdown, testTCPCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenGame

public OpenGame(EventHandler handler,
                MetaServer server)
Erzeugt den Modus.

Parameters:
handler - Der Ereignishandler
server - Der Server.
Method Detail

getType

public int getType()
Description copied from class: MetaModus
Liefert den Typ des Modus.

Specified by:
getType in class MetaModus
Returns:
Der Typ des Modus.
See Also:
MetaModus.getType()

init

public void init()
Description copied from class: MetaModus
Initialisiert den Modus.

Specified by:
init in class MetaModus
See Also:
MetaModus.init()

parseGameCommand

public void parseGameCommand(GameCommand command)
Description copied from interface: GameCommandListener
Verarbeitet ein GameCommand.

Specified by:
parseGameCommand in interface GameCommandListener
Overrides:
parseGameCommand in class MetaModus
Parameters:
command - Das GameCommand
See Also:
MetaModus.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)