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