001    package breakout;
002    
003    import java.awt.*;
004    
005    /**
006     * A KillerWall kills anything that hits it.  It is used as the
007     * bottom (SOUTH) wall in the World.
008     *
009     * @see breakout.World
010     *
011     * @author benmv@olin.edu
012     * @version <tt>$Id: KillerWall.java,v 1.2 2004/03/26 20:39:33 gus Exp $</tt>
013     */
014    public class KillerWall extends Wall {
015    
016        public KillerWall(Point location, Dimension size, World w) {
017            super(location,size,w);
018        }
019        
020        /**
021         * <tt>kill</tt>s any component that hits it.
022         *
023         * @param bc the component about to die
024         */
025        public void hitBy(BreakoutComponent bc) {
026            bc.kill();
027        }
028    }
029