|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jogre.client.TableConnectionThread
Convience class for sending message from a table client frame in JOGRE.
This class also has links to several methods in the ClientConnectionThread class through delegation.
This class holds a link to the ClientConnectionThread (as there should only be one instance per client) and a tableNum which it appends to messages automatically when a send method is called.
Constructor Summary | |
TableConnectionThread(ClientConnectionThread conn,
int tableNum)
Constructor which takes a ClientConnectionThread and a table number. |
Method Summary | |
ClientConnectionThread |
getClientConnectionThread()
Return the client connection thread which is a field. |
Game |
getGame()
Return the game object on this connection. |
Socket |
getSocket()
Return the socket as a field. |
Table |
getTable()
Return the table associated with this table connection class. |
TableList |
getTableList()
Delegate method for returning the table list. |
int |
getTableNum()
Return the table number. |
UserList |
getUserList()
Delegate method for returning the user list. |
String |
getUsername()
Delegate method for returning a username; |
boolean |
isOwnerOfTable()
Return thue if this user is the owner of the table. |
void |
send(CommGameMessage message)
Send a game message. |
void |
send(CommTableMessage message)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TableConnectionThread(ClientConnectionThread conn, int tableNum)
conn
- Connection to server.tableNum
- Current table number.Method Detail |
public void send(CommTableMessage message)
message
- public int getTableNum()
public Table getTable()
public Game getGame()
public void send(CommGameMessage message)
message
- Game message.public String getUsername()
public TableList getTableList()
public UserList getUserList()
public boolean isOwnerOfTable()
public ClientConnectionThread getClientConnectionThread()
public Socket getSocket()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |