COMP 1671, Section 1, Fall 2008

LAB 10

Modify ListExample3 so that instead of removing the ambulances are moving around. Use the Actor class setRotation() method so that they are pointed in roughly the direction they are going in. When an ambulance gets within 10 units of the person, make the ambluances immediately turn around and move away from the person. Note, do this by adding a turnAway() method to the Ambulance clas and calling the method from inside the Person class where the List processing is done.