breakout
Class Block

java.lang.Object
  extended by breakout.GameObject
      extended by breakout.Block
Direct Known Subclasses:
DecPaddleBlock, IncPaddleBlock, MultiBlock

public class Block
extends GameObject


Field Summary
static int BLOCK_HEIGHT
           
static int BLOCK_WIDTH
           
 
Constructor Summary
Block()
           
Block(int x, int y)
           
 
Method Summary
 Drop getDrop()
           
 java.awt.Image getImage()
           
 void hit(Brett brett)
           
 void setDrop(Drop drop)
           
 void setImage(java.awt.Image img)
           
 void setPosition(int x, int y)
           
 
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
 

Field Detail

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
Constructor Detail

Block

public Block()

Block

public Block(int x,
             int y)
Method Detail

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)