Added getModel().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1262 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2002-04-17 00:16:34 +00:00
parent 6df0ef6172
commit e4185bd7a1
2 changed files with 14 additions and 3 deletions
@@ -1,5 +1,5 @@
//
// $Id: RuntimeSpotScene.java,v 1.2 2001/12/14 00:12:32 mdb Exp $
// $Id: RuntimeSpotScene.java,v 1.3 2002/04/17 00:16:34 mdb Exp $
package com.threerings.whirled.spot.server;
@@ -14,7 +14,7 @@ import com.threerings.whirled.server.RuntimeScene;
public interface RuntimeSpotScene extends RuntimeScene
{
/**
* Returns the number of locations in this scene.
* Returns the number of locations (and portals) in this scene.
*/
public int getLocationCount ();
@@ -60,4 +60,9 @@ public interface RuntimeSpotScene extends RuntimeScene
* is not a portal.
*/
public int getTargetLocationId (int locationId);
/**
* Returns a reference to the underlying model.
*/
public SpotSceneModel getModel ();
}
@@ -1,5 +1,5 @@
//
// $Id: RuntimeSpotSceneImpl.java,v 1.2 2001/12/14 00:12:32 mdb Exp $
// $Id: RuntimeSpotSceneImpl.java,v 1.3 2002/04/17 00:16:34 mdb Exp $
package com.threerings.whirled.spot.server;
@@ -94,6 +94,12 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl
return (pidx == -1) ? -1 : _model.targetLocIds[pidx];
}
// documentation inherited from interface
public SpotSceneModel getModel ()
{
return _model;
}
/**
* Returns the index of the specified portal in the model's internal
* portal arrays.