Lines Matching refs:beecount
58 #define X(t,b) (sp->x[(t)*sp->beecount+(b)])
59 #define Y(t,b) (sp->y[(t)*sp->beecount+(b)])
67 int beecount; /* number of bees */
94 sp->beecount = batchcount;
107 sp->segs = (XSegment *) malloc(sizeof(XSegment) * sp->beecount);
108 sp->old_segs = (XSegment *) malloc(sizeof(XSegment) * sp->beecount);
109 sp->x = (short *) malloc(sizeof(short) * sp->beecount * TIMES);
110 sp->y = (short *) malloc(sizeof(short) * sp->beecount * TIMES);
111 sp->xv = (short *) malloc(sizeof(short) * sp->beecount);
112 sp->yv = (short *) malloc(sizeof(short) * sp->beecount);
125 for (b = 0; b < sp->beecount; b++) {
178 sp->xv[random() % sp->beecount] += RAND(3);
179 sp->yv[random() % sp->beecount] += RAND(3);
182 for (b = 0; b < sp->beecount; b++) {
229 XDrawSegments(dsp, win, Scr[screen].gc, sp->old_segs, sp->beecount);
239 XDrawSegments(dsp, win, Scr[screen].gc, sp->segs, sp->beecount);