ks.server.interfaces
Interface ITableManager
- All Superinterfaces:
- IProcessCommand, IReadonlyTableManager
- public interface ITableManager
- extends IReadonlyTableManager, IProcessCommand
The Table Manager is responsible for maintaining information about
about the active tables.
This Command Processor component processes the following types
of messages:
- (CreateCommand tableName tableType numPlayers gameLength seed gameIncrement)
Failure Response:(clientMSG, outputMSG, tableAlreadyExists) or (clientMSG, outputMSG, failureCreate)
Success Response:(clientMSG, addActiveTableAction, type, name)
Broadcast:(clientMSG, addActiveTableAction, type, name)
Note: tableName cannot be the string ALL
tableType cannot be the string ALL. For restrictions
on the other parameters, see CreateCommand
.
- (LeaveTableCommand tableName tableType)
Failure Response:(clientMSG, outputMSG, errorNoSuchTable) or (clientMSG, outputMSG, errorFailedLeave)
Success Response:(clientMSG, leaveTableAction, tableType, tableName, user)
Broadcast:(clientMSG, leaveTableAction, tableType, tableName, user)
Note: Your class that implements this interface must have a constructor
with no parameters.
joinTableAction
public static final java.lang.String joinTableAction
- See Also:
- Constant Field Values
addActiveTableAction
public static final java.lang.String addActiveTableAction
- See Also:
- Constant Field Values
startTableAction
public static final java.lang.String startTableAction
- See Also:
- Constant Field Values
leaveTableAction
public static final java.lang.String leaveTableAction
- See Also:
- Constant Field Values
requestToJoinAction
public static final java.lang.String requestToJoinAction
- See Also:
- Constant Field Values
acceptJoinAction
public static final java.lang.String acceptJoinAction
- See Also:
- Constant Field Values
kickOffTableAction
public static final java.lang.String kickOffTableAction
- See Also:
- Constant Field Values
inviteAction
public static final java.lang.String inviteAction
- See Also:
- Constant Field Values