MCPcopy Create free account
hub / github.com/SimHacker/micropolis / GetCell

Method GetCell

MicropolisCore/src/CellEngine/src/cellengine.cpp:1532–1548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1530
1531
1532Byte CellEngine::GetCell(
1533 int col,
1534 int row)
1535{
1536 if ((col < 0) ||
1537 (col >= width) ||
1538 (row < 0) ||
1539 (row >= height) ||
1540 (frontMem == NULL)) {
1541 return 0;
1542 }
1543
1544 Byte cell =
1545 frontMem[col + (row * screenRowBytes)];
1546
1547 return cell;
1548}
1549
1550
1551void CellEngine::SetCell(

Callers 1

drawCursorMethod · 0.45

Calls

no outgoing calls

Tested by 1

drawCursorMethod · 0.36