Lines Matching refs:CellPos
208 static std::vector<std::vector<CellPos>>
209 ClusterizeBlocks(const std::vector<CellPos> &blocks) { in ClusterizeBlocks()
210 std::unordered_map<CellPos, bool, CellPosHash> blockMap; in ClusterizeBlocks()
215 std::vector<std::vector<CellPos>> ret; in ClusterizeBlocks()
230 std::vector<CellPos> outBlocks; in ClusterizeBlocks()
245 nextIt = blockMap.find(CellPos(pos.x - 1, pos.y, pos.z)); in ClusterizeBlocks()
249 nextIt = blockMap.find(CellPos(pos.x + 1, pos.y, pos.z)); in ClusterizeBlocks()
253 nextIt = blockMap.find(CellPos(pos.x, pos.y - 1, pos.z)); in ClusterizeBlocks()
257 nextIt = blockMap.find(CellPos(pos.x, pos.y + 1, pos.z)); in ClusterizeBlocks()
261 nextIt = blockMap.find(CellPos(pos.x, pos.y, pos.z - 1)); in ClusterizeBlocks()
265 nextIt = blockMap.find(CellPos(pos.x, pos.y, pos.z + 1)); in ClusterizeBlocks()
294 std::vector<CellPos> cells; in ApplyBlockActions()
322 auto it = destroyedBlocks.find(CellPos(pos.x, pos.y, pos.z)); in CreateBlock()
326 createdBlocks[CellPos(pos.x, pos.y, pos.z)] = color; in CreateBlock()
329 std::vector<CellPos> cells; in DestroyBlock()
337 CellPos cellp(p.x, p.y, p.z); in DestroyBlock()