Lines Matching refs:k
41 register struct kling *k; local
55 for (n = 0; n < Etc.nkling; k && n++)
57 k = &Etc.klingon[n];
60 i = 100.0 * k->power / Param.klingpwr;
65 motion *= k->avgdist * Param.movefac[2 * Move.newquad + fl];
67 dx = Ship.sectx - k->x + ranf(3) - 1;
68 dy = Ship.secty - k->y + ranf(3) - 1;
84 nextx = k->x;
85 nexty = k->y;
111 k->x, k->y, qx, qy);
119 Sect[k->x][k->y] = EMPTY;
122 bmove(&Etc.klingon[Etc.nkling], k, sizeof *k);
124 k = 0;
146 if (k && (k->x != nextx || k->y != nexty))
150 k->x, k->y, nextx, nexty);
151 Sect[k->x][k->y] = EMPTY;
152 Sect[k->x = nextx][k->y = nexty] = KLINGON;