public class ConfigurableTile extends Object implements IConfigurableTile
Constructor and Description |
---|
ConfigurableTile(Path[] paths,
Rotation rotation)
The constructor takes four paths and a rotation
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
boolean |
equalsWithoutRotation(Object other) |
Path[] |
getPaths()
Returns the path array of the tile.
|
Rotation |
getRotation() |
void |
setRotation(Rotation newDirection) |
String |
toString() |
void |
turnBy90DegreesClockwise()
Turns the entire tile 90 degrees clockwise
|
public ConfigurableTile(Path[] paths, Rotation rotation) throws IOException
paths
- the four paths on the tilerotation
- the rotation the tile is supposed to be displayedIOException
- if the given Path[] object is not validpublic Path[] getPaths()
getPaths
in interface IConfigurableTile
public Rotation getRotation()
public void turnBy90DegreesClockwise()
public void setRotation(Rotation newDirection)
setRotation
in interface IConfigurableTile
public boolean equalsWithoutRotation(Object other)
Copyright © 2017 smarTen. All rights reserved.