|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for a graphical representation of a Kombat Solitaire table on the client. Note the addition of processMessage enables messages to be properly processed within the solitaire plugin that have originated from the server.
Method Summary | |
void |
activate(boolean status)
Activate/Deactivate this game. |
void |
addUserToTable(java.lang.String newUser)
Add user to the table. |
void |
initialize(Solitaire game)
Initialize game canvas using specific solitaire game. |
void |
processChat(java.lang.String msg)
Send chat output to the output Field. |
void |
processMessage(Message msg)
Message has arrived from Server that may require processing. |
void |
processStatusTick(java.lang.String player,
int numWon,
int numPoints)
Update information for this user on the player rankings panel. |
void |
removeUserFromTable(java.lang.String exitingUser)
Removes user from this table. |
void |
setRequester(ITableRequests requester)
Determine the entity to whom Table GUI objects communicate. |
void |
setTable(Table newTable)
Keep track of the table to be able to answer useful questions later. |
void |
setUser(java.lang.String user)
Sets the name of the user for this Game. |
void |
setVisible(boolean b)
Determine visibility of the Table GUI. |
void |
terminateGame()
Terminate the game (possibly prematurely). |
Method Detail |
public void addUserToTable(java.lang.String newUser)
newUser
- public void activate(boolean status)
status
- booleanpublic void processChat(java.lang.String msg)
msg
- java.lang.Stringpublic void setUser(java.lang.String user)
user
- java.lang.Stringpublic void setTable(Table newTable)
newTable
- ks.common.Tablepublic void initialize(Solitaire game)
since v1.6.2 this enables a button "Solve" if the solitaire game is an instance of SolvableSolitaire.
game
- Solitairepublic void processMessage(Message msg)
msg
- Message object from Server.public void processStatusTick(java.lang.String player, int numWon, int numPoints)
player
- java.lang.StringnumWon
- intnumPoints
- intpublic void removeUserFromTable(java.lang.String exitingUser)
exitingUser
- Statuspublic void terminateGame()
public void setRequester(ITableRequests requester)
requester
- Entity to whom requests can be directed.public void setVisible(boolean b)
b
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |