|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectJTP.GameTile
public class GameTile
Wrapper for Tile
used in-game.
Constructor Summary | |
---|---|
GameTile(Tile tile)
Creates a new GameTile instance with the given from the given
Tile . |
Method Summary | |
---|---|
boolean |
decHeight()
Decreases height of this tile by one. |
void |
disable()
Sets disable flag for this tile. |
int |
getHeight()
Returns the height of this tile pile. |
Tile |
getTile()
Returns the tile within this wrapper. |
int |
getType()
Returns the type of tile. |
boolean |
isDisabled()
Returns whether a player has died here. |
void |
reset()
Resets height specified in wrapper to that of the referenced Tile instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public GameTile(Tile tile) throws NullPointerException
GameTile
instance with the given from the given
Tile
. Note: No copy is made of the original Tile
tile
- the tile to wrap
NullPointerException
- if tile
is null
Method Detail |
---|
public int getHeight()
public boolean isDisabled()
true
if either of the players has died here.public void disable()
reset()
method will clear this flag.
public int getType()
Tile
class for possible types.
public Tile getTile()
public boolean decHeight()
Tile
instance is not altered. Using the reset()
method will return this tile to its original height.
true
if height has changedpublic void reset()
Tile
instance.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |