public class CS15Ball
extends java.lang.Object
| Constructor and Description |
|---|
CS15Ball(boolean startMovingLeft)
Creates a new ball for pong.
|
| Modifier and Type | Method and Description |
|---|---|
void |
updatePosition()
Moves the ball incrementally, maintaining its own velocity.
|