public int indexOf(Figure figure) {
   return children.indexOf(figure);
 }
Beispiel #2
0
 /* space ship has died from some sort of collision */
 public void kill(ArrayList movingObjects) {
   int index = movingObjects.indexOf(this);
   movingObjects.remove(index);
 }