| Modifier and Type | Field and Description |
|---|---|
private PlayField |
Bat.playField |
private PlayField |
Ball.playField |
| Constructor and Description |
|---|
Ball(PlayField playField,
float start_x,
float start_y,
float radius,
double speed,
int angle)
constructor The constructor takes the canvas as input, so it knows where it
lives (and can ask the size of its canvas (eg. ceiling and borders)
Furthermore it gets its starting position (start_x, start_y) and its starting
speed and starting angle).
|
Bat(PlayField playField)
Constructor The constructor takes the canvas as input, so it knows where it
lives and can ask the size of its canvas (borders)
|