Breakout Problem Set Javadocs

breakout
Class Wall

java.lang.Object
  extended bybreakout.DefaultBreakoutComponent
      extended bybreakout.Wall
All Implemented Interfaces:
BreakoutComponent
Direct Known Subclasses:
KillerWall, TransferWall

public class Wall
extends DefaultBreakoutComponent

A Wall is an unkillable component used to edge in the World and prevent balls from escaping.

Version:
$Id: Wall.java,v 1.2 2004/03/26 20:39:33 gus Exp $
Author:
benmv@olin.edu
See Also:
World

Constructor Summary
Wall(java.awt.Point location, java.awt.Dimension size, World w)
           
 
Method Summary
 void hitBy(BreakoutComponent striker)
          Walls do nothing when struck.
 void kill()
          overridden to prevent Walls from getting killed.
 void paint(java.awt.Graphics g)
          Walls render as white rectangles of the appropriate size
 
Methods inherited from class breakout.DefaultBreakoutComponent
getCenter, getLocation, getShape, getSize, isDead, isTransient, setLocation, setWorld
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Wall

public Wall(java.awt.Point location,
            java.awt.Dimension size,
            World w)
Method Detail

kill

public void kill()
overridden to prevent Walls from getting killed.

Specified by:
kill in interface BreakoutComponent
Overrides:
kill in class DefaultBreakoutComponent

paint

public void paint(java.awt.Graphics g)
Walls render as white rectangles of the appropriate size

Specified by:
paint in interface BreakoutComponent
Specified by:
paint in class DefaultBreakoutComponent
Parameters:
g - Graphics used to render Wall.

hitBy

public void hitBy(BreakoutComponent striker)
Walls do nothing when struck.

Specified by:
hitBy in interface BreakoutComponent
Specified by:
hitBy in class DefaultBreakoutComponent
Parameters:
striker - BreakoutComponent rebounding off wall

Breakout Problem Set Javadocs