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 uint_t beecount; /* number of bees */
92 sp->beecount = (uint_t) batchcount;
105 sp->segs = malloc(sizeof(XSegment) * sp->beecount);
106 sp->old_segs = malloc(sizeof(XSegment) * sp->beecount);
107 sp->x = malloc(sizeof(short) * sp->beecount * TIMES);
108 sp->y = malloc(sizeof(short) * sp->beecount * TIMES);
109 sp->xv = malloc(sizeof(short) * sp->beecount);
110 sp->yv = malloc(sizeof(short) * sp->beecount);
129 for (b = 0; b < sp->beecount; b++) {
181 sp->xv[random() % sp->beecount] += (short) RAND(3);
182 sp->yv[random() % sp->beecount] += (short) RAND(3);
185 for (b = 0; b < sp->beecount; b++) {
232 XDrawSegments(dsp, win, Scr[screen].gc, sp->old_segs, (int) sp->beecount);
242 XDrawSegments(dsp, win, Scr[screen].gc, sp->segs, (int) sp->beecount);