|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJTP.Tile
JTP.TptTile
public class TptTile
Teleportation tile
Field Summary |
---|
Fields inherited from class JTP.Tile |
---|
ARROW, GRAVITY, height, ICE, NORMAL, TELEPORT, type |
Constructor Summary | |
---|---|
TptTile(int height,
Point destination)
Constructs a new TptTile 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. |
Point |
getDestination()
Returns destination of this teleport tile as a Point . |
static Point |
getDestination(Tile t)
Returns destination of a teleport tile as a Point . |
Methods inherited from class JTP.Tile |
---|
decHeight, getHeight, getType, incHeight, isStartable, setHeight, tileCheck, transferAttributesFrom |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TptTile(int height, Point destination) throws NullPointerException, TileException
TptTile
instance with the given attributes.
height
- of the piledestination
- of this teleport
NullPointerException
- if destination
is
null
.
TileException
- if either height
or destination
are invalid.Method Detail |
---|
public Point getDestination()
Point
.
public static Point getDestination(Tile t)
Point
.
t
- the tile of which destination is to be determined.
null
if
the supplied tile is not of type TELEPORT
.public boolean equalsApartFromHeight(Tile t)
equalsApartFromHeight
in class Tile
t
- the Tile
instance to compare the current tile with.
true
if the two Tile
instances
are equal disregarding their heights.public Tile copy()
copy
in class Tile
Tile
instance.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |