Return a boolean from setBaseTile to indicate if the tile was actually updated

git-svn-id: svn+ssh://src.earth.threerings.net/vilya/trunk@585 c613c5cb-e716-0410-b11b-feb51c14d237
This commit is contained in:
Charlie Groves
2008-04-25 00:45:43 +00:00
parent 99ee2f5a5f
commit 865c5def8b
@@ -570,11 +570,13 @@ public class EditorScenePanel extends StageScenePanel
/** /**
* Sets a base tile at the specified position in the scene (in tile * Sets a base tile at the specified position in the scene (in tile
* coordinates). * coordinates).
*
* @return - if the tile was successfully set
*/ */
public void setBaseTile (int fqTileId, int x, int y) public boolean setBaseTile (int fqTileId, int x, int y)
{ {
if (!_model.setBaseTile(fqTileId, x, y)) { if (!_model.setBaseTile(fqTileId, x, y)) {
return; return false;
} }
getBlock(x, y).updateBaseTile(fqTileId, x, y); getBlock(x, y).updateBaseTile(fqTileId, x, y);
@@ -584,6 +586,7 @@ public class EditorScenePanel extends StageScenePanel
getBlock(fx, fy).updateFringe(fx, fy); getBlock(fx, fy).updateFringe(fx, fy);
} }
} }
return true;
} }
/** /**