/** * A barrier that birds try not to hit * This is just like a bird but it doesn't move * and is drawn a little differently. **/ import java.awt.*; class Barrier extends Bird { Barrier(int x, int y) { super(x,y, 0, Color.black); pAim = new Point(x+5,y+5); } /** * Override the move method to do nothing **/ public void move() { // Do nothing } /** * Alter the display method a little **/ public void display( Graphics g ) { g.setColor( Color.black ); g.fillArc( iX, iY, 10, 10, 0, 360 ); } }