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.
Method Summary |
void |
paint(Graphics gr)
renders this component to the screen. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OtherBrick
public OtherBrick(Point location,
Dimension size,
World w)
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