Fixed up path-finding, path-following, and tile coordinate drawing.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@260 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Walter Korman
2001-08-15 22:06:21 +00:00
parent 9f620978e5
commit affc3e82b7
7 changed files with 123 additions and 51 deletions
@@ -1,5 +1,5 @@
//
// $Id: CharacterSprite.java,v 1.5 2001/08/15 02:30:27 shaper Exp $
// $Id: CharacterSprite.java,v 1.6 2001/08/15 22:06:21 shaper Exp $
package com.threerings.miso.scene;
@@ -52,8 +52,6 @@ public class AmbulatorySprite extends Sprite implements Traverser
// bail if we're at the end of the path
if (_dest == null) {
// stop any walking animation
setAnimationDelay(ANIM_NONE);
return;
}
@@ -64,6 +62,14 @@ public class AmbulatorySprite extends Sprite implements Traverser
setAnimationDelay(0);
}
public void stop ()
{
super.stop();
// stop any walking animation
setAnimationDelay(ANIM_NONE);
}
public boolean canTraverse (Tile tile)
{
// by default, passability is solely the province of the tile