Home
last modified time | relevance | path

Searched refs:hitx (Results 1 – 25 of 114) sorted by relevance

12345

/dports/games/spellcast/spellcast/
H A Dxbutton.c98 int hitx, hity; local
101 hitx = py->button_lit % BBOX_W;
103 XDrawRectangle(py->dpy, py->win, py->whitegc, BBOX_X+hitx*BUTTON_W-1,
110 hitx = py->button_lit % BBOX_W;
216 int hitx, hity, bnum; local
219 hitx = (xpos-BBOX_X) / BUTTON_W;
222 if (hitx<0 || hity<0 || hitx>=BBOX_W || hity>=BBOX_H)
225 bnum = hitx + hity*BBOX_W;
255 int hitx, hity, bnum; local
259 hitx = (xpos-BBOX_X+BUTTON_W) / BUTTON_W - 1;
[all …]
H A Dxgest.c280 int hitx, hity, hit; local
286 hitx = (xpos - posx + GEST_SPACE) / GEST_SPACE - 1;
289 if (hitx>=0 && hitx<4 && hity>=0 && hity<2)
290 hit = hity*4 + hitx;
299 hitx = py->gesture_sel % 4;
301 XDrawRectangle(py->dpy, py->win, py->whitegc, posx+hitx*GEST_SPACE-1,
303 XDrawRectangle(py->dpy, py->win, py->whitegc, posx+hitx*GEST_SPACE-2,
311 hitx = py->gesture_sel % 4;
313 XDrawRectangle(py->dpy, py->win, py->blackgc, posx+hitx*GEST_SPACE-1,
315 XDrawRectangle(py->dpy, py->win, py->blackgc, posx+hitx*GEST_SPACE-2,
H A Dxquery.c682 int posx, posy, hitx, hity; local
687 hitx = (xpos - posx + GEST_SPACE) / GEST_SPACE - 1;
690 if (hitx>=0 && hitx<4 && hity>=0 && hity<2)
691 hitrow = hity*4 + hitx;
700 hitx = py->query_sel % 4;
702 XDrawRectangle(py->dpy, py->win, py->whitegc, posx+hitx*GEST_SPACE-1,
704 XDrawRectangle(py->dpy, py->win, py->whitegc, posx+hitx*GEST_SPACE-2,
712 hitx = py->query_sel % 4;
714 XDrawRectangle(py->dpy, py->win, py->blackgc, posx+hitx*GEST_SPACE-1,
716 XDrawRectangle(py->dpy, py->win, py->blackgc, posx+hitx*GEST_SPACE-2,
/dports/games/jfsw/jfsw-c434002/src/
H A Drooms.c166 hitx, hity, hitz, startclipmask); in FAFhitscan()
179 sx = *hitx; in FAFhitscan()
187 *hitx -= xvect>>9; in FAFhitscan()
191 if (Warp(hitx, hity, hitz, hitsect)) in FAFhitscan()
201 hitx, hity, hitz, startclipmask); in FAFhitscan()
225 if (Warp(hitx, hity, hitz, hitsect)) in FAFhitscan()
229 hitx, hity, hitz, clipmask); in FAFhitscan()
240 hitx, hity, hitz, clipmask); in FAFhitscan()
270 hitx, hity, hitz, clipmask); in FAFhitscan()
283 int hitx, hity, hitz; in FAFcansee() local
[all …]
H A Dweapon.h70 int QueueHole(short ang, short hitsect, short hitwall, int hitx, int hity, int hitz);
74 int SpawnSwordSparks(PLAYERp pp, short hitsect, short hitwall, int hitx, int hity, int hitz, short …
155 int SpawnShotgunSparks(PLAYERp pp, short hitsect, short hitwall, int hitx, int hity, int hitz, shor…
H A Dweapon.c4231 hitx = sp->x; in SpawnBlood()
4241 hitx = sp->x; in SpawnBlood()
4249 hitx = sp->x; in SpawnBlood()
4256 hitx = sp->x; in SpawnBlood()
4263 hitx = sp->x; in SpawnBlood()
7804 int hitx,hity,hitz; in TraverseBreakableWalls() local
15077 int hitx, hity, hitz; in ContinueHitscan() local
17898 sp->x = hitx; in SpawnWallHole()
20824 sp->x = hitx; in QueueHole()
21086 int hitx, hity, hitz; in QueueWallBlood() local
[all …]
/dports/games/zdoom/zdoom-2.8.1/src/
H A Dp_trace.cpp255 fixed_t hitx, hity, hitz; in TraceTraverse() local
282 hitx = StartX + FixedMul (Vx, dist); in TraceTraverse()
336 ff = CurSector->floorplane.ZatPoint (hitx, hity); in TraceTraverse()
337 fc = CurSector->ceilingplane.ZatPoint (hitx, hity); in TraceTraverse()
341 bf = entersector->floorplane.ZatPoint (hitx, hity); in TraceTraverse()
349 hitz <= hsec->floorplane.ZatPoint (hitx, hity)) in TraceTraverse()
483 Results->X = hitx; in TraceTraverse()
523 hitx = StartX + FixedMul (Vx, dist); in TraceTraverse()
537 hitx = StartX + FixedMul (Vx, dist); in TraceTraverse()
554 hitx = StartX + FixedMul (Vx, dist); in TraceTraverse()
[all …]
H A Db_func.cpp47 fixed_t hitx, hity; in Reachable() local
57 hitx = it.Trace().x + FixedMul (player->mo->velx, frac); in Reachable()
72 fixed_t ceilingheight = s->ceilingplane.ZatPoint (hitx, hity); in Reachable()
73 fixed_t floorheight = s->floorplane.ZatPoint (hitx, hity); in Reachable()
/dports/biology/emboss/EMBOSS-6.6.0/nucleus/
H A Dembsig.c4090 hitx->Acc, hitx->Spr, hitx->Dom, pos); in embHitlistClassify()
4184 hitx->Typeobj, in embHitlistClassify()
4185 hitx->Typesbj, in embHitlistClassify()
4186 hitx->Group); in embHitlistClassify()
4217 hitx, thresh)) in embHitlistClassify()
4302 hitx->Typeobj, in embHitlistClassify()
4303 hitx->Typesbj, in embHitlistClassify()
4304 hitx->Group); in embHitlistClassify()
4313 hitx->Typeobj, in embHitlistClassify()
4314 hitx->Typesbj, in embHitlistClassify()
[all …]
/dports/science/py-dipy/dipy-1.4.1/dipy/tracking/tests/
H A Dtest_distances.py308 hitx = pf.cut_plane(bundlex, refx)
309 assert_array_almost_equal(hitx[0], expected_hit0)
310 assert_array_almost_equal(hitx[1], expected_hit1)
313 hitx = pf.cut_plane(bundlex, refx)
314 assert_array_almost_equal(hitx[0], expected_hit0)
315 assert_array_almost_equal(hitx[1], expected_hit1)
317 hitx = pf.cut_plane(bundlex, refx)
318 assert_array_almost_equal(hitx[0], expected_hit0)
319 assert_array_almost_equal(hitx[1], expected_hit1)
/dports/games/luola/luola-1.3.2/src/
H A Dphysics.c124 int hitx,hity; in animate_object() local
149 ix,iy,&hitx,&hity); in animate_object()
165 putpixel(lev_level.terrain,hitx,hity,col_black); in animate_object()
166 lev_level.solid[hitx][hity] = TER_FREE; in animate_object()
167 add_decor(make_snowflake(hitx + sv.x,hity + sv.y, sv)); in animate_object()
169 putpixel(lev_level.terrain,hitx,hity,lev_watercol); in animate_object()
170 lev_level.solid[hitx][hity] = TER_WATER; in animate_object()
183 newx = hitx; in animate_object()
185 ix = hitx; in animate_object()
/dports/games/NBlood/NBlood-a1689a4/extras/rrsrc/
H A Dplayer1.c305 long sx, sy, sz, vel, zvel, hitx, hity, hitz, x, oldzvel, dal; in shoot() local
381 &hitsect,&hitwall,&hitspr,&hitx,&hity,&hitz,CLIPMASK1); in shoot()
419 if( FindDistance2D(sx-hitx,sy-hity) < 1024 ) in shoot()
450 sprite[k].x = hitx; in shoot()
465 if( ( klabs(sx-hitx)+klabs(sy-hity) ) < 1024 ) in shoot()
513 checkhitwall(j,hitwall,hitx,hity,hitz,atwith); in shoot()
521 sprite[j].x = hitx; in shoot()
631 tracers(hitx,hity,hitz,sx,sy,sz,8-(ud.multimode>>1)); in shoot()
756 checkhitwall(k,hitwall,hitx,hity,hitz,SHOTSPARK1); in shoot()
772 checkhitwall(k,hitwall,hitx,hity,hitz,SHOTSPARK1); in shoot()
[all …]
/dports/biology/seaview/seaview/
H A Dxfmatpt.cxx487 matpt->hitx = seqlong1/2; in init_mat_data()
529 sprintf(p, "%5d ", matpt->hitx); in compute_region_text()
670 matpt->hitx = FL_max(matpt->hitx - 5, 1); in handle()
674 matpt->hitx = FL_min(matpt->hitx + 5, matpt->seqlong1); in handle()
924 matpt->hitx = FL_max(matpt->hitx - 1, 1); in move_box_step()
927 matpt->hitx = FL_min(matpt->hitx + 1, matpt->seqlong1); in move_box_step()
930 matpt->hitx = FL_max(matpt->hitx - 1, 1); in move_box_step()
934 matpt->hitx = FL_min(matpt->hitx + 1, matpt->seqlong1); in move_box_step()
1080 if(matpt->hitx > matpt->hity) { in align_callback()
1087 matpt->hity = matpt->hitx; in align_callback()
[all …]
H A Dmatpt.h21 int hitx, hity; member
/dports/games/NBlood/NBlood-a1689a4/source/witchaven/src/
H A Dplayer.cpp1542 int32_t hitx, hity, hitz; in plruse() local
1571 hitx = hitinfo.pos.x; in plruse()
2684 sprite[j].x = hitx; in chunksofmeat()
2828 int32_t hitx = -1; in shootgun() local
2854 hitx = hitinfo.pos.x; in shootgun()
3562 hitx = hitinfo.pos.x; in shootgun()
3568 neartag(hitx, hity, hitz, hitsect, daang, in shootgun()
3576 sprite[j].x = hitx; in shootgun()
3604 sprite[j].x = hitx; in shootgun()
3780 hitx = hitinfo.pos.x; in shootgun()
[all …]
/dports/games/bloodfrontier/bloodfrontier/src/engine/
H A Dui.cpp28 static float hitx, hity; member
105 else if(tcurrent && hitx>=x1 && hity>=y1 && hitx<x2 && hity<y2) in tab()
124 if(hitx>=x && hity>=y && hitx<x+guibound[1] && hity<y+guibound[1]) \ in uibuttons()
224 if(shouldmergehits) return ishorizontal() ? hitx>=x && hitx<x+w : hity>=y && hity<y+h; in ishit()
227 return hitx>=x && hity>=y && hitx<x+w && hity<y+h; in ishit()
301 …else vnew = reverse ? int(vnew*(x+xsize-guibound[0]/2-hitx)/(xsize-w)) : int(vnew*(hitx-x-guibound… in slider()
368 …e->hit(int(floor(hitx-(curx+guibound[0]/2))), int(floor(hity-cury)), (mousebuttons&GUI_DRAGGED)!=0… in field_()
760 hitx = (cursorx - origin.x)/scale.x; in end()
762 …if((mousebuttons & GUI_PRESSED) && (fabs(hitx-firstx) > 2 || fabs(hity - firsty) > 2)) mousebutton… in end()
780 float gui::basescale, gui::maxscale = 1, gui::hitx, gui::hity; member in gui
[all …]
/dports/games/NBlood/NBlood-a1689a4/source/blood/src/
H A Dgameutil.cpp413 gHitInfo.hitx = hitData.pos.x; in HitScan()
466 gHitInfo.hitx = hitData.pos.x; in VectorScan()
519 x1 = gHitInfo.hitx; in VectorScan()
529 gHitInfo.hitx = hitData.pos.x; in VectorScan()
579 nHOffset = approxDist(gHitInfo.hitx - pWall->x, gHitInfo.hity - pWall->y); in VectorScan()
606 x1 = gHitInfo.hitx; in VectorScan()
616 gHitInfo.hitx = hitData.pos.x; in VectorScan()
636 x1 = gHitInfo.hitx + sprite[nLink].x - sprite[nSprite].x; in VectorScan()
645 gHitInfo.hitx = hitData.pos.x; in VectorScan()
659 x1 = gHitInfo.hitx + sprite[nLink].x - sprite[nSprite].x; in VectorScan()
[all …]
/dports/games/abuse_sdl/abuse-0.8/data/lisp/
H A Dweapons.lsp300 (defun guner_damage (amount from hitx hity push_xvel push_yvel) ; transfer damage to lower half
303 (add_object EXPLODE3 (+ hitx (random 5)) (+ hity (random 5)) 0)
304 (add_object EXPLODE2 (+ hitx (random 5)) (+ hity (random 5)) 2)
305 (add_object EXPLODE3 (- hitx (random 5)) (- hity (random 5)) 1)
306 (add_object EXPLODE3 (- hitx (random 5)) (- hity (random 5)) 2)
308 (damage_fun amount from hitx hity 0 0) ; don't allow pushing
313 (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 25)) 0)
314 (add_object EXPLODE1 (+ hitx (random 10)) (+ hity (random 25)) 1)
315 (add_object EXPLODE1 (- hitx (random 10)) (- hity (random 10)) 2)
316 (add_object EXPLODE1 (+ hitx (random 10)) (+ hity (random 10)) 3) ))))
/dports/games/abuse_sdl/abuse-0.8/data/addon/leon/lisp/
H A Dlnant.lsp258 (defun ant_Ndamage (amount from hitx hity push_xvel push_yvel) ; Some piece of really ugly looking…
270 (damage_fun amount from hitx hity push_xvel push_yvel)
327 (defun great_damage (amount from hitx hity push_xvel push_yvel)
332 (damage_fun amount from hitx hity push_xvel push_yvel)
403 (defun tough_damage (amount from hitx hity push_xvel push_yvel)
407 (damage_fun amount from hitx hity push_xvel push_yvel)
/dports/games/NBlood/NBlood-a1689a4/source/exhumed/src/
H A Dsnake.cpp140 int hitx, hity, hitz; in BuildSnake() local
148 hitx = hitData.pos.x; in BuildSnake()
154 uint32_t xDiff = klabs(hitx - x); in BuildSnake()
169 BackUpBullet(&hitx, &hity, nAngle); in BuildSnake()
171 sprite[nSprite].x = hitx; in BuildSnake()
/dports/games/fargoal/fargoal/src/
H A Dgame.c458 static int hitx[10], hity[10]; variable
474 hitx[i] = mx * tw + tw / 2; in add_hit()
496 DR_add (hitx[i] / tw - 1, (hity[i] - TOP) / th - 1, hitx[i] / tw + 1, (hity[i] - TOP) / th + 1); in _fly_hits()
513 …textprintf_centre (page, font, hitx[i], hity[i], hitv[i] < 0 ? makecol (255, 0, 0) : makecol (0, 2… in _draw_hits()
/dports/games/sauerbraten/sauerbraten/src/engine/
H A D3dgui.cpp58 static float hitx, hity; member
139 bool hit = tcurrent && windowhit==this && hitx>=x1 && hity>=y1 && hitx<x2 && hity<y2; in tab()
295 …if(shouldmergehits) return windowhit==this && (ishorizontal() ? hitx>=x && hitx<x+w : hity>=y && h… in ishit()
298 return windowhit==this && hitx>=x && hity>=y && hitx<x+w && hity<y+h; in ishit()
500 else vnew = int((vnew*(hitx-x-FONTH/2))/(xsize-w)); in slider()
1075 hitx = (cursorx - origin.x)/scale.x; in end()
1086 hitx = vec(-p.y, p.x, 0).dot(hitpos)/scale.x; in end()
1090 …if((mousebuttons & G3D_PRESSED) && (fabs(hitx-firstx) > 2 || fabs(hity - firsty) > 2)) mousebutton… in end()
1091 if(dist>=0 && hitx>=-xsize/2 && hitx<=xsize/2 && hity<=0) in end()
1156 float gui::basescale, gui::maxscale = 1, gui::hitx, gui::hity, gui::alpha; member in gui
[all …]
/dports/games/abuse_sdl/abuse-0.8/src/
H A Dcollide.cpp166 int32_t sx1,sy1,sx2,sy2,tx1,ty1,tx2,ty2,hitx=0,hity=0,t_centerx; in check_collisions() local
225 hitx=((x1+x2)/2+(xp1+xp2)/2)/2; in check_collisions()
236 rec->do_damage((int)subject->current_figure()->hit_damage,subject,hitx,hity,0,0); in check_collisions()
H A Dobjects.h84 …void do_damage(int amount, game_object *from, int32_t hitx, int32_t hity, int32_t push_xvel, int32…
85 …void damage_fun(int amount, game_object *from, int32_t hitx, int32_t hity, int32_t push_xvel, int3…
/dports/games/redeclipse16/base-1.6.0/src/engine/
H A Dui.cpp93 static float hitx, hity; member
214 …if(tcurrent && !passthrough && fieldmode != FIELDKEY && hitx>=x1 && hity>=y1 && hitx<x2 && hity<y2) in tab()
248 … if(!passthrough && fieldmode != FIELDKEY && hitx>=x1 && hity>=y1 && hitx<x2 && hity<y2) \ in uibuttons()
435 return hitx >= x && hity >= y && hitx < x+w && hity < y+h; in ishit()
614 …else vnew = int((vnew*(reverse ? x+xsize-guislidersize/2-hitx : hitx-x-guislidersize/2))/(xsize-gu… in slider()
697 …e->hit(int(floor(hitx-(curx+wpad/2))), int(floor(hity-(cury+hpad/2))), (mouseaction[0]&GUI_DRAGGED… in field_()
1225 hitx = (cursorx - uiorigin.x)/uiscale.x; in end()
1227 …if((mouseaction[0]&GUI_PRESSED) && (fabs(hitx-firstx) > 2 || fabs(hity - firsty) > 2)) mouseaction… in end()
1256 …int w = width+FONTW*2, h = FONTH/2+height, x1 = hitx, y1 = hity-height-FONTH/2, x2 = x1+w, y2 = y1… in end()
1283 float gui::basescale, gui::maxscale = 1, gui::hitx, gui::hity; member in gui
[all …]

12345