de.limdul.cassiopeia.control.servermodus
Class ServerPlaceRiver2Crossing

java.lang.Object
  extended by de.limdul.cassiopeia.control.servermodus.ServerModus
      extended by de.limdul.cassiopeia.control.servermodus.ServerPlaceRiver2Crossing
All Implemented Interfaces:
CassiopeiaListener, GameCommandListener, TCPCommandListener

public class ServerPlaceRiver2Crossing
extends ServerModus

Setzt die Gabelung vom Fluss II.

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

Field Summary
 
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
 
Constructor Summary
ServerPlaceRiver2Crossing(EventHandler handler)
          Erzeugt den Modus.
 
Method Summary
 Card getLastPlacedCard()
          Liefert die gelegte Karte.
 int getType()
          Liefert den Typ des Modus.
protected  void initialize()
          Wird aufgerufen, nachdem das Objekt erfolgreich erzeugt wurde.
 void parseTCPCommand(TCPCommand command)
          Verarbeitet TCPCommand.
 
Methods inherited from class de.limdul.cassiopeia.control.servermodus.ServerModus
addClient, addExpectedTCP, addToReplay, clearExpectedTCP, createModus, getEventHandler, getGame, getGameLogic, isLocalGame, parseChatMessage, parseGameCommand, 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
 

Constructor Detail

ServerPlaceRiver2Crossing

public ServerPlaceRiver2Crossing(EventHandler handler)
Erzeugt den Modus.

Parameters:
handler - Der Ereignisshandler.
Method Detail

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()

initialize

protected void initialize()
Description copied from class: ServerModus
Wird aufgerufen, nachdem das Objekt erfolgreich erzeugt wurde.

Overrides:
initialize in class ServerModus
See Also:
ServerModus.initialize()

getLastPlacedCard

public Card getLastPlacedCard()
Liefert die gelegte Karte.

Returns:
Die gelegte Karte.

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)