public bool TypeUpdated(CellType newType) { if (cellData.Type != newType) { cellData.UpdateType(newType); cellColor = gridWindow.GetColorFromType(newType); return(true); } return(false); }
public Cell(int x, int y, CellType type, GridWindow window) { cellData = new CellData(x, y, type); gridWindow = window; cellColor = gridWindow.GetColorFromType(type); }