ks.client.interfaces
Interface ITableRequests


public interface ITableRequests

Requests coming from a Table GUI element.


Method Summary
 void gameOver(Table tbl, Status stat)
          Contact the server with our latest status information.
 void resetGameInterface(Table tbl)
          When a table is restarted, this method is called.
 void sendCommand(Command sc)
          Send a command to the server for processing.
 void tableCompleted(Table table)
          When a GUI completes a table, this method is called.
 

Method Detail

tableCompleted

public void tableCompleted(Table table)
When a GUI completes a table, this method is called. We will contact the server with our moves and ultimately a response will come back with the winner.

Parameters:
table - the table being completed.

resetGameInterface

public void resetGameInterface(Table tbl)
When a table is restarted, this method is called.

Parameters:
tbl - the Table being restarted.

gameOver

public void gameOver(Table tbl,
                     Status stat)
Contact the server with our latest status information. Note that we must not rely on the information for other users because of network delay. We know that our information is accurate, so we send that along. Protocol: scope:gameOverAction:tableName:tableType:user:[Status] where [status] = user:numWins:overallScore

Parameters:
tbl - ks.common.Table
stat - ks.common.Status

sendCommand

public void sendCommand(Command sc)
Send a command to the server for processing.