Added getModel().
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1262 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -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;
|
package com.threerings.whirled.spot.server;
|
||||||
|
|
||||||
@@ -14,7 +14,7 @@ import com.threerings.whirled.server.RuntimeScene;
|
|||||||
public interface RuntimeSpotScene extends 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 ();
|
public int getLocationCount ();
|
||||||
|
|
||||||
@@ -60,4 +60,9 @@ public interface RuntimeSpotScene extends RuntimeScene
|
|||||||
* is not a portal.
|
* is not a portal.
|
||||||
*/
|
*/
|
||||||
public int getTargetLocationId (int locationId);
|
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;
|
package com.threerings.whirled.spot.server;
|
||||||
|
|
||||||
@@ -94,6 +94,12 @@ public class RuntimeSpotSceneImpl extends RuntimeSceneImpl
|
|||||||
return (pidx == -1) ? -1 : _model.targetLocIds[pidx];
|
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
|
* Returns the index of the specified portal in the model's internal
|
||||||
* portal arrays.
|
* portal arrays.
|
||||||
|
|||||||
Reference in New Issue
Block a user