|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the interaction expected by any Kombat GUI element. In our case, KombatClient satisfies.
Method Summary | |
boolean |
clearActiveGames()
Remove all active games from visible representation. |
boolean |
clearActiveTables()
Remove all active tables from visible representation. |
boolean |
clearActiveUsers()
Remove all active users from visible representation. |
boolean |
interpret(Message m)
Responses from the server are Message objects. |
void |
output(java.lang.String s)
output to some central viewing area (typically control window) |
java.awt.Frame |
parentFrame()
Return the parent Frame object from which any ClientComponent can reference when creating modal dialogs. |
boolean |
registerActiveGame(java.lang.String name,
boolean register)
Add/Remove specified game to list of active games. |
boolean |
registerActiveTable(java.lang.String tableType,
java.lang.String name,
boolean register)
Add specified table to list of active tables for the given type. |
boolean |
registerActiveUser(java.lang.String name,
boolean register)
Add/Remove specified user to list of active users. |
void |
registerGame(java.lang.String gameName,
boolean register)
Register/Deregister game from list of games. |
void |
sendCommand(Command sc)
Send command to the server to be processed. |
void |
serverReady()
Callback invoked once the Server has been connected. |
void |
status(java.lang.String s)
Update status field to contain given string. |
boolean |
validateJoinRequest(java.lang.String tableName,
java.lang.String name)
Validate the request by given user to join given table. |
Method Detail |
public boolean clearActiveGames()
public boolean clearActiveTables()
public boolean clearActiveUsers()
public void registerGame(java.lang.String gameName, boolean register)
This functionality is exposed because the set of games available on the client side can change dynamically.
public boolean interpret(Message m)
public void output(java.lang.String s)
public boolean registerActiveGame(java.lang.String name, boolean register)
register
- decision to register or unregistername
- name of the game type.
public boolean registerActiveTable(java.lang.String tableType, java.lang.String name, boolean register)
tableType
- type of the game.name
- name of the table.register
- decision to register or unregister
public boolean registerActiveUser(java.lang.String name, boolean register)
register
- register or deregister.name
- String name of user.
public void sendCommand(Command sc)
sc
- public void serverReady()
public void status(java.lang.String s)
s
- Set status text field to contain value.public boolean validateJoinRequest(java.lang.String tableName, java.lang.String name)
name
- java.lang.String
public java.awt.Frame parentFrame()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |