/** Hides all the sprites contained in the composite. */
 public void hide() {
   for (S sprite : sprites) {
     sprite.setHidden(true);
   }
 }
 /** Shows all of the sprites contained in the composite. */
 public void show() {
   for (S sprite : sprites) {
     sprite.setHidden(false);
   }
 }