Separate the notion of tile passability from tile objects since

passability is specific to the miso layer.


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@405 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-10-08 21:04:26 +00:00
parent d7fb56d203
commit 95ba5ef9cf
14 changed files with 293 additions and 213 deletions
@@ -1,5 +1,5 @@
//
// $Id: ViewerSceneViewPanel.java,v 1.16 2001/10/01 22:18:24 mdb Exp $
// $Id: ViewerSceneViewPanel.java,v 1.17 2001/10/08 21:04:26 shaper Exp $
package com.threerings.miso.viewer;
@@ -80,6 +80,12 @@ public class ViewerSceneViewPanel extends SceneViewPanel
// get the path from here to there
Path path = _view.getPath(_sprite, x, y);
if (path == null) {
_sprite.cancelMove();
return;
}
((LineSegmentPath)path).setVelocity(100f/1000f);
_sprite.move(path);
}