Posted: Fri Nov 20
Due: Monday 11/23 10:00am
Submission name: w27_balllist
Setup
Start by grabbing the ballList program from thesource. It contains a fully working version for assignment 23 (array of Ball objects with collision detection). I also contains a ListArray class that contains Ball objects. The ListArray class does not need to be modified.
List-ify the program.
The included driver file uses an array to store Ball objects. Your job is to to modify the driver such that the program uses a ListArray instead. Some things to be aware of:
- Do not modify the
ListArrayorBallclasses. - Do not implement the
-keyPRessed event. We have not implementedListArrayremoval yet. - The driver file has a global variable for
numBalls, it is no longer needed. - There are multiple places where the driver file checks for
null. Since we are no longer using an array, and the list will never have empty spaces, we will not need those checks.