Home
last modified time | relevance | path

Searched refs:ngbs (Results 1 – 2 of 2) sorted by relevance

/dports/games/spring/spring_98.0/rts/Sim/Path/Default/
H A DPathFlowMap.cpp202 FlowCell* ngbs[3] = {NULL, NULL, NULL}; in AddFlow() local
204 …if (halfSpaces[0]) { i = ((z ) * xsize + (x - 1)); bIndices.insert(i); ngbs[0] = &bCells[i];… in AddFlow()
205 …if (halfSpaces[1]) { i = ((z ) * xsize + (x + 1)); bIndices.insert(i); ngbs[0] = &bCells[i];… in AddFlow()
206 …if (halfSpaces[2]) { i = ((z - 1) * xsize + (x )); bIndices.insert(i); ngbs[1] = &bCells[i];… in AddFlow()
207 …if (halfSpaces[3]) { i = ((z + 1) * xsize + (x )); bIndices.insert(i); ngbs[1] = &bCells[i];… in AddFlow()
209 …& halfSpaces[2]) { i = ((z - 1) * xsize + (x - 1)); bIndices.insert(i); ngbs[2] = &bCells[i]; } in AddFlow()
210 …& halfSpaces[3]) { i = ((z + 1) * xsize + (x - 1)); bIndices.insert(i); ngbs[2] = &bCells[i]; } in AddFlow()
211 …& halfSpaces[2]) { i = ((z - 1) * xsize + (x + 1)); bIndices.insert(i); ngbs[2] = &bCells[i]; } in AddFlow()
214 …if (ngbs[0] != NULL) { ngbs[0]->flowVector += float3(flowVec.x, o->mass * o->moveDef->flowMod * 0… in AddFlow()
215 …if (ngbs[1] != NULL) { ngbs[1]->flowVector += float3(flowVec.x, o->mass * o->moveDef->flowMod * 0… in AddFlow()
[all …]
/dports/games/spring/spring_98.0/rts/Sim/Path/QTPFS/
H A DNode.cpp688 …gned int QTPFS::QTNode::GetNeighbors(const std::vector<INode*>& nodes, std::vector<INode*>& ngbs) { in GetNeighbors() argument
694 ngbs.clear(); in GetNeighbors()
695 ngbs.resize(neighbors.size()); in GetNeighbors()
697 std::copy(neighbors.begin(), neighbors.end(), ngbs.begin()); in GetNeighbors()