de.hattrickorganizer.net.rmiHOFriendly
Class HoClientImp

java.lang.Object
  extended by de.hattrickorganizer.net.rmiHOFriendly.HoClientImp
All Implemented Interfaces:
Chat

public class HoClientImp
extends java.lang.Object
implements Chat

DOCUMENT ME!

Author:
thomas.werth

Field Summary
protected  boolean m_bWriting
          TODO Missing Parameter Documentation
protected  MatchScreen m_clClient
          TODO Missing Parameter Documentation
protected  java.io.DataOutputStream m_clOutput
          TODO Missing Parameter Documentation
protected  java.net.Socket m_clSocket
          TODO Missing Parameter Documentation
protected  Spielbericht m_clSpielbericht
          TODO Missing Parameter Documentation
protected  HOClientWorker m_clWorker
          TODO Missing Parameter Documentation
 
Fields inherited from interface de.hattrickorganizer.net.rmiHOFriendly.Chat
NET_ABBRUCH_MSG, NET_AUSWECHSLUNG_MSG, NET_BEREIT_MSG, NET_CHAT_MSG, NET_CREATEFRIENDLY_MSG, NET_FANGESANG_MSG, NET_INFO_MSG, NET_KARTE_MSG, NET_PAUSE_MSG, NET_SPIELBEGINN_MSG, NET_SPIELENDE_MSG, NET_SPIELMINUTE_MSG, NET_TORCHANCE_MSG, NET_VERLETZUNG_MSG
 
Constructor Summary
HoClientImp(MatchScreen client)
          Creates a new instance of HoClientImp
 
Method Summary
 boolean connect2Server(java.lang.String ip, int port)
          TODO Missing Method Documentation
protected  void finalize()
          TODO Missing Method Documentation
 MatchScreen getClient()
          Getter for property m_clClient.
 java.io.DataOutputStream getOutput()
          Getter for property m_clOutput.
 Spielbericht getSpielbericht()
          TODO Missing Method Documentation
 boolean isAbbruch()
          TODO Missing Method Documentation
 boolean isPause()
          TODO Missing Method Documentation
 boolean isScreenBereit()
          gibt an ob der Screen bereit zum zeichnen ist
 void recieveMsg(java.lang.String trainer, java.lang.String msg, boolean heim)
          TODO Missing Method Documentation
protected  void releaseWriteAccess()
          gibt die Schreibrechte wieder frei
protected  void requestWriteAccess()
          fordert Schreibrechte für den Output!
 void sendAbbruch(boolean bool)
          TODO Missing Method Documentation
 void sendBereit(boolean bool)
          TODO Missing Method Documentation
 void sendChatMsg(java.lang.String trainer, java.lang.String msg, boolean heim)
          TODO Missing Method Documentation
 void sendPause(boolean bool)
          TODO Missing Method Documentation
 void sendStarteFriendly(ServerTeam clientTeam)
          TODO Missing Method Documentation
 void setClient(MatchScreen m_clClient)
          Setter for property m_clClient.
 void setOutput(java.io.DataOutputStream m_clOutput)
          Setter for property m_clOutput.
 void setPause(boolean pause)
          TODO Missing Method Documentation
 void setSpielbericht(Spielbericht bericht)
          TODO Missing Method Documentation
 void shutdown()
          TODO Missing Method Documentation
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_clOutput

protected java.io.DataOutputStream m_clOutput
TODO Missing Parameter Documentation


m_clWorker

protected HOClientWorker m_clWorker
TODO Missing Parameter Documentation


m_clClient

protected MatchScreen m_clClient
TODO Missing Parameter Documentation


m_clSocket

protected java.net.Socket m_clSocket
TODO Missing Parameter Documentation


m_clSpielbericht

protected Spielbericht m_clSpielbericht
TODO Missing Parameter Documentation


m_bWriting

protected boolean m_bWriting
TODO Missing Parameter Documentation

Constructor Detail

HoClientImp

public HoClientImp(MatchScreen client)
Creates a new instance of HoClientImp

Parameters:
client - TODO Missing Constructuor Parameter Documentation
Method Detail

isAbbruch

public final boolean isAbbruch()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

setClient

public final void setClient(MatchScreen m_clClient)
Setter for property m_clClient.

Parameters:
m_clClient - New value of property m_clClient.

getClient

public final MatchScreen getClient()
Getter for property m_clClient.

Returns:
Value of property m_clClient.

setOutput

public final void setOutput(java.io.DataOutputStream m_clOutput)
Setter for property m_clOutput.

Parameters:
m_clOutput - New value of property m_clOutput.

getOutput

public final java.io.DataOutputStream getOutput()
Getter for property m_clOutput.

Returns:
Value of property m_clOutput.

setPause

public final void setPause(boolean pause)
TODO Missing Method Documentation

Parameters:
pause - TODO Missing Method Parameter Documentation

isPause

public final boolean isPause()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

isScreenBereit

public final boolean isScreenBereit()
gibt an ob der Screen bereit zum zeichnen ist

Returns:
TODO Missing Return Method Documentation

setSpielbericht

public final void setSpielbericht(Spielbericht bericht)
TODO Missing Method Documentation

Parameters:
bericht - TODO Missing Method Parameter Documentation

getSpielbericht

public final Spielbericht getSpielbericht()
TODO Missing Method Documentation

Returns:
TODO Missing Return Method Documentation

connect2Server

public final boolean connect2Server(java.lang.String ip,
                                    int port)
TODO Missing Method Documentation

Parameters:
ip - TODO Missing Method Parameter Documentation
port - TODO Missing Method Parameter Documentation
Returns:
TODO Missing Return Method Documentation

recieveMsg

public final void recieveMsg(java.lang.String trainer,
                             java.lang.String msg,
                             boolean heim)
TODO Missing Method Documentation

Specified by:
recieveMsg in interface Chat
Parameters:
trainer - TODO Missing Method Parameter Documentation
msg - TODO Missing Method Parameter Documentation
heim - TODO Missing Method Parameter Documentation

sendAbbruch

public final void sendAbbruch(boolean bool)
TODO Missing Method Documentation

Specified by:
sendAbbruch in interface Chat
Parameters:
bool - TODO Missing Method Parameter Documentation

sendBereit

public final void sendBereit(boolean bool)
TODO Missing Method Documentation

Specified by:
sendBereit in interface Chat
Parameters:
bool - TODO Missing Method Parameter Documentation

sendChatMsg

public final void sendChatMsg(java.lang.String trainer,
                              java.lang.String msg,
                              boolean heim)
TODO Missing Method Documentation

Specified by:
sendChatMsg in interface Chat
Parameters:
trainer - TODO Missing Method Parameter Documentation
msg - TODO Missing Method Parameter Documentation
heim - TODO Missing Method Parameter Documentation

sendPause

public final void sendPause(boolean bool)
TODO Missing Method Documentation

Specified by:
sendPause in interface Chat
Parameters:
bool - TODO Missing Method Parameter Documentation

sendStarteFriendly

public final void sendStarteFriendly(ServerTeam clientTeam)
TODO Missing Method Documentation

Parameters:
clientTeam - TODO Missing Method Parameter Documentation

shutdown

public final void shutdown()
TODO Missing Method Documentation

Specified by:
shutdown in interface Chat

finalize

protected final void finalize()
TODO Missing Method Documentation

Overrides:
finalize in class java.lang.Object

releaseWriteAccess

protected final void releaseWriteAccess()
gibt die Schreibrechte wieder frei


requestWriteAccess

protected final void requestWriteAccess()
fordert Schreibrechte für den Output!