From cdc4adfca809862d8c4708605d4a5b136d93715e Mon Sep 17 00:00:00 2001 From: Michael Bayne Date: Thu, 29 Nov 2001 00:16:11 +0000 Subject: [PATCH] Added getDefaultEntranceId(). git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@663 542714f4-19e9-0310-aa3c-eee0fc999fb1 --- .../threerings/whirled/spot/client/DisplaySpotScene.java | 7 ++++++- .../whirled/spot/client/DisplaySpotSceneImpl.java | 8 +++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/java/com/threerings/whirled/spot/client/DisplaySpotScene.java b/src/java/com/threerings/whirled/spot/client/DisplaySpotScene.java index 7ea69fffb..f2f0c4774 100644 --- a/src/java/com/threerings/whirled/spot/client/DisplaySpotScene.java +++ b/src/java/com/threerings/whirled/spot/client/DisplaySpotScene.java @@ -1,5 +1,5 @@ // -// $Id: DisplaySpotScene.java,v 1.1 2001/11/13 02:25:35 mdb Exp $ +// $Id: DisplaySpotScene.java,v 1.2 2001/11/29 00:16:11 mdb Exp $ package com.threerings.whirled.spot.client; @@ -15,6 +15,11 @@ import com.threerings.whirled.spot.data.Portal; */ public interface DisplaySpotScene extends DisplayScene { + /** + * Returns the location id of the default entrance to this scene. + */ + public int getDefaultEntranceId (); + /** * Returns an array of the locations in this scene (including portals * which will be instances of {@link Portal}). diff --git a/src/java/com/threerings/whirled/spot/client/DisplaySpotSceneImpl.java b/src/java/com/threerings/whirled/spot/client/DisplaySpotSceneImpl.java index ad4f6e2ff..14958e8e4 100644 --- a/src/java/com/threerings/whirled/spot/client/DisplaySpotSceneImpl.java +++ b/src/java/com/threerings/whirled/spot/client/DisplaySpotSceneImpl.java @@ -1,5 +1,5 @@ // -// $Id: DisplaySpotSceneImpl.java,v 1.1 2001/11/13 02:25:35 mdb Exp $ +// $Id: DisplaySpotSceneImpl.java,v 1.2 2001/11/29 00:16:11 mdb Exp $ package com.threerings.whirled.spot.client; @@ -62,6 +62,12 @@ public class DisplaySpotSceneImpl extends DisplaySceneImpl } } + // documentation inherited + public int getDefaultEntranceId () + { + return _model.defaultEntranceId; + } + // documentation inherited public Location[] getLocations () {