public class Block_Z extends Block
Constructor and Description |
---|
Block_Z(java.lang.String color,
int rotation) |
Modifier and Type | Method and Description |
---|---|
Board |
rotateLeft(Board board)
rotiert den Block nach links
|
Board |
rotateRight(Board board)
rotiert den Block nach rechts
|
canInsert, canMoveDown, canMoveLeft, canMoveRight, collidesWithBorder, collidesWithLeftBorder, collidesWithRightBorder, getColor, getPoints, insertBlock, isFixed, moveDown, moveLeft, moveRight, toString
public Board rotateLeft(Board board)
rotateLeft
in class Block
board
- Board - aktuelles Spielfeldpublic Board rotateRight(Board board)
rotateRight
in class Block
board
- Board - aktuelles Spielfeld