Lines Matching refs:gnum

149     int gnum;  local
155 gnum = wiz->numgests;
158 wiz->gests[gnum].turnnum = self->turn;
159 wiz->gests[gnum].log_hp = wiz->hitpoints;
161 wiz->gests[gnum].did[0] = vall;
162 wiz->gests[gnum].did[1] = valr;
163 wiz->gests[gnum].invisible = (wiz->invisibility || (self->turntype==Turn_TIMESTOP));
164 wiz->gests[gnum].blind = self->blind_array;
166 return gnum;
169 int previous_gesture(wiz, gnum, hand) in previous_gesture() argument
171 int gnum, hand;
174 gnum--;
175 if (gnum<0)
177 if (wiz->gests[gnum].did[hand] != Gesture_ANTISPELL)
178 return wiz->gests[gnum].did[hand];
277 int ix, jx, kx, gnum; local
301 gnum = write_gestures(self, wiz, vall, valr);
306 wiz->gests[gnum].did[0] = previous_gesture(wiz, gnum, 0);
307 wiz->gests[gnum].did[1] = previous_gesture(wiz, gnum, 1);
308 …z->name, pro_his(wiz->gender), gesture_name(wiz->gests[gnum].did[0]), gesture_name(wiz->gests[gnum
314 wiz->gests[gnum].did[jx] = wiz->perm.mind_detail & (~QuVal_Hand_MASK);
318 wiz->gests[gnum].did[jx] = (random() % 6)+1;
321 wiz->perm.mind_detail = wiz->gests[gnum].did[jx] | (jx ? QuVal_Hand_Right : QuVal_Hand_Left);
323 …ntally makes a %s with %s %s hand.\n", wiz->name, gesture_name(wiz->gests[gnum].did[jx]), pro_his(…
330 wiz->gests[gnum].did[jx] = wiz->perm.mind_detail & (~QuVal_Hand_MASK);
347 wiz->gests[gnum].did[jx] = self->querylist[0].answer;
350 wiz->perm.mind_detail = wiz->gests[gnum].did[jx] | (jx ? QuVal_Hand_Right : QuVal_Hand_Left);
352 …iously makes a %s with %s %s hand.\n", wiz->name, gesture_name(wiz->gests[gnum].did[jx]), pro_his(…
357 val = wiz->gests[gnum].did[0];
359 wiz->gests[gnum].did[0] = Gesture_NOTHING;
362 val = wiz->gests[gnum].did[1];
364 wiz->gests[gnum].did[1] = Gesture_NOTHING;
385 switch (previous_gesture(wiz, gnum, jx)) {
409 wiz->gests[gnum].did[jx] = val;
411 …and is frozen in a %s.\n", wiz->name, (jx?"right":"left"), gesture_name(wiz->gests[gnum].did[jx]));
424 if (wiz->gests[gnum].did[0] == Gesture_KNIFE
425 && wiz->gests[gnum].did[1] == Gesture_KNIFE) {
427 wiz->gests[gnum].did[1] = Gesture_NOTHING;
594 int ix, gnum; local
595 for (ix=0, gnum=wiz->numgests-1; ix<size; ix++, gnum--) {
596 if (gnum<0)
600 (wiz->gests[gnum].invisible || (wiz->gests[gnum].blind & (1<<asker))))
603 buf[ix] = (wiz->gests[gnum].did[0]) | ((wiz->gests[gnum].did[1]) << 5);