Lines Matching refs:cellNumber

221                           int cellNumber, // number of cell position to examine  in GetAdjacentCellState()  argument
239 if (cellNumber < x) { in GetAdjacentCellState()
243 if ((x * y) - cellNumber <= x) { in GetAdjacentCellState()
247 if (cellNumber % x == 0) { in GetAdjacentCellState()
251 if ((cellNumber + 1) % x == 0) { in GetAdjacentCellState()
261 return *(source + (((x * y) - x) + (cellNumber - 1))); in GetAdjacentCellState()
264 return *(source + (cellNumber - 1)); in GetAdjacentCellState()
266 return *((source + cellNumber) - (x + 1)); in GetAdjacentCellState()
270 return *(source + (((x * y) - x) + cellNumber)); in GetAdjacentCellState()
272 return *((source + cellNumber) - x); in GetAdjacentCellState()
279 return *(source + (((x * y) - x) + (cellNumber + 1))); in GetAdjacentCellState()
282 return *(source + ((cellNumber - (x * 2)) + 1)); in GetAdjacentCellState()
284 return *(source + (cellNumber - (x - 1))); in GetAdjacentCellState()
288 return *(source + (cellNumber - (x - 1))); in GetAdjacentCellState()
290 return *(source + (cellNumber + 1)); in GetAdjacentCellState()
297 return *(source + ((cellNumber - ((x * y) - x)) + 1)); in GetAdjacentCellState()
300 return *(source + (cellNumber + 1)); in GetAdjacentCellState()
302 return *(source + (((cellNumber + x)) + 1)); in GetAdjacentCellState()
306 return *(source + (cellNumber - ((x * y) - x))); in GetAdjacentCellState()
308 return *(source + (cellNumber + x)); in GetAdjacentCellState()
315 return *(source + (cellNumber - ((x * y) - x) - 1)); in GetAdjacentCellState()
318 return *(source + (cellNumber + ((x * 2) - 1))); in GetAdjacentCellState()
320 return *(source + (cellNumber + (x - 1))); in GetAdjacentCellState()
324 return *(source + (cellNumber + (x - 1))); in GetAdjacentCellState()
326 return *(source + (cellNumber - 1)); in GetAdjacentCellState()
331 char CheckCell(Matrix* m_matrix, int cellNumber) { in CheckCell() argument
336 total += GetAdjacentCellState(source, m_matrix->width, m_matrix->height, cellNumber, i); in CheckCell()
347 if (*(source + cellNumber)) { in CheckCell()