public class Block_Square extends Block
Constructor and Description |
---|
Block_Square(java.lang.String color,
int rotation)
Konstruktor
|
Modifier and Type | Method and Description |
---|---|
Board |
rotateLeft(Board board)
rotiert den Block nach Links
da es sich um ein Quadrat handelt, verändert die Rotation das Spielfeld nicht
|
Board |
rotateRight(Board board)
rotiert den Block nach Links
da es sich um ein Quadrat handelt, verändert die Rotation das Spielfeld nicht
|
canInsert, canMoveDown, canMoveLeft, canMoveRight, collidesWithBorder, collidesWithLeftBorder, collidesWithRightBorder, getColor, getPoints, insertBlock, isFixed, moveDown, moveLeft, moveRight, toString
public Block_Square(java.lang.String color, int rotation)
color
- String - Farbe des Blocks (Hexcode)rotation
- int - Rotation des Blocks (da es sich um ein Quadrat handelt, spielt die Rotation keine Rolle)public Board rotateLeft(Board board)
rotateLeft
in class Block
board
- Board - aktuelles Spielfeld *public Board rotateRight(Board board)
rotateRight
in class Block
board
- Board - aktuelles Spielfeld