CollisionEvent event = new CollisionEvent(b1, b2, speed, (Point2D.Double)b2.getLocation());
collisionEvents.add(event);
}
protected void processCollisionEvents() {
CollisionEvent event;
while ( !collisionEvents.isEmpty() ) {
event = collisionEvents.remove();
for ( CollisionListener listener : listeners )
listener.collisionOccurred(event);
}