ks.client.interfaces
Interface IGameInterface


public interface IGameInterface

Interface to enable Container to speak to the outside entity that manages the container.


Method Summary
 void activate(boolean status)
          If container is activated or deactivated, this interface is notified.
 void announceStatus(Status status)
          Status for the container is announced.
 java.lang.String getTableName()
          Knows info about table.
 java.lang.String getTableType()
          Knows info about table.
 void leaveTable()
          When user declares to leave the table.
 void sendCommand(Command com)
          This method enables the kombatSolitaire plugin (via Container) to deliver a command to the server.
 void wonGame()
          When user has won the game.
 

Method Detail

sendCommand

public void sendCommand(Command com)
This method enables the kombatSolitaire plugin (via Container) to deliver a command to the server.

Parameters:
com - Command to be sent.
Since:
v2.2

getTableName

public java.lang.String getTableName()
Knows info about table.


getTableType

public java.lang.String getTableType()
Knows info about table.


activate

public void activate(boolean status)
If container is activated or deactivated, this interface is notified.

Parameters:
status - boolean

announceStatus

public void announceStatus(Status status)
Status for the container is announced.

Parameters:
status - Status of the game.

leaveTable

public void leaveTable()
When user declares to leave the table.


wonGame

public void wonGame()
When user has won the game.