uk.ac.nott.cs.g54dia.library
Interface CellFactory

All Known Implementing Classes:
DefaultCellFactory

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

generateCell

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.

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