Modifier and Type | Method and Description |
---|---|
BoardElement<K> |
copy()
Makes a copy of the board element
|
Direction |
getDirection()
Gets the direction of the element
|
K |
getType()
Gets the type of the element
|
void |
setDirection(Direction newDirection)
Changes the direction of the element
|
K getType()
Direction getDirection()
void setDirection(Direction newDirection)
newDirection
- The element's new directionBoardElement<K> copy()