From e1ca18f8ed5be45f19e00d17663762f6fef96ccc Mon Sep 17 00:00:00 2001 From: Nathan Curtis Date: Thu, 22 Mar 2007 18:45:56 +0000 Subject: [PATCH] add getter for our currently seated table git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@260 c613c5cb-e716-0410-b11b-feb51c14d237 --- src/as/com/threerings/parlor/client/TableDirector.as | 8 ++++++++ src/java/com/threerings/parlor/client/TableDirector.java | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/as/com/threerings/parlor/client/TableDirector.as b/src/as/com/threerings/parlor/client/TableDirector.as index dc9109f1..6b23eb29 100644 --- a/src/as/com/threerings/parlor/client/TableDirector.as +++ b/src/as/com/threerings/parlor/client/TableDirector.as @@ -134,6 +134,14 @@ public class TableDirector extends BasicDirector return (_ourTable != null); } + /** + * Returns the table this client is currently seated at, or null. + */ + public function getSeatedTable () :Table + { + return _ourTable; + } + /** * Sends a request to create a table with the specified game configuration. This user will * become the owner of this table and will be added to the first position in the table. The diff --git a/src/java/com/threerings/parlor/client/TableDirector.java b/src/java/com/threerings/parlor/client/TableDirector.java index 31abb1bf..b4a8b104 100644 --- a/src/java/com/threerings/parlor/client/TableDirector.java +++ b/src/java/com/threerings/parlor/client/TableDirector.java @@ -130,6 +130,14 @@ public class TableDirector extends BasicDirector return (_ourTable != null); } + /** + * Returns the current table this client is seated at, or null. + */ + public Table getSeatedTable () + { + return _ourTable; + } + /** * Sends a request to create a table with the specified game configuration. This user will * become the owner of this table and will be added to the first position in the table. The