From aa84c5055a89126734db855d801ab63184f3b680 Mon Sep 17 00:00:00 2001 From: Bruno Garcia Date: Wed, 6 Aug 2008 01:04:27 +0000 Subject: [PATCH] Booting support to the AS version of TableDirector git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@712 c613c5cb-e716-0410-b11b-feb51c14d237 --- .../com/threerings/parlor/client/TableDirector.as | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/as/com/threerings/parlor/client/TableDirector.as b/src/as/com/threerings/parlor/client/TableDirector.as index 633ad898..eab63f7d 100644 --- a/src/as/com/threerings/parlor/client/TableDirector.as +++ b/src/as/com/threerings/parlor/client/TableDirector.as @@ -243,6 +243,20 @@ public class TableDirector extends BasicDirector _tlobj.getTableService().startTableNow(_ctx.getClient(), tableId, this); } + /** + * Sends a request to boot a player from a table. + */ + public function bootPlayer (tableId :int, bodyId :int) :void + { + 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); + } + // documentation inherited override public function clientDidLogoff (event :ClientEvent) :void {