breakout
Class Block
java.lang.Object
breakout.GameObject
breakout.Block
- Direct Known Subclasses:
- DecPaddleBlock, IncPaddleBlock, MultiBlock
public class Block
- extends GameObject
Methods inherited from class breakout.GameObject |
addSize, getHeight, getWidth, getX, getY, hits, isAboveOf, isBelowOf, isLeftOf, isRightOf, setHeight, setPos, setWidth, setX, setY |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BLOCK_WIDTH
public static final int BLOCK_WIDTH
- See Also:
- Constant Field Values
BLOCK_HEIGHT
public static final int BLOCK_HEIGHT
- See Also:
- Constant Field Values
Block
public Block()
Block
public Block(int x,
int y)
hit
public void hit(Brett brett)
getDrop
public Drop getDrop()
setDrop
public void setDrop(Drop drop)
getImage
public java.awt.Image getImage()
- Returns:
- the img
setImage
public void setImage(java.awt.Image img)
- Parameters:
img
- the img to set
setPosition
public void setPosition(int x,
int y)