import java.awt.*;

/**
  *Floor is the bottom stationary obstacle for the Brickles game
  *MovablePieces that hit the Floor are deleted & destroyed
  */
class Floor extends StationaryPiece{
	protected Dimension extent;
      protected BricklesView _theView;

	/**
	  *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 Floor(PlayingField fieldPtr,Point atPoint1,Dimension newExtent){
		super(fieldPtr,atPoint1);
		extent = newExtent;
            _theView = ((BricklesPlayingField)_fieldPtr).getView();
		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.deleted();
	}
}
