Interface CellFactory

All Known Implementing Classes:

public interface CellFactory

Interface allowing the generation of new cells when the environment is resized.

Method Summary
 void generateCell(Environment env, Point pos)
          Generate a grid of cells for the environment.

Method Detail


void generateCell(Environment env,
                  Point pos)
Generate a grid of cells for the environment. The grid should extend from the point given (x,y) to (x+size,y+size). The method Environment.createCell(Point,Cell) should be invoked to create the cells.

env - environment to which the cell is to be added
pos - position of the new cell