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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user