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

public class SimApplet extends JApplet {
    private static final int FRAME_WIDTH = 520;
    private static final int FRAME_HEIGHT = 590;
    final static int GRID_ROWS = 50;
    final static int GRID_COLUMNS = 50;

    public SimApplet () {
	JRootPane pane = getRootPane ();
	//@assume pane != null
	pane.putClientProperty ("defaultSystemEventQueueCheck", Boolean.TRUE);
    }

    public void init() {
	Grid grid = new Grid (50, 50);
	Simulator ca = new Simulator (FRAME_HEIGHT, FRAME_WIDTH, grid);
	Container content = getContentPane ();

	// Add classes to the simulation.
	//ca.addClass ("UvaStudent");
	ca.addClass ("UvaGirl");
        ca.addClass ("UvaBoy");
        ca.addClass ("UvaPlayerGirl");
        ca.addClass ("UvaPlayerBoy");
        ca.addClass ("UvaKeg");
        ca.addClass ("HappyStudent");
        ca.addClass ("OutStudent");

	if (content != null) {
	    content.add (ca, BorderLayout.CENTER);
	} else {
	    System.err.println ("ERROR: No content pane");
	}
    }
}