|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.limdul.cassiopeia.control.updateserver.client.UpdateClientModus
public class UpdateClientModus
Modus des Clienst zum Updaten.
| Constructor Summary | |
|---|---|
UpdateClientModus(EventHandler handler)
Erzeugt den Modus. |
|
| Method Summary | |
|---|---|
protected void |
addExpectedGame(int command)
Fügt ein neues GameCommand zu den erwarteten GameCommands hinzu. |
protected void |
addExpectedTCP(int command)
Fügt ein neues TCPCommand zu den erwarteten TCPCommands hinzu. |
protected void |
clearExpectedGame()
Leert die Liste der erwarteten GameCommands. |
protected void |
clearExpectedTCP()
Leert die Liste der erwarteten TCPCommand. |
EventHandler |
getEventHandler()
Liefert den Eventhandler. |
void |
parseGameCommand(GameCommand command)
Verarbeitet ein GameCommand. |
void |
parseTCPCommand(TCPCommand command)
Verarbeitet TCPCommand. |
void |
setEventHandler(EventHandler handler)
Setzt den Ereignisshandler, der für die Verteilung von Ereignissen zuständig ist. |
protected void |
shutdown()
Beendet den Client. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UpdateClientModus(EventHandler handler)
handler - Der Ereignishandler.| Method Detail |
|---|
public void setEventHandler(EventHandler handler)
CassiopeiaListener
setEventHandler in interface CassiopeiaListenerhandler - Der EreignisshandlerCassiopeiaListener.setEventHandler(de.limdul.cassiopeia.control.EventHandler)public EventHandler getEventHandler()
protected final void clearExpectedTCP()
protected final void clearExpectedGame()
protected final void addExpectedTCP(int command)
command - Das erwartete TCPCommandprotected final void addExpectedGame(int command)
command - Das erwartete GameCommandprotected final void shutdown()
public void parseTCPCommand(TCPCommand command)
TCPCommandListenerTCPCommand.
parseTCPCommand in interface TCPCommandListenercommand - Das TCPCommand.TCPCommandListener.parseTCPCommand(de.limdul.cassiopeia.control.tcpip.commands.TCPCommand)public void parseGameCommand(GameCommand command)
GameCommandListenerGameCommand.
parseGameCommand in interface GameCommandListenercommand - Das GameCommandGameCommandListener.parseGameCommand(de.limdul.cassiopeia.control.gamecommands.GameCommand)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||