Canned setBaseTiles().

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2415 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2003-04-18 18:31:21 +00:00
parent 27184f6ddd
commit 50bf565485
2 changed files with 2 additions and 26 deletions
@@ -1,5 +1,5 @@
//
// $Id: MisoSceneModel.java,v 1.14 2003/04/17 19:21:16 mdb Exp $
// $Id: MisoSceneModel.java,v 1.15 2003/04/18 18:31:20 mdb Exp $
package com.threerings.miso.data;
@@ -70,24 +70,6 @@ public abstract class MisoSceneModel extends SimpleStreamableObject
*/
public abstract boolean setBaseTile (int fqTileId, int x, int y);
/**
* Fill a rectangular area with random tiles from the specified base
* tileset.
*
* @param r the region to be filled.
* @param setId the id of the tileset to use when filling.
* @param setSize the number of tiles in the tileset.
*/
public void setBaseTiles (Rectangle r, int setId, int setSize)
{
for (int x = r.x; x < r.x + r.width; x++) {
for (int y = r.y; y < r.y + r.height; y++) {
int index = _rando.nextInt(setSize);
setBaseTile(TileUtil.getFQTileId(setId, index), x, y);
}
}
}
/**
* Populates the supplied object set with info on all objects whose
* origin falls in the requested region.
@@ -1,5 +1,5 @@
//
// $Id: VirtualMisoSceneModel.java,v 1.1 2003/04/17 19:21:16 mdb Exp $
// $Id: VirtualMisoSceneModel.java,v 1.2 2003/04/18 18:31:21 mdb Exp $
package com.threerings.miso.data;
@@ -27,12 +27,6 @@ public abstract class VirtualMisoSceneModel extends MisoSceneModel
throw new UnsupportedOperationException();
}
// documentation inherited from interface
public void setBaseTiles (Rectangle r, int setId, int setSize)
{
throw new UnsupportedOperationException();
}
// documentation inherited from interface
public void addObject (ObjectInfo info)
{