Changed MisoSceneModel so that it knows about the view width and height.
It no longer stores base tiles that are not visable in the view, in fact it stores the base tiles in an array almost half the size as the fully expanded scene array, and this new smaller array is used everywhere: when saving the scene, serializing it to the user, or saving it in the database. We must now use the getBaseTile() and setBaseTile() methods to access the base tiles because they are stored in this compressed format. Also removed the fringe layer completely from the MisoSceneModel. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1369 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: EditableMisoScene.java,v 1.15 2002/04/27 18:41:14 mdb Exp $
|
||||
// $Id: EditableMisoScene.java,v 1.16 2002/05/17 19:06:23 ray Exp $
|
||||
|
||||
package com.threerings.miso.scene.tools;
|
||||
|
||||
@@ -58,17 +58,6 @@ public interface EditableMisoScene
|
||||
*/
|
||||
public void setBaseTiles (Rectangle r, BaseTileSet set, int setId);
|
||||
|
||||
/**
|
||||
* Updates the tile at the specified location in the fringe layer.
|
||||
*
|
||||
* @param x the x-coordinate of the tile to set.
|
||||
* @param y the y-coordinate of the tile to set.
|
||||
* @param tile the tile to set.
|
||||
* @param fqTileId the fully-qualified tile id (@see
|
||||
* TileUtil#getFQTileId}) of the new default base tile.
|
||||
*/
|
||||
public void setFringeTile (int x, int y, Tile tile, int fqTileId);
|
||||
|
||||
/**
|
||||
* Addds an object tile to this scene.
|
||||
*
|
||||
@@ -90,11 +79,6 @@ public interface EditableMisoScene
|
||||
*/
|
||||
public void clearBaseTile (int x, int y);
|
||||
|
||||
/**
|
||||
* Clears out the tile at the specified location in the fringe layer.
|
||||
*/
|
||||
public void clearFringeTile (int x, int y);
|
||||
|
||||
/**
|
||||
* Clears out the specified tile from the object list.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user