Home
last modified time | relevance | path

Searched refs:balls (Results 1 – 25 of 2347) sorted by relevance

12345678910>>...94

/dports/games/zaz/zaz-1.0.1/src/
H A Dballpath.cpp254 balls.erase(balls.begin()); in Logic()
400 if ((balls[b].pos - balls[b - 1].pos) < balls[b - 1].size) in Drive()
402 balls[b]. pos = balls[b - 1].pos + balls[b - 1].size; in Drive()
446 balls[b].pos = balls[b - 1].pos + stepsPerBall; in InsertBall()
449 balls.push_back(balls[balls.size() - 1]); in InsertBall()
452 balls[b] = balls[b - 1]; in InsertBall()
461 balls.push_back(balls[balls.size() - 1]); in InsertBall()
464 balls[b] = balls[b - 1]; in InsertBall()
483 balls.push_back(balls[balls.size() - 1]); in InsertBall()
559 if (balls[f].pos >= bs && balls[f].pos <= be) in Eliminate()
[all …]
/dports/games/xboing/xboing/
H A Dball.c566 balls[i].dx = balls[i].dy = 0;
1177 balls[i].ballx = balls[i].oldx + balls[i].dx;
1178 balls[i].bally = balls[i].oldy + balls[i].dy;
1187 balls[i].dx = abs(balls[i].dx);
1204 balls[i].dx = -(abs(balls[i].dx));
1221 balls[i].dy = abs(balls[i].dy);
1396 balls[i].dx = abs(balls[i].dx);
1406 balls[i].dy = abs(balls[i].dy);
1412 balls[i].dy = abs(balls[i].dy);
1782 balls[i].oldx = balls[i].ballx;
[all …]
/dports/games/foobillard/foobillard-3.0a/src/
H A Dbillard.c689 if( balls->ball != NULL ) billard_free( balls->ball ); in create_8ball_scene()
704 balls->ball[i].b[2]=vec_cross(balls->ball[i].b[0],balls->ball[i].b[1]); in create_8ball_scene()
748 …DPRINTF("BALLLDISR(%d,%d)=%f\n",balls->ball[i].nr,balls->ball[j].nr,vec_abs(vec_diff(balls->ball[i… in create_8ball_scene()
781 if( balls->ball != NULL ) billard_free( balls->ball ); in create_9ball_scene()
796 balls->ball[i].b[2]=vec_cross(balls->ball[i].b[0],balls->ball[i].b[1]); in create_9ball_scene()
812 balls->ball[ 5].r = vec_add( balls->ball[1].r, dball1 ); in create_9ball_scene()
813 balls->ball[ 6].r = vec_add( balls->ball[1].r, dball2 ); in create_9ball_scene()
857 if( balls->ball != NULL ) billard_free( balls->ball ); in create_carambol_scene()
876 balls->ball[i].b[2]=vec_cross(balls->ball[i].b[0],balls->ball[i].b[1]); in create_carambol_scene()
976 if( balls->ball != NULL ) billard_free( balls->ball ); in create_snooker_scene()
[all …]
H A Daiplayer.c84 for(i=0;i<balls->nr;i++) if( balls->ball[i].in_game && i!=ballnr ){ in ball_in_way()
87 iball = vec_diff(balls->ball[i].r,balls->ball[ballnr].r); in ball_in_way()
113 if( full_half == BALL_FULL && balls->ball[i].nr<8 && balls->ball[i].nr>0 ){ in nth_in_game()
119 …if( full_half == BALL_ANY && ( balls->ball[i].nr>8 || (balls->ball[i].nr<8 && balls->ball[i].nr>0)… in nth_in_game()
142 for( i=1; i<balls->nr; i++ ) if ( balls->ball[i].in_game ){ in ai_get_stroke_dir_8ball()
146 ( balls->ball[i].nr==8 && balls_in_game(balls,full_half)==0 ) ){ in ai_get_stroke_dir_8ball()
222 if ( balls->ball[i].in_game && balls->ball[i].nr<minnr ){ in ai_get_stroke_dir_9ball()
241 j,ball_in_way(0,r_hit,balls),ball_in_way(i,hole->aim,balls)); in ai_get_stroke_dir_9ball()
293 for( i=balls->nr-1;i>=1; i-- ) if ( balls->ball[i].in_game ){ in ai_get_stroke_dir_snooker()
435 d12 = vec_diff( balls->ball[j].r, balls->ball[i].r ); in ai_get_stroke_dir_carambol()
[all …]
H A Dbillmove.c925 balls->ball[i].r = vec_add(balls->ball[i].r,dx); in proceed_dt_euler()
970 … if( BALL_BALL_DIST( balls->ball[i], balls->ball[k] ) < (balls->ball[i].d+balls->ball[k].d)/2.0 ){ in proceed_dt_euler()
982 …if ( fabs( BALL_BALL_DIST( balls->ball[i], balls->ball[k] ) - (balls->ball[i].d+balls->ball[k].d)/… in proceed_dt_euler()
1006 balls->ball[i].r = vec_add(balls->ball[i].r,dx); in proceed_dt_only()
1189 for(i=0;i<balls->nr;i++) if(balls->ball[i].in_game){ in proceed_dt()
1233 balls->ball[i].v = vec_cross( balls->ball[i].w, in proceed_dt()
1264 #define ROLL_MOM_R MU_ROLL*balls->ball[i].I/balls->ball[i].m/balls->ball[i].d in proceed_dt()
1276 balls->ball[i].v = vec_cross( balls->ball[i].w, in proceed_dt()
1297 …if( fabs(balls->ball[i].r.z)<0.001 && fabs(balls->ball[i].r.z)>0.00001 && balls->ball[i].v.z<0.4 &… in proceed_dt()
1313 balls->ball[i].v = vec_diff(balls->ball[i].v,vec_scale(balls->ball[i].v,dv/v)); in proceed_dt()
[all …]
H A Daiplayer.h28 extern VMvect (*ai_get_stroke_dir)( BallsType * balls, BordersType * walls, struct Player * pplayer…
32 int ball_in_way( int ballnr, VMvect aim, BallsType * balls );
35 VMvect ai_get_stroke_dir_8ball ( BallsType * balls, BordersType * walls, struct Player * pplayer …
36 VMvect ai_get_stroke_dir_9ball ( BallsType * balls, BordersType * walls, struct Player * pplayer …
37 VMvect ai_get_stroke_dir_carambol( BallsType * balls, BordersType * walls, struct Player * pplayer …
38 VMvect ai_get_stroke_dir_snooker ( BallsType * balls, BordersType * walls, struct Player * pplayer …
40 void setfunc_ai_get_stroke_dir(VMvect (*func)( BallsType * balls, BordersType * walls, struct Playe…
H A Dbillard.h80 extern void (*create_scene)( BallsType * balls );
87 void create_8ball_scene ( BallsType * balls ); /* 8-pool */
88 void create_9ball_scene ( BallsType * balls ); /* 9-pool */
89 void create_carambol_scene( BallsType * balls ); /* carambol */
90 void create_snooker_scene ( BallsType * balls ); /* snooker */
92 int balls_in_game( BallsType * balls, int full_half );
94 void setfunc_create_scene( void (*func)( BallsType * balls ) );
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/
H A Dattraction.c451 x_dist = st->balls [j].x - st->balls [i].x; in compute_force()
452 y_dist = st->balls [j].y - st->balls [i].y; in compute_force()
603 w2 = (int)(5*(st->balls[i].vy*st->balls[i].vy+st->balls[i].vx*st->balls[i].vx)); in draw_meter_speed()
604 st->speeds[i] = st->balls[i].vy*st->balls[i].vy+st->balls[i].vx*st->balls[i].vx; in draw_meter_speed()
690 st->balls[i].vx += st->balls[i].dx; in attraction_draw()
691 st->balls[i].vy += st->balls[i].dy; in attraction_draw()
719 st->balls[i].x += st->balls[i].vx; in attraction_draw()
720 st->balls[i].y += st->balls[i].vy; in attraction_draw()
754 st->balls[i].vx = -st->balls[i].vx; in attraction_draw()
759 st->balls[i].vy = -st->balls[i].vy; in attraction_draw()
[all …]
/dports/games/gtkballs/gtkballs-3.1.5/src/
H A Dtheme.c116 if(theme->balls) { in gtkb_theme_free()
120 if(theme->balls[i].jump) { in gtkb_theme_free()
124 g_free(theme->balls[i].jump); in gtkb_theme_free()
126 g_free(theme->balls[i].jumpdelays); in gtkb_theme_free()
129 if(theme->balls[i].destroy) { in gtkb_theme_free()
140 g_free(theme->balls); in gtkb_theme_free()
230 CHECKRET(theme->balls[i].jumpphases, -1); in gtkb_load_theme()
232 theme->balls[i].jump = g_new0(GtkbPixmap, theme->balls[i].jumpphases); in gtkb_load_theme()
233 theme->balls[i].jumpdelays = g_new0(gint, theme->balls[i].jumpphases); in gtkb_load_theme()
254 theme->balls[i].destroy = g_new0(GtkbPixmap, theme->balls[i].destroyphases); in gtkb_load_theme()
[all …]
/dports/x11/xlockmore/xlockmore-5.67/modes/
H A Dbounce.c197 x = (double) (bp->balls[i].x - bp->balls[aball].x); in checkCollision()
198 y = (double) (bp->balls[i].y - bp->balls[aball].y); in checkCollision()
207 bp->balls[i].vx -= bp->balls[i].vx / FRICTION; in checkCollision()
208 bp->balls[i].vy -= bp->balls[i].vy / FRICTION; in checkCollision()
211 bp->balls[aball].vx -= bp->balls[aball].vx / FRICTION; in checkCollision()
212 bp->balls[aball].vy -= bp->balls[aball].vy / FRICTION; in checkCollision()
213 spin = (bp->balls[i].vang - bp->balls[aball].vang) / in checkCollision()
217 bp->balls[i].spindir = DIR(bp->balls[i].vang); in checkCollision()
218 bp->balls[aball].spindir = DIR(bp->balls[aball].vang); in checkCollision()
422 x = (bp->balls[i].x - bp->balls[aball].x); in collide()
[all …]
/dports/x11/xlockmore/xlockmore-5.67/modes/glx/
H A Dboxed.c408 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
418 bman->balls[b].loc.y = bman->balls[b].radius + (bman->balls[b].radius - bman->balls[b].loc.y); in updateballs()
435 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
442 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
449 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
456 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
466 …squaredist = (bman->balls[b].radius * bman->balls[b].radius) + (bman->balls[j].radius * bman->ball… in updateballs()
476 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
477 addvectors(&bman->balls[j].loc,&bman->balls[j].loc,&bman->balls[j].dir); in updateballs()
481 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
[all …]
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/glx/
H A Dboxed.c404 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
414 bman->balls[b].loc.y = bman->balls[b].radius + (bman->balls[b].radius - bman->balls[b].loc.y); in updateballs()
431 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
438 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
445 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
452 if (bman->balls[b].loc.y > 41+bman->balls[b].radius) bman->balls[b].offside=1; in updateballs()
462 …squaredist = (bman->balls[b].radius * bman->balls[b].radius) + (bman->balls[j].radius * bman->ball… in updateballs()
472 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
473 addvectors(&bman->balls[j].loc,&bman->balls[j].loc,&bman->balls[j].dir); in updateballs()
477 addvectors(&bman->balls[b].loc,&bman->balls[b].loc,&bman->balls[b].dir); in updateballs()
[all …]
/dports/audio/din/din-52/src/factory/
H A Dmondrian.hlp89 selecting balls.
129 The shortcuts below affect selected balls, balls in box under cursor
156 CTRL + SPACE - thaw balls
170 F3 - turns selected balls into wrecking balls
171 or wrecking balls into bouncing balls.
173 F4 - turns selected balls into healing balls
174 or healing balls into bouncing balls.
176 F5 - turns selected balls into bouncing balls.
178 F6 - change all wrecking balls into healing balls
196 n - clear selected balls
[all …]
/dports/graphics/processing/processing-1.5.1/modes/android/examples/Topics/Advanced Data/ArrayListClass/
H A DArrayListClass.pde9 * Click the mouse to add bouncing balls.
12 ArrayList balls;
21 balls = new ArrayList();
24 balls.add(new Ball(width/2, 0, ballWidth));
30 // With an array, we say balls.length, with an ArrayList, we say balls.size()
34 for (int i = balls.size()-1; i >= 0; i--) {
36 Ball ball = (Ball) balls.get(i);
41 balls.remove(i);
50 balls.add(new Ball(mouseX, mouseY, ballWidth));
/dports/graphics/processing/processing-1.5.1/modes/java/examples/Topics/Advanced Data/ArrayListClass/
H A DArrayListClass.pde9 * Click the mouse to add bouncing balls.
12 ArrayList balls;
21 balls = new ArrayList();
24 balls.add(new Ball(width/2, 0, ballWidth));
30 // With an array, we say balls.length, with an ArrayList, we say balls.size()
34 for (int i = balls.size()-1; i >= 0; i--) {
36 Ball ball = (Ball) balls.get(i);
41 balls.remove(i);
50 balls.add(new Ball(mouseX, mouseY, ballWidth));
/dports/lang/nim/nim-1.6.2/tools/atlas/tests/
H A Dballs.nimble3 description = "a unittest framework with balls ������"
12 bin = @["balls"] # build the binary for basic test running
13 installExt = @["nim"] # we need to install balls.nim also
15 #installFiles = @["balls.nim"] # https://github.com/nim-lang/Nim/issues/16661
19 exec "balls.cmd"
21 exec "balls"
24 exec "nim c --define:release balls.nim"
30 exec "nim c --define:release --define:ballsDry balls.nim"
31 exec """demo docs/runner.svg "balls""""
/dports/graphics/lazpaint/lazpaint-7.1.6/bgrabitmapnew/test/testvirtualscreen/
H A Dunit1.pas35 balls: array of record
59 for i := 0 to high(balls) do
60 with balls[i] do
87 setlength(rects, length(balls)*2);
90 for i := 0 to high(balls) do
91 with balls[i] do
142 setlength(balls, ACount);
143 for i := 0 to high(balls) do
144 with balls[i] do
146 …(random(VirtualScreen.BitmapWidth), (i*VirtualScreen.BitmapHeight div length(balls)) - ballRadius);
[all …]
/dports/editors/cudatext/CudaText-1.151.0/bgrabitmap/test/testvirtualscreen/
H A Dunit1.pas35 balls: array of record
59 for i := 0 to high(balls) do
60 with balls[i] do
87 setlength(rects, length(balls)*2);
90 for i := 0 to high(balls) do
91 with balls[i] do
142 setlength(balls, ACount);
143 for i := 0 to high(balls) do
144 with balls[i] do
146 …(random(VirtualScreen.BitmapWidth), (i*VirtualScreen.BitmapHeight div length(balls)) - ballRadius);
[all …]
/dports/games/neverball/neverball-1.6.0/ball/
H A Dst_ball.c38 static Array balls; variable
86 if ((balls = fs_dir_scan("ball", has_ball_sols))) in scan_balls()
88 array_sort(balls, cmp_dir_items); in scan_balls()
90 for (i = 0; i < array_len(balls); i++) in scan_balls()
92 const char *path = DIR_ITEM_GET(balls, i)->path; in scan_balls()
105 fs_dir_free(balls); in free_balls()
106 balls = NULL; in free_balls()
112 DIR_ITEM_GET(balls, curr_ball)->path, in set_curr_ball()
113 base_name(DIR_ITEM_GET(balls, curr_ball)->path)); in set_curr_ball()
130 if (++curr_ball == array_len(balls)) in ball_action()
[all …]
/dports/java/openjdk11/jdk11u-jdk-11.0.13-8-1/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball balls[] = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]
/dports/java/openjdk13/jdk13u-jdk-13.0.10-1-1/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball[] balls = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]
/dports/java/openjdk11-jre/jdk11u-jdk-11.0.13-8-1/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball balls[] = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]
/dports/java/openjdk12/openjdk-jdk12u-jdk-12.0.2-10-4/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball[] balls = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]
/dports/java/openjdk16/jdk16u-jdk-16.0.2-7-1/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball[] balls = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]
/dports/java/openjdk17/jdk17u-jdk-17.0.1-12-1/src/demo/share/jfc/J2Ddemo/java2d/demos/Mix/
H A DBalls.java72 protected Ball[] balls = new Ball[colors.length]; field in Balls
79 balls[i] = new Ball(colors[i], 30); in Balls()
81 balls[0].isSelected = true; in Balls()
82 balls[3].isSelected = true; in Balls()
83 balls[4].isSelected = true; in Balls()
84 balls[6].isSelected = true; in Balls()
103 for (Ball ball : balls) { in step()
113 for (Ball ball : balls) { in step()
123 for (Ball b : balls) { in render()
275 addTool("R", demo.balls[0].isSelected); in DemoControls()
[all …]

12345678910>>...94