world
Class Path
java.lang.Object
|
+--world.PathKey
|
+--world.Path
- All Implemented Interfaces:
- Comparable
- public class Path
- extends PathKey
Class to record paths through tiles.
- Version:
- $Revision: 1.1 $
- Author:
- Allen D. Ball
Constructor Summary |
protected |
Path(Tile start,
Tile end)
Creates a path for a start and an end which cannot be connected. |
protected |
Path(Tile start,
Tile end,
Tile[] tiles,
int[] steps)
Creates a path. |
Methods inherited from class java.lang.Object |
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Path
protected Path(Tile start,
Tile end,
Tile[] tiles,
int[] steps)
- Creates a path.
Path
protected Path(Tile start,
Tile end)
- Creates a path for a start and an end which cannot be connected.
getTiles
public Tile[] getTiles()
getSteps
public int[] getSteps()
isConnected
public boolean isConnected()
getDistance
public int getDistance()
Copyright 2002 Allen D. Ball. All rights reserved.