breakout
Class OtherBrick

java.lang.Object
  |
  +--breakout.DefaultBreakoutComponent
        |
        +--breakout.BenSimpleBrick
              |
              +--breakout.OtherBrick
All Implemented Interfaces:
BreakoutComponent, Brick

public class OtherBrick
extends BenSimpleBrick

A Brick that renders with a question mark and is used by the StudentConnector to represent bricks on the partner's game.


Constructor Summary
OtherBrick(Point location, Dimension size, World w)
           
 
Method Summary
 void paint(Graphics gr)
          renders this component to the screen.
 
Methods inherited from class breakout.BenSimpleBrick
hitBy
 
Methods inherited from class breakout.DefaultBreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, kill, setLocation, setWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface breakout.BreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, kill, setLocation, setWorld
 

Constructor Detail

OtherBrick

public OtherBrick(Point location,
                  Dimension size,
                  World w)
Method Detail

paint

public void paint(Graphics gr)
Description copied from interface: BreakoutComponent
renders this component to the screen. Origin of graphics has been translated to upper-left corner of component.

Specified by:
paint in interface BreakoutComponent
Overrides:
paint in class BenSimpleBrick