Home
last modified time | relevance | path

Searched refs:nDist (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/dports/games/NBlood/NBlood-a1689a4/source/blood/src/
H A Daitchern.cpp110 int nDist = approxDist(x2-x, y2-y); in sub_71BD4() local
111 if (nDist == 0 || nDist > 0x2800) in sub_71BD4()
188 int nDist = approxDist(x2-x, y2-y); in sub_720AC() local
189 if (nDist == 0 || nDist > 0x2800) in sub_720AC()
272 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in sub_725A4()
307 int nDist = approxDist(dx, dy); in sub_72850() local
347 int nDist = approxDist(dx, dy); in sub_72934() local
348 if (nDist <= pDudeInfo->seeDist) in sub_72934()
357 if (nDist < 0x1f00 && nDist > 0xd00 && klabs(nDeltaAngle) < 85) in sub_72934()
359 else if (nDist < 0xd00 && nDist > 0xb00 && klabs(nDeltaAngle) < 85) in sub_72934()
[all …]
H A Dgameutil.cpp204 if (x <= x1 - nDist || x >= x2 + nDist) in CheckProximityWall()
211 if (x <= x2 - nDist || x >= x1 + nDist) in CheckProximityWall()
231 return dist1 < nDist * nDist; in CheckProximityWall()
235 return dist2 < nDist * nDist; in CheckProximityWall()
246 return dist2 < nDist * nDist; in CheckProximityWall()
250 return dist1 < nDist * nDist; in CheckProximityWall()
258 if (y <= y1 - nDist || y >= y2 + nDist) in CheckProximityWall()
265 if (y <= y2 - nDist || y >= y1 + nDist) in CheckProximityWall()
317 return px * px + py * py < nDist * nDist; in CheckProximityWall()
324 return px * px + py * py < nDist * nDist; in CheckProximityWall()
[all …]
H A Daicerber.cpp126 int nDist = approxDist(x2-x, y2-y); in BurnSeqCallback() local
127 if (nDist == 0 || nDist > 0x2800) in BurnSeqCallback()
139 int tsr = mulscale(9460, nDist, 10); in BurnSeqCallback()
210 int nDist = approxDist(x2-x, y2-y); in BurnSeqCallback2() local
211 if (nDist == 0 || nDist > 0x2800) in BurnSeqCallback2()
306 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
341 int nDist = approxDist(dx, dy); in thinkGoto() local
414 int nDist = approxDist(dx, dy); in thinkChase() local
415 if (nDist <= pDudeInfo->seeDist) in thinkChase()
424 if (nDist < 0x1b00 && nDist > 0xd00 && klabs(nDeltaAngle) < 85) { in thinkChase()
[all …]
H A Daighost.cpp143 if (nDist == 0 || nDist > 0x2800) in BlastSeqCallback()
240 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
280 int nDist = approxDist(dx, dy); in thinkGoto() local
378 int nDist = approxDist(dx, dy); in thinkChase() local
379 if (nDist <= pDudeInfo->seeDist) in thinkChase()
395 if (nDist < 0x2000 && nDist > 0x1000 && klabs(nDeltaAngle) < 85) { in thinkChase()
477 int nDist = approxDist(dx, dy); in MoveForward() local
515 int nDist = approxDist(dx, dy); in MoveSlow() local
516 if (Chance(0x600) && nDist <= 0x400) in MoveSlow()
556 int nDist = approxDist(dx, dy); in MoveSwoop() local
[all …]
H A Daigarg.cpp160 if (nDist == 0 || nDist > 0x2800) in BlastSSeqCallback()
266 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
307 int nDist = approxDist(dx, dy); in thinkGoto() local
405 int nDist = approxDist(dx, dy); in thinkChase() local
406 if (nDist <= pDudeInfo->seeDist) in thinkChase()
422 if (nDist < 0x1800 && nDist > 0xc00 && klabs(nDeltaAngle) < 85) in thinkChase()
481 if (nDist < 0x1800 && nDist > 0xc00 && klabs(nDeltaAngle) < 85) in thinkChase()
586 int nDist = approxDist(dx, dy); in MoveForward() local
624 int nDist = approxDist(dx, dy); in MoveSlow() local
668 int nDist = approxDist(dx, dy); in MoveSwoop() local
[all …]
H A Daibat.cpp119 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
154 int nDist = approxDist(dx, dy); in thinkGoto() local
181 int nDist = approxDist(dx, dy); in thinkPonder() local
182 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
192 … if (height2-height < 0x3000 && nDist < 0x1800 && nDist > 0xc00 && klabs(nDeltaAngle) < 85) in thinkPonder()
194 … else if (height2-height > 0x5000 && nDist < 0x1800 && nDist > 0xc00 && klabs(nDeltaAngle) < 85) in thinkPonder()
290 int nDist = approxDist(dx, dy); in thinkChase() local
291 if (nDist <= pDudeInfo->seeDist) in thinkChase()
341 int nDist = approxDist(dx, dy); in MoveForward() local
375 int nDist = approxDist(dx, dy); in MoveSwoop() local
[all …]
H A Daiboneel.cpp132 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in thinkTarget()
169 int nDist = approxDist(dx, dy); in thinkGoto() local
196 int nDist = approxDist(dx, dy); in thinkPonder() local
197 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
207 … if (height2-height < -0x2000 && nDist < 0x1800 && nDist > 0xc00 && klabs(nDeltaAngle) < 85) in thinkPonder()
305 int nDist = approxDist(dx, dy); in thinkChase() local
306 if (nDist <= pDudeInfo->seeDist) in thinkChase()
352 int nDist = approxDist(dx, dy); in MoveForward() local
353 if (nDist <= 0x399) in MoveForward()
383 int nDist = approxDist(dx, dy); in MoveSwoop() local
[all …]
H A Daispid.cpp175 int nDist = approxDist(dx, dy); in sub_71370() local
180 if (nDist < 0x1a00 && nDist > 0x1400 && klabs(pSprite->ang-nAngle) < pDudeInfo->periphery) in sub_71370()
182 … else if (nDist < 0x1400 && nDist > 0xc00 && klabs(pSprite->ang-nAngle) < pDudeInfo->periphery) in sub_71370()
209 int nDist = approxDist(dx, dy); in thinkGoto() local
211 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
241 int nDist = approxDist(dx, dy); in thinkChase() local
242 if (nDist <= pDudeInfo->seeDist) { in thinkChase()
251 if (nDist < 0x399 && klabs(nDeltaAngle) < 85) in thinkChase()
256 if (nDist < 0x733 && nDist > 0x399 && klabs(nDeltaAngle) < 85) in thinkChase()
258 else if (nDist < 0x399 && klabs(nDeltaAngle) < 85) in thinkChase()
[all …]
H A Dgameutil.h70 bool CheckProximity(spritetype *pSprite, int nX, int nY, int nZ, int nSector, int nDist);
71 bool CheckProximityPoint(int nX1, int nY1, int nZ1, int nX2, int nY2, int nZ2, int nDist);
72 bool CheckProximityWall(int nWall, int x, int y, int nDist);
78 void GetZRange(spritetype *pSprite, int *ceilZ, int *ceilHit, int *floorZ, int *floorHit, int nDist
79 …z, int nSector, int *ceilZ, int *ceilHit, int *floorZ, int *floorHit, int nDist, unsigned int nMas…
82 int GetClosestSectors(int nSector, int x, int y, int nDist, short *pSectors, char *pSectBit);
83 int GetClosestSpriteSectors(int nSector, int x, int y, int nDist, short *pSectors, char *pSectBit, …
H A Daipod.cpp111 int nDist = approxDist(x, y); in sub_6FFA0() local
112 int nDist2 = nDist / 540; in sub_6FFA0()
118 if (pDudeInfo->seeDist*0.1 < nDist) in sub_6FFA0()
131 if (pDudeInfo->seeDist*0.1 < nDist) in sub_6FFA0()
150 int nDist, nBurn; in sub_70284() local
157 nDist = 50; in sub_70284()
162 nDist = 75; in sub_70284()
186 int nDist = approxDist(dx, dy); in sub_70380() local
188 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) { in sub_70380()
248 int nDist = approxDist(dx, dy); in sub_704D8() local
[all …]
H A Daizomba.cpp85 int UNUSED(nDist) = approxDist(tx, ty); in HackSeqCallback()
116 int nDist = approxDist(dx, dy); in thinkGoto() local
148 int nDist = approxDist(dx, dy); in thinkChase() local
149 if (nDist <= pDudeInfo->seeDist) in thinkChase()
158 if (nDist < 0x400 && klabs(nDeltaAngle) < 85) in thinkChase()
194 int nDist = approxDist(dx, dy); in thinkPonder() local
195 if (nDist <= pDudeInfo->seeDist) in thinkPonder()
204 if (nDist < 0x400) in thinkPonder()
236 int nDist = approxDist(dx, dy); in myThinkTarget() local
237 if (nDist > pDudeInfo->seeDist && nDist > pDudeInfo->hearDist) in myThinkTarget()
[all …]
H A Daihound.cpp118 int nDist = approxDist(dx, dy); in thinkGoto() local
120 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
158 int nDist = approxDist(dx, dy); in thinkChase() local
159 if (nDist <= pDudeInfo->seeDist) in thinkChase()
165 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
168 if (nDist < 0xb00 && nDist > 0x500 && klabs(nDeltaAngle) < 85) in thinkChase()
170 else if(nDist < 0x266 && klabs(nDeltaAngle) < 85) in thinkChase()
H A Daigilbst.cpp107 int nDist = approxDist(dx, dy); in thinkGoto() local
171 int nDist = approxDist(dx, dy); in thinkChase() local
172 if (nDist <= pDudeInfo->seeDist) in thinkChase()
250 int nDist = approxDist(dx, dy); in thinkSwimGoto() local
282 int nDist = approxDist(dx, dy); in thinkSwimChase() local
283 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
328 int nDist = approxDist(dx, dy); in sub_6CB00() local
366 int nDist = approxDist(dx, dy); in sub_6CD74() local
367 if (Chance(0x600) && nDist <= 0x400) in sub_6CD74()
402 int nDist = approxDist(dx, dy); in sub_6D03C() local
[all …]
H A Daicaleb.cpp116 int nDist = approxDist(dx, dy); in thinkGoto() local
183 int nDist = approxDist(dx, dy); in thinkChase() local
184 if (nDist <= pDudeInfo->seeDist) in thinkChase()
263 int nDist = approxDist(dx, dy); in thinkSwimGoto() local
295 int nDist = approxDist(dx, dy); in thinkSwimChase() local
296 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
336 int nDist = approxDist(dx, dy); in sub_65D04() local
374 int nDist = approxDist(dx, dy); in sub_65F44() local
375 if (Chance(0x600) && nDist <= 0x400) in sub_65F44()
410 int nDist = approxDist(dx, dy); in sub_661E0() local
[all …]
H A Daizombf.cpp95 int UNUSED(nDist) = approxDist(tx, ty); in PukeSeqCallback()
124 int nDist = approxDist(dx, dy); in thinkGoto() local
126 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
156 int nDist = approxDist(dx, dy); in thinkChase() local
157 if (nDist <= pDudeInfo->seeDist) in thinkChase()
166 if (nDist < 0x1400 && nDist > 0xe00 && klabs(nDeltaAngle) < 85) in thinkChase()
185 else if (nDist < 0x1400 && nDist > 0x600 && klabs(nDeltaAngle) < 85) in thinkChase()
204 else if (nDist < 0x400 && klabs(nDeltaAngle) < 85) in thinkChase()
H A Daibeast.cpp215 int nDist = approxDist(dx, dy); in thinkGoto() local
279 int nDist = approxDist(dx, dy); in thinkChase() local
280 if (nDist <= pDudeInfo->seeDist) in thinkChase()
291 if (nDist < 0x1400 && nDist > 0xa00 && klabs(nDeltaAngle) < 85 && (pTarget->flags&2) in thinkChase()
396 int nDist = approxDist(dx, dy); in thinkSwimGoto() local
428 int nDist = approxDist(dx, dy); in thinkSwimChase() local
429 if (nDist <= pDudeInfo->seeDist) in thinkSwimChase()
471 int nDist = approxDist(dx, dy); in MoveForward() local
494 int nDist = approxDist(dx, dy); in sub_628A0() local
532 int nDist = approxDist(dx, dy); in sub_62AE0() local
[all …]
H A Daicult.cpp171 int nDist = approxDist(dx, dy); in ThrowSeqCallback() local
172 int nDist2 = nDist / 540; in ThrowSeqCallback()
173 if (nDist > 0x1e00) in ThrowSeqCallback()
210 int nDist = approxDist(dx, dy); in sub_68230() local
211 int nDist2 = nDist / 540; in sub_68230()
239 int nDist = approxDist(dx, dy); in thinkGoto() local
313 int nDist = approxDist(dx, dy); in thinkChase() local
395 if (nDist < 0x2c00 && nDist > 0x1400 && !TargetNearExplosion(pTarget) in thinkChase()
463 if (nDist < 0x1e00 && nDist > 0xe00 && !TargetNearExplosion(pTarget) in thinkChase()
531 if (nDist < 0x2c00 && nDist > 0x1400 && klabs(nDeltaAngle) < 85 in thinkChase()
[all …]
H A Daiinnoc.cpp66 int nDist = approxDist(dx, dy); in thinkGoto() local
68 if (nDist < 512 && klabs(pSprite->ang - nAngle) < pDudeInfo->periphery) in thinkGoto()
98 int nDist = approxDist(dx, dy); in thinkChase() local
99 if (nDist <= pDudeInfo->seeDist) in thinkChase()
105 if (nDist < pDudeInfo->seeDist && klabs(nDeltaAngle) <= pDudeInfo->periphery) in thinkChase()
108 if (nDist < 0x666 && klabs(nDeltaAngle) < 85) in thinkChase()
/dports/editors/libreoffice/libreoffice-7.2.6.2/vcl/source/outdev/
H A Dhatch.cxx230 rInc = Size( 0, nDist ); in CalcHatchValues()
238 nOffset = ( nDist - ( ( aRef.Y() - rRect.Top() ) % nDist ) ); in CalcHatchValues()
245 rInc = Size( nDist, 0 ); in CalcHatchValues()
253 nOffset = nDist - ( ( aRef.X() - rRect.Left() ) % nDist ); in CalcHatchValues()
265 nDist = FRound( nDist / cos( fAngle ) ); in CalcHatchValues()
266 rInc = Size( 0, nDist ); in CalcHatchValues()
284 nOffset = ( rPt1.Y() - nPY ) % nDist; in CalcHatchValues()
286 nOffset = nDist - ( ( nPY - rPt1.Y() ) % nDist ); in CalcHatchValues()
298 nDist = FRound( nDist / sin( fAngle ) ); in CalcHatchValues()
299 rInc = Size( nDist, 0 ); in CalcHatchValues()
[all …]
/dports/editors/libreoffice6/libreoffice-6.4.7.2/vcl/source/outdev/
H A Dhatch.cxx228 rInc = Size( 0, nDist ); in CalcHatchValues()
236 nOffset = ( nDist - ( ( aRef.Y() - rRect.Top() ) % nDist ) ); in CalcHatchValues()
243 rInc = Size( nDist, 0 ); in CalcHatchValues()
249 nOffset = ( rRect.Left() - aRef.X() ) % nDist; in CalcHatchValues()
251 nOffset = nDist - ( ( aRef.X() - rRect.Left() ) % nDist ); in CalcHatchValues()
263 rInc = Size( 0, nDist = FRound( nDist / cos( fAngle ) ) ); in CalcHatchValues()
281 nOffset = ( rPt1.Y() - nPY ) % nDist; in CalcHatchValues()
283 nOffset = nDist - ( ( nPY - rPt1.Y() ) % nDist ); in CalcHatchValues()
295 rInc = Size( nDist = FRound( nDist / sin( fAngle ) ), 0 ); in CalcHatchValues()
313 nOffset = ( rPt1.X() - nPX ) % nDist; in CalcHatchValues()
[all …]
/dports/editors/libreoffice6/libreoffice-6.4.7.2/include/svx/
H A Dsdsxyitm.hxx25 inline SdrMetricItem makeSdrShadowXDistItem(long nDist) { in makeSdrShadowXDistItem() argument
26 return SdrMetricItem(SDRATTR_SHADOWXDIST, nDist); in makeSdrShadowXDistItem()
29 inline SdrMetricItem makeSdrShadowYDistItem(long nDist) { in makeSdrShadowYDistItem() argument
30 return SdrMetricItem(SDRATTR_SHADOWYDIST, nDist); in makeSdrShadowYDistItem()
/dports/editors/libreoffice/libreoffice-7.2.6.2/include/svx/
H A Dsdsxyitm.hxx25 inline SdrMetricItem makeSdrShadowXDistItem(tools::Long nDist) in makeSdrShadowXDistItem() argument
27 return SdrMetricItem(SDRATTR_SHADOWXDIST, nDist); in makeSdrShadowXDistItem()
30 inline SdrMetricItem makeSdrShadowYDistItem(tools::Long nDist) in makeSdrShadowYDistItem() argument
32 return SdrMetricItem(SDRATTR_SHADOWYDIST, nDist); in makeSdrShadowYDistItem()
/dports/games/NBlood/NBlood-a1689a4/source/rr/src/
H A Dgameexec.h31 …t(int const nEventID, int const spriteNum, int const playerNum, int const nDist, int32_t const nRe…
32 …2_t VM_ExecuteEvent(int const nEventID, int const spriteNum, int const playerNum, int const nDist);
41 static FORCE_INLINE int32_t VM_OnEvent(int nEventID, int spriteNum, int playerNum, int nDist, int32… in VM_OnEvent() argument
43 …return VM_HaveEvent(nEventID) ? VM_ExecuteEvent(nEventID, spriteNum, playerNum, nDist, nReturn) : … in VM_OnEvent()
46 static FORCE_INLINE int32_t VM_OnEvent(int nEventID, int spriteNum, int playerNum, int nDist) in VM_OnEvent() argument
48 return VM_HaveEvent(nEventID) ? VM_ExecuteEvent(nEventID, spriteNum, playerNum, nDist) : 0; in VM_OnEvent()
/dports/games/libretro-play/Play--3cd0a367b5e24c061a6310c68c9fa7f6b531ebd4/deps/Framework/src/bitmap/
H A DPNG.cpp111 int nDist = (nBPP / 8); in SubFilter() local
116 if((i - nDist) < 0) in SubFilter()
122 nPredictor = pRaw[i - nDist]; in SubFilter()
147 int nDist = (nBPP / 8); in AverageFilter() local
162 if((i - nDist) < 0) in AverageFilter()
168 nLeft = pRaw[i - nDist]; in AverageFilter()
190 int nDist = (nBPP / 8); in PaethFilter() local
196 if((i - nDist) < 0) in PaethFilter()
203 nLeft = pRaw[i - nDist]; in PaethFilter()
210 nUpperLeft = pRaw[(i - nDist) - nPitch]; in PaethFilter()
/dports/cad/abc/abc-a4518e6f833885c905964f1233d11e5b941ec24c/src/aig/saig/
H A DsaigWnd.c50 if ( nDist == 0 ) in Saig_ManWindowOutline_rec()
52 if ( pDists[pObj->Id] >= nDist ) in Saig_ManWindowOutline_rec()
54 pDists[pObj->Id] = nDist; in Saig_ManWindowOutline_rec()
65 Saig_ManWindowOutline_rec( p, pMatch, nDist, vNodes, pDists ); in Saig_ManWindowOutline_rec()
108 Saig_ManWindowOutline_rec( p, pObj, nDist, vNodes, pDists ); in Saig_ManWindowOutline()
470 vNodes = Saig_ManWindowOutline( p, pObj, nDist ); in Saig_ManWindowExtract()
494 vNodes = Saig_ManWindowOutline( p, pObj, nDist ); in Saig_ManWindowInsert()
510 vNodes = Saig_ManWindowOutline( p, pObj, nDist ); in Saig_ManWindowInsert()
530 int nDist = 3; in Saig_ManWindowTest() local
535 pWnd = Saig_ManWindowExtract( p, pPivot, nDist ); in Saig_ManWindowTest()
[all …]

12345678910>>...16