JTP
Class NrmTile

java.lang.Object
  extended by JTP.Tile
      extended by JTP.StartableTile
          extended by JTP.NrmTile
All Implemented Interfaces:
Serializable

public class NrmTile
extends StartableTile

Normal tile (startable)

Author:
V.Termanis
See Also:
Serialized Form

Field Summary
 
Fields inherited from class JTP.StartableTile
levelStart
 
Fields inherited from class JTP.Tile
ARROW, GRAVITY, height, ICE, NORMAL, TELEPORT, type
 
Constructor Summary
NrmTile(int height, boolean levelStart)
          Constructs a new GrvTile instance with the given attributes.
 
Method Summary
 Tile copy()
          Creates an exact (non-shallow) copy of the current tile
 boolean equalsApartFromHeight(Tile t)
          Used to compare two tiles, ignoring their respective heights.
 
Methods inherited from class JTP.StartableTile
decHeight, isStart, isStartable, setHeight, setStart, tileCheck, transferAttributesFrom, transferAttributesFrom
 
Methods inherited from class JTP.Tile
getHeight, getType, incHeight
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NrmTile

public NrmTile(int height,
               boolean levelStart)
        throws TileException
Constructs a new GrvTile instance with the given attributes.

Parameters:
height - of the pile
levelStart - indicates whether this is a start
Throws:
TileException - if height is invalid.
Method Detail

equalsApartFromHeight

public boolean equalsApartFromHeight(Tile t)
Used to compare two tiles, ignoring their respective heights.

Overrides:
equalsApartFromHeight in class Tile
Parameters:
t - the Tile instance to compare the current tile with.
Returns:
true if the two Tile instances are equal disregarding their heights.

copy

public Tile copy()
Creates an exact (non-shallow) copy of the current tile

Overrides:
copy in class Tile
Returns:
a copy of the Tile instance.