Home
last modified time | relevance | path

Searched refs:targetVoxel (Results 1 – 7 of 7) sorted by relevance

/dports/games/openxcom/OpenXcom-1.0/src/Battlescape/
H A DProjectile.cpp52 …, Position origin, Position targetVoxel) : _res(res), _save(save), _action(action), _origin(origin… in Projectile() argument
189 …Position targetVoxel = _action.target * Position(16,16,24) + Position(8,8, (2 + -targetTile->getTe… in calculateThrow() local
198 targetVoxel.z += ((tu->getHeight()/2) + tu->getFloatHeight()) - 2; in calculateThrow()
204 if (_save->getTileEngine()->validateThrow(_action, originVoxel, targetVoxel, &curvature, &retVal)) in calculateThrow()
210 Position deltas = targetVoxel; in calculateThrow()
213 deltas -= targetVoxel; in calculateThrow()
215 …test = _save->getTileEngine()->calculateParabola(originVoxel, targetVoxel, true, &_trajectory, _ac… in calculateThrow()
H A DTileEngine.cpp477 Position relPos = targetVoxel - *originVoxel; in checkVoxelExposure()
503 scanVoxel.x=targetVoxel.x + sliceTargets[j*2]; in checkVoxelExposure()
504 scanVoxel.y=targetVoxel.y + sliceTargets[j*2+1]; in checkVoxelExposure()
562 Position relPos = targetVoxel - *originVoxel; in canTargetUnit()
591 scanVoxel->x=targetVoxel.x + sliceTargets[j*2]; in canTargetUnit()
687 …if (voxelCheck(Position(targetVoxel.x + tX, targetVoxel.y + tY, targetVoxel.z + j*2),0,true) == pa… in canTargetTile()
711 …if (voxelCheck(Position(targetVoxel.x + tX, targetVoxel.y + tY, targetVoxel.z + j*2),0,true) == pa… in canTargetTile()
735 scanVoxel->x = targetVoxel.x + spiralArray[i*2]; in canTargetTile()
842 Position targetVoxel; in getSpottingUnits() local
2629 Position targetVoxel; in validMeleeRange() local
[all …]
H A DCivilianBAIState.cpp259 Position targetVoxel; in getSpottingUnits() local
262 …if (_save->getTileEngine()->canTargetUnit(&originVoxel, _save->getTile(pos), &targetVoxel, *i, _un… in getSpottingUnits()
269 if (_save->getTileEngine()->canTargetUnit(&originVoxel, _save->getTile(pos), &targetVoxel, *i)) in getSpottingUnits()
H A DTileEngine.h124 …bool validateThrow(BattleAction &action, Position originVoxel, Position targetVoxel, double *curve…
H A DAlienBAIState.cpp987 Position targetVoxel; in getSpottingUnits() local
990 …if (_save->getTileEngine()->canTargetUnit(&originVoxel, _save->getTile(pos), &targetVoxel, *i, _un… in getSpottingUnits()
997 if (_save->getTileEngine()->canTargetUnit(&originVoxel, _save->getTile(pos), &targetVoxel, *i)) in getSpottingUnits()
1781 …Position targetVoxel = action.target * Position (16,16,24) + Position (8,8, (2 + -_save->getTile(a… in grenadeAction() local
1783 if (_save->getTileEngine()->validateThrow(action, originVoxel, targetVoxel)) in grenadeAction()
H A DBattlescapeState.cpp1696 Position targetVoxel,hitPos; in saveVoxelView() local
1708 targetVoxel.x=originVoxel.x + (int)(-sin(ang_x)*1024*sin(ang_y)); in saveVoxelView()
1709 targetVoxel.y=originVoxel.y + (int)(cos(ang_x)*1024*sin(ang_y)); in saveVoxelView()
1710 targetVoxel.z=originVoxel.z + (int)(cos(ang_y)*1024); in saveVoxelView()
1713 …test = _save->getTileEngine()->calculateLine(originVoxel, targetVoxel, false, &_trajectory, bu, tr… in saveVoxelView()
/dports/misc/openvdb/openvdb-9.0.0/openvdb/openvdb/points/
H A DPointMove.h234 Coord targetVoxel = Coord::round(positionIS); in operator() local
235 Index targetOffset = LeafT::coordToOffset(targetVoxel); in operator()
239 Vec3d voxelPosition(positionIS - targetVoxel.asVec3d()); in operator()
244 Coord targetLeafOrigin = targetVoxel & ~(LeafT::DIM - 1); in operator()