import java.awt.*;

/**
  *Ceiling is the top stationary obstacle for the Brickles game
  *MovablePieces bounce off the Ceiling
  */
class Ceiling 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 Ceiling(PlayingField fieldPtr,Point atPoint1,Dimension newExtent){
		super(fieldPtr,atPoint1);
		extent = newExtent;
		this.newBoundingBox(atPoint1,extent);
	}

	/**
	  *Not needed
	  */
	public void collideWith(ArcadeGamePiece aPiece, Point atPoint){
	}

	/**
	  *Not needed
	  */
	public void collideWithPaddle(Paddle aPaddle,Point atPoint){

	}

	/**
	  *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.reverseY();
	}
}