@@ -0,0 +1,1450 @@
+// Bruce Maxwell%0A// CS 231 Fall 2012%0A// Project 7%0A// *Utilizes Bruce Maxwell's Cell class from the Elevator Simulation project.%0A%0Aimport java.awt.Graphics;%0Aimport java.util.*;%0A%0A/*%0A%09A parent class for Cell objects%0A%0A%09This class has location functionality%0A%0A%09This is an abstract class, because two methods are abstract.%0A%0A%09updateState( Landscape scape ): updates the Cell's state%0A%0A%09draw( Graphics g, int x, int y, int scale ): draw the Cell into the window%0A%0A */%0Apublic abstract class Cell %7B%0A    // location is a global property of all Cell subclasses%0A    double x;%0A    double y;%0A%0A    public Cell(double x0, double y0) %7B%0A        x = x0;%0A        y = y0;%0A        //System.out.println( this.getClass().getName() + %22 made at %22 + x + %22, %22 + y );%0A    %7D%0A%0A    public void setPosition(double tx, double ty) %7B%0A        x = tx;%0A        y = ty;%0A        //System.out.println( this.getClass().getName() + %22 position set to %22 + x + %22, %22 + y );%0A    %7D%0A%0A    public double getX() %7B%0A        return(x);%0A    %7D%0A%0A    public int getCol() %7B%0A        return( (int)(x + 0.5) );%0A    %7D%0A%0A    public double getY() %7B%0A        return(y);%0A    %7D%0A%0A    public int getRow() %7B%0A        return( (int)(y + 0.5) );%0A    %7D%0A%0A    // default parent function returns a period%0A    public String toString() %7B%0A        return( %22.%22 );%0A    %7D%0A%0A    // abstract method%0A    public abstract void updateState(Landscape scape);%0A%0A    // abstract method%0A    public abstract void draw(Graphics g, int x, int y, int scale);%0A%0A%7D%0A

Create Cell.java