/**
 * Environment Class
 * 
 * @author Daniel Davenport, Grant Hensel, Elliot Penson, and Simon Swenson
 * 
 * Models a cartesian-based coordinate plane for the actors to interact within.
 */
package universalsim;

public class Grid {
    
}

@@ -4,236 +4,2299 @@
 %0A * 
-Environment Class%0A * %0A * @author Daniel Davenport, Grant Hensel, Elliot Penson, and Simon Swenson%0A * %0A * Models a cartesian-based coordinate plane for the actors to interact within.%0A */%0Apackage universalsim;%0A%0Apublic class Grid %7B
+Grid.java%0A * %0A * Models a cartesian-based coordinate plane for the actors to interact within.%0A * %0A * @author Daniel Davenport, Grant Hensel, Elliot Penson, and Simon Swenson%0A * %0A * Wheaton College, CSCI 334, Spring 2013%0A */%0Apackage universalsim;%0A%0Apublic class Grid %7B%0A    %0A    /**%0A     * The grid of all slots containing all agents%0A     */%0A    Slot%5B%5D%5B%5D grid;%0A    %0A    /**%0A     * Creates a grid with the given width and height specifications%0A     */%0A    public Grid(int width, int height)%7B%0A        grid = new Slot%5Bwidth%5D%5Bheight%5D;%0A    %7D%0A    %0A    %0A    /**%0A     * Causes all agents in the grid to act()%0A     */%0A    private void updateAgents()%7B%0A        for(Slot%5B%5D sArr: grid)%0A            for(Slot s: sArr)%0A                s.getAgent().act();%0A    %7D%0A%0A     /**%0A     * Adds an agent to the slot at the given coordinates%0A     * Returns a boolean based on whether or not it was successful%0A     */%0A    private boolean addAgent(Agent a, int x, int y)%7B%0A        return grid%5Bx%5D%5By%5D.addAgent(a);%0A    %7D%0A    %0A    /**%0A     * Returns the agent in the slot at the given coordinates%0A     */%0A    private Agent getAgent(int x, int y)%7B%0A        return grid%5Bx%5D%5By%5D.getAgent();%0A    %7D%0A    %0A    /**%0A     * Removes an agent from the slot at the given coordinates%0A     * Returns a boolean based on whether or not it was successful%0A     */%0A    private boolean removeAgent(int x, int y)%7B%0A        return grid%5Bx%5D%5By%5D.removeAgent();%0A    %7D%0A    %0A    %0A    /**%0A     * Sets the temperature at the slot at the given coordinates%0A     * TODO: Have this changed temperature affect surrounding slot temperatures%0A     */%0A    private void setTemperature(int temp, int x, int y)%7B%0A        grid%5Bx%5D%5By%5D.setTemperature(temp);%0A    %7D%0A    %0A    /**%0A     * Returns the temperature of the slot at the given coordinates%0A     */%0A    private int getTemperature(int x, int y)%7B%0A        return grid%5Bx%5D%5By%5D.getTemperature();%0A    %7D%0A    %0A    /**%0A     * Sets the humidity at the slot at the given coordinates%0A     * TODO: Have this changed humidity affect surrounding slot humidities%0A     */%0A    private void setHumidity(int hum, int x, int y)%7B%0A        grid%5Bx%5D%5By%5D.setHumidity(hum);%0A    %7D%0A    %0A    /**%0A     * Returns the humidity of the slot at the given coordinates%0A     */%0A    private int getHumidity(int x, int y)%7B%0A        return grid%5Bx%5D%5By%5D.getHumidity();%0A    %7D%0A    
 %0A   

Update UniversalSim/src/universalsim/Grid.java