|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.parlor.server.TableManager
public class TableManager
A table manager can be used by a place manager (or other entity) to take care of the management of a table matchmaking service on a particular distributed object.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.parlor.data.ParlorCodes |
|---|
ALREADY_AT_TABLE, BANNED_FROM_TABLE, GAME_ALREADY_STARTED, INVALID_TABLE_POSITION, INVITATION_ACCEPTED, INVITATION_COUNTERED, INVITATION_REFUSED, INVITEE_NOT_ONLINE, MUST_BE_CREATOR, NO_SELF_BOOT, NO_SUCH_TABLE, NOT_AT_TABLE, PARLOR_GROUP, TABLE_POSITION_OCCUPIED |
| Fields inherited from interface com.threerings.presents.data.InvocationCodes |
|---|
ACCESS_DENIED, E_ACCESS_DENIED, E_INTERNAL_ERROR, GLOBAL_GROUP, INTERNAL_ERROR |
| Constructor Summary | |
|---|---|
TableManager(com.threerings.presents.dobj.RootDObjectManager omgr,
com.threerings.presents.server.InvocationManager invmgr,
com.threerings.crowd.server.PlaceRegistry plreg,
com.threerings.presents.dobj.DObject tableObject)
Creates a table manager that will manage tables in the supplied distributed object (which must implement TableLobbyObject. |
|
| Method Summary | |
|---|---|
void |
bootPlayer(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.util.Name target,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Handles a TableService.bootPlayer(int, com.threerings.util.Name, com.threerings.presents.client.InvocationService.InvocationListener) request. |
Table |
createTable(com.threerings.crowd.data.BodyObject creator,
TableConfig tableConfig,
GameConfig config)
Creates a table for the specified creator and returns said table. |
void |
createTable(com.threerings.presents.data.ClientObject caller,
TableConfig tableConfig,
GameConfig config,
com.threerings.presents.client.InvocationService.ResultListener listener)
Handles a TableService.createTable(com.threerings.parlor.data.TableConfig, com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ResultListener) request. |
int |
getTableCount()
Returns the number of tables being managed currently. |
void |
joinTable(com.threerings.presents.data.ClientObject caller,
int tableId,
int position,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Handles a TableService.joinTable(int, int, com.threerings.presents.client.InvocationService.InvocationListener) request. |
void |
leaveTable(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Handles a TableService.leaveTable(int, com.threerings.presents.client.InvocationService.InvocationListener) request. |
void |
setAllowBooting(boolean allowBooting)
Allow a player in the first position of a table to boot others. |
void |
setTableClass(Class<? extends Table> tableClass)
Set the subclass of Table that this instance should generate. |
void |
setTableObject(com.threerings.presents.dobj.DObject tableObject)
Initialize the TableLobbyObject. |
void |
shutdown()
This must be called when the table manager is no longer needed. |
void |
startTableNow(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
Handles a TableService.startTableNow(int, com.threerings.presents.client.InvocationService.InvocationListener) request. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TableManager(com.threerings.presents.dobj.RootDObjectManager omgr,
com.threerings.presents.server.InvocationManager invmgr,
com.threerings.crowd.server.PlaceRegistry plreg,
com.threerings.presents.dobj.DObject tableObject)
TableLobbyObject.
| Method Detail |
|---|
public void setTableObject(com.threerings.presents.dobj.DObject tableObject)
public int getTableCount()
public void shutdown()
public void setTableClass(Class<? extends Table> tableClass)
public void setAllowBooting(boolean allowBooting)
public Table createTable(com.threerings.crowd.data.BodyObject creator,
TableConfig tableConfig,
GameConfig config)
throws com.threerings.presents.server.InvocationException
com.threerings.presents.server.InvocationException - thrown if the table could not be created for any reason.
public void createTable(com.threerings.presents.data.ClientObject caller,
TableConfig tableConfig,
GameConfig config,
com.threerings.presents.client.InvocationService.ResultListener listener)
throws com.threerings.presents.server.InvocationException
TableProviderTableService.createTable(com.threerings.parlor.data.TableConfig, com.threerings.parlor.game.data.GameConfig, com.threerings.presents.client.InvocationService.ResultListener) request.
createTable in interface TableProvidercom.threerings.presents.server.InvocationException
public void joinTable(com.threerings.presents.data.ClientObject caller,
int tableId,
int position,
com.threerings.presents.client.InvocationService.InvocationListener listener)
throws com.threerings.presents.server.InvocationException
TableProviderTableService.joinTable(int, int, com.threerings.presents.client.InvocationService.InvocationListener) request.
joinTable in interface TableProvidercom.threerings.presents.server.InvocationException
public void leaveTable(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
throws com.threerings.presents.server.InvocationException
TableProviderTableService.leaveTable(int, com.threerings.presents.client.InvocationService.InvocationListener) request.
leaveTable in interface TableProvidercom.threerings.presents.server.InvocationException
public void startTableNow(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.presents.client.InvocationService.InvocationListener listener)
throws com.threerings.presents.server.InvocationException
TableProviderTableService.startTableNow(int, com.threerings.presents.client.InvocationService.InvocationListener) request.
startTableNow in interface TableProvidercom.threerings.presents.server.InvocationException
public void bootPlayer(com.threerings.presents.data.ClientObject caller,
int tableId,
com.threerings.util.Name target,
com.threerings.presents.client.InvocationService.InvocationListener listener)
throws com.threerings.presents.server.InvocationException
TableProviderTableService.bootPlayer(int, com.threerings.util.Name, com.threerings.presents.client.InvocationService.InvocationListener) request.
bootPlayer in interface TableProvidercom.threerings.presents.server.InvocationException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||