public class Tile extends GameModelObservable implements ITile
Constructor and Description |
---|
Tile(int tileId,
Rotation rotation) |
Tile(int tileId,
Rotation rotation,
ConfigurableTile ct) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Gate |
getConnnectedGate(Gate start) |
Player |
getOwner() |
Path[] |
getPaths() |
Rotation |
getRotation() |
int |
getTileId() |
void |
setRotation(Rotation rotation) |
addGameModelObservable, getGameModel, notifyGameModel, notifyGameModel, removeGameModelObservable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public Tile(int tileId, Rotation rotation)
tileId
- the tile's IDrotation
- the tile's rotationpublic Tile(int tileId, Rotation rotation, ConfigurableTile ct)
tileId
- the tile's IDrotation
- the tile's rotationct
- the related configurable tile. If this is not given it will be set by the TileTranslatorpublic Rotation getRotation()
getRotation
in interface ITile
public void setRotation(Rotation rotation)
setRotation
in interface ITile
public Player getOwner()
public Path[] getPaths()
Copyright © 2017 smarTen. All rights reserved.