Moved AmbulatorySprite around and made it implement the Traverser
interface. Initial version of AStarPathUtil and hooked it in to SceneView.getPath(). Not yet tested. git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@255 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// $Id: Traverser.java,v 1.1 2001/08/15 02:30:27 shaper Exp $
|
||||
|
||||
package com.threerings.miso.tile;
|
||||
|
||||
/**
|
||||
* The <code>Traverser</code> interface should be implemented by
|
||||
* sprites that are going to traverse some path in a scene. This
|
||||
* allows path determination to take into account any special
|
||||
* abilities the traverser may have that alter the traversability of
|
||||
* tiles.
|
||||
*/
|
||||
public interface Traverser
|
||||
{
|
||||
/**
|
||||
* Return whether the traverser can traverse the specified tile.
|
||||
*
|
||||
* @param tile the tile to traverse.
|
||||
*
|
||||
* @return whether the tile is traversable.
|
||||
*/
|
||||
public boolean canTraverse (Tile tile);
|
||||
}
|
||||
Reference in New Issue
Block a user