de.limdul.cassiopeia.control.gamemodus
Class Connecting

java.lang.Object
  extended by de.limdul.cassiopeia.control.gamemodus.GameModus
      extended by de.limdul.cassiopeia.control.gamemodus.Connecting
All Implemented Interfaces:
CassiopeiaListener, GameCommandListener, TCPCommandListener

public class Connecting
extends GameModus

Implementiert den Modus zum verbinden. Für den Ablauf siehe connecting.dia

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

Field Summary
 
Fields inherited from class de.limdul.cassiopeia.control.gamemodus.GameModus
CONNECTING, GAME_INFO, GAME_MOVE_DRAGON_OTHER, GAME_MOVE_DRAGON_OWN, GAME_PLACE_FAIRY_OTHER, GAME_PLACE_FAIRY_OWN, GAME_PLAY_CARD_OTHER, GAME_PLAY_CARD_OWN, GAME_PLAY_CASTLE_MISS_OTHER, GAME_PLAY_CASTLE_MISS_OWN, GAME_PLAY_ENCHANTED_TUNNEL, GAME_PLAY_FIGURE_OTHER, GAME_PLAY_FIGURE_OWN, GAME_PLAY_KATHARER_OTHER, GAME_PLAY_KATHARER_OWN, GAME_SELECT_DRAGON_OTHER, GAME_SELECT_DRAGON_OWN, GAME_WAITING, LOBBY
 
Constructor Summary
Connecting()
          Erzeugt einen Connecting GameModus.
Connecting(boolean asSpectator)
          Erzeugt einen Connecting GameModus.
Connecting(int slot)
          Erzeugt einen Connecting GameModus als Bot.
 
Method Summary
 int getType()
          Liefert den Typ des Modus.
 void parseGameCommand(GameCommand command)
          Verarbeitet ein GameCommand.
 void parseTCPCommand(TCPCommand command)
          Verarbeitet TCPCommand.
 
Methods inherited from class de.limdul.cassiopeia.control.gamemodus.GameModus
addExpectedGame, addExpectedTCP, clearExpectedGame, clearExpectedTCP, createNewGameModi, getEventHandler, getGame, getOwnPlayer, getOwnPlayerNumber, isOwnPlayer, isOwnPlayer, parseGameChatMessage, parseTCPChatMessage, setCommunicator, setEventHandler, setGame, setMeta, shutdown, testGameCommand, testTCPCommand
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Connecting

public Connecting()
Erzeugt einen Connecting GameModus.


Connecting

public Connecting(boolean asSpectator)
Erzeugt einen Connecting GameModus.

Parameters:
asSpectator - Ob der Client sich als Zuschauer verbindet.

Connecting

public Connecting(int slot)
Erzeugt einen Connecting GameModus als Bot.

Parameters:
slot - Der gewünschte Slot für den Bot.
Method Detail

getType

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

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

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)

parseGameCommand

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

Parameters:
command - Das GameCommand
See Also:
GameCommandListener.parseGameCommand(de.limdul.cassiopeia.control.gamecommands.GameCommand)