§ Ball()
Constructor for Ball.
Constructor accepts the x and y position of the ball
§ getPositionX()
int model.Ball.getPositionX |
( |
| ) |
|
gets the x-position of the ball
- Returns
- positionX
§ getPositionY()
int model.Ball.getPositionY |
( |
| ) |
|
gets the y-position of the ball
- Returns
- positionY
§ getSize()
int model.Ball.getSize |
( |
| ) |
|
gets the size of the ball
- Returns
- SIZE
§ setPositionX()
void model.Ball.setPositionX |
( |
int |
x | ) |
throws ArithmeticException |
sets the x position of the ball
- Parameters
-
- Exceptions
-
ArithmeticException | ball x-position could not be set out of the game frame. |
§ setPositionY()
void model.Ball.setPositionY |
( |
int |
y | ) |
throws ArithmeticException |
sets the y position of the ball
- Parameters
-
- Exceptions
-
ArithmeticException | ball y-position could not be set out of the game frame. |
§ positionX
The X and Y position of a ball on the screen
§ positionY
§ SIZE
final int model.Ball.SIZE = 20 |
|
private |
The documentation for this class was generated from the following file: