From 72935d719c64b970ae7c82ae1f3e9c3c1e8a8eb4 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Wed, 6 Aug 2008 00:57:00 +0000 Subject: [PATCH] Adding booting TableDirector git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@711 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../threerings/parlor/client/TableDirector.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/java/com/threerings/parlor/client/TableDirector.java b/src/java/com/threerings/parlor/client/TableDirector.java index a652e093..007b8120 100644 --- a/src/java/com/threerings/parlor/client/TableDirector.java +++ b/src/java/com/threerings/parlor/client/TableDirector.java @@ -219,6 +219,20 @@ public class TableDirector extends BasicDirector _tlobj.getTableService().startTableNow(_ctx.getClient(), tableId, this); } + /** + * Sends a request to boot a player from a table. + */ + public void bootPlayer (int tableId, int bodyId) + { + if (_tlobj == null) { + log.warning("Requesting to boot a player from a table we're not currently in " + + "[tableId=" + tableId + ", target=" + bodyId + "]."); + return; + } + + _tlobj.getTableService().bootPlayer(_ctx.getClient(), tableId, bodyId, this); + } + @Override public void clientDidLogoff (Client client) {