// Ripples.java 

import javax.swing.*;
import java.awt.event.*; 
import java.util.*; 
import java.awt.*;

public class Ripples implements World {
  ArrayList<Circle> circles = new ArrayList<Circle>(); 
  public void teh() {
    for (Circle c : this.circles) 
      c.fall(); // used to be c.enlarge(); 
  }
  public void draw(Graphics g) {
    for (Circle c : this.circles) 
      c.draw(g); 
  }
  public void meh(MouseEvent e) { 
    int x = e.getX(), y = e.getY(); 
    this.circles.add( new Circle( x, y, 20, Color.RED ) ); // used to be 1, I need larger circles now 
  } 
  public void keh(KeyEvent e) { }
  public static void main(String[] args) {
     BigBang b = new BigBang( new Ripples() ); 
     b.start(30, 400); 
     
  }
  public boolean hasEnded() {
    return false; // never!! 
  }
}