35 if (row >= m_rowCount)
return 0;
36 if (column >= m_columnCount)
return 0;
37 return m_tiles[(row * m_columnCount) + column];
49 m_tiles.resize(rowCount * columnCount, 0);
55 size_t tilesSize = tiles.size();
56 for (
size_t i = 0; i < tilesSize; ++i)
58 const Tile& tile = tiles[i];
59 size_t index = (tile.
row() * m_columnCount) + tile.
column();
60 m_tiles[index] = &tile;