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

Fields inherited from class world.PathKey
end, start
 
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.
 
Method Summary
 int getDistance()
           
 int[] getSteps()
           
 Tile[] getTiles()
           
 boolean isConnected()
           
 
Methods inherited from class world.PathKey
compareTo, getEnd, getOrdinal, getStart
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
Method Detail

getTiles

public Tile[] getTiles()

getSteps

public int[] getSteps()

isConnected

public boolean isConnected()

getDistance

public int getDistance()


Copyright 2002 Allen D. Ball. All rights reserved.