From f870b025b87178befe0cfcc18aaf48b3a08562fc Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Mon, 31 Mar 2003 22:54:09 +0000 Subject: [PATCH] Make our intended location available. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2366 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../whirled/spot/client/SpotSceneDirector.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java index 3ac148c96..830e56a4e 100644 --- a/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java +++ b/src/java/com/threerings/whirled/spot/client/SpotSceneDirector.java @@ -1,5 +1,5 @@ // -// $Id: SpotSceneDirector.java,v 1.24 2003/03/27 17:24:55 mdb Exp $ +// $Id: SpotSceneDirector.java,v 1.25 2003/03/31 22:54:09 mdb Exp $ package com.threerings.whirled.spot.client; @@ -77,6 +77,15 @@ public class SpotSceneDirector extends BasicDirector _chatdir = chatdir; } + /** + * Returns our current location unless we have a location change + * pending, in which case our pending location is returned. + */ + public Location getIntendedLocation () + { + return (_pendingLoc != null) ? _pendingLoc : _location; + } + /** * Requests that this client move to the location specified by the * supplied portal id. A request will be made and when the response is