§ 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 | ) |
|
sets the x position of the ball
- Parameters
-
§ setPositionY()
void model.Ball.setPositionY |
( |
int |
y | ) |
|
sets the y position of the ball
- Parameters
-
§ positionX
The X and Y position of a ball on the screen
§ positionY
§ SIZE
final int model.Ball.SIZE = 20 |
|
private |
§ speed
The documentation for this class was generated from the following file: