Package ruscz.game.gameOfProd.Cells
Class Block
- java.lang.Object
-
- ruscz.game.gameOfProd.Cells.Cell
-
- ruscz.game.gameOfProd.Cells.Block
-
public class Block extends Cell
Cell with collision to Player
-
-
Field Detail
-
imageCell
private final ImageCell imageCell
-
paint
private final boolean paint
-
partial
private final java.lang.String partial
-
-
Method Detail
-
isInBlock
public boolean isInBlock(int x, int y)Checks if this Block in this position- Parameters:
x- X positiony- Y position- Returns:
- true if Block is in this position
-
isInBlock
public boolean isInBlock(int x, int y, boolean half)- Parameters:
x- X positiony- Y positionhalf- is half-block- Returns:
- true if Block is upper half-block
-
isPartial
public boolean isPartial()
-
-