import java.awt.*;

/**
  *Wall is the side stationary obstacle for the Brickles game
  *MovablePieces that hit the Wall bounce off
  */

class Wall extends StationaryPiece{
	protected Dimension extent;

	/**
	  *Constructor initializes the BoundingBox
	  *@param fieldPtr The PlayingField in which the Piece is held
	  *@param atPoint1 The upperLeftCorner of the Piece
	  *@param newExtent  The width and height of the Piece
	  */
	public Wall(PlayingField fieldPtr,Point atPoint1,Dimension newExtent){
		super(fieldPtr,atPoint1);
		extent = newExtent;
		this.newBoundingBox(atPoint1,extent);
	}

	
   	/**
	  *Not needed
	  */
	void collideWithPaddle(Paddle aPaddle,Point atPoint){
		aPaddle.reverseX();
	}

	/**
	  *Defines the behavior on collision with a Puck
	  *@param aPuck  The puck that has collided
	  *@param atPoint location of the collision
	  */
	public void collideWithPuck(Puck aPuck, Point atPoint){
		aPuck.reverseX();
	}
}