| Method Signature | Description |
|
WallsEnum getCollidedWall()
|
returns either {LEFT, RIGHT, TOP, BOTTOM,NO_COLLISION} corresponding to the wall that the ball collided with.
|
|
void ballReflectOffTopWall()
|
call this function to reflect the ball about the x axis
|
|
void ballReflectOffLeftWall()
|
call this function to reflect the ball about the y axis
|
|
void ballReflectOffRightWall()
|
call this function to reflect the ball about the y axis
|
|
void loseALife()
|
call this function reduce the lives in the lifeSet by one and lose the game if the set is 0.
|
| Extended Method Signature | Description |
|
void ballReflectOffTopWall(int whichBall)
|
call this function to reflect the ball specified by whichBall about the x axis
|
|
void ballReflectOffLeftWall(int whichBall)
|
call this function to reflect the ball specified by whichBall about the y axis
|
|
void ballReflectOffRightWall(int whichBall)
|
call this function to reflect the ball specified by whichBall about the y axis
|
|
void ballReflectOffBottomWall()
|
call this function to reflect the ball about the x axis - not needed in this TODO, but included for completeness.
|
|
void ballReflectOffBottomWall(int whichBall)
|
call this function to reflect the ball specified by whichBall about the x axis - not needed in this TODO, but included for completeness.
|