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.
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 addedpos
- position of the new cell