jfreerails.world.track
Class TrackSection

java.lang.Object
  extended by jfreerails.world.track.TrackSection
All Implemented Interfaces:
java.io.Serializable, FreerailsSerializable

public class TrackSection
extends java.lang.Object
implements FreerailsSerializable

Represents the track connecting two adjacent tiles.

Author:
Luke
See Also:
Serialized Form

Field Summary
private static long serialVersionUID
           
private  Step step
           
private  ImPoint tile
           
 
Constructor Summary
TrackSection(Step step, ImPoint tile)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 ImPoint tileA()
           
 ImPoint tileB()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

step

private final Step step

tile

private final ImPoint tile
Constructor Detail

TrackSection

public TrackSection(Step step,
                    ImPoint tile)
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

tileA

public ImPoint tileA()

tileB

public ImPoint tileB()