Home | History | Annotate | Download | only in huntd

Lines Matching refs:pp

60 	PLAYER *pp;
157 for (pp = Player; pp < End_player; pp++) {
158 cgoto(pp, HEIGHT, 0);
159 outstr(pp, buf, n);
162 for (pp = Player; pp < End_player; pp++)
163 outstr(pp, buf, n);
164 for (pp = Player; pp < End_player; pp++) {
165 ce(pp);
166 sendcom(pp, REFRESH);
167 sendcom(pp, READY, 0);
168 (void) fflush(pp->p_output);
177 pp = End_monitor++;
178 i = pp - Monitor + MAXPL + 3;
189 pp = End_player++;
190 i = pp - Player + 3;
203 pp->p_ident = get_ident(machine, uid, name, team);
204 pp->p_output = fdopen(newsock, "w");
205 pp->p_death[0] = '\0';
206 pp->p_fd = newsock;
210 pp->p_y = 0;
211 pp->p_x = 0;
215 stmonitor(pp);
218 stplayer(pp, enter_status);
224 stmonitor(PLAYER *pp)
229 memcpy(pp->p_maze, Maze, sizeof Maze);
231 drawmaze(pp);
234 stat_char(pp),
235 pp->p_ident->i_name, pp->p_ident->i_team);
236 line = STAT_MON_ROW + 1 + (pp - Monitor);
246 sendcom(pp, REFRESH);
247 sendcom(pp, READY, 0);
248 (void) fflush(pp->p_output);
256 PLAYER *pp;
322 for (pp = Monitor; pp < End_monitor; pp++)
323 check(pp, y, x);
332 for (pp = Monitor; pp < End_monitor; pp++)
333 check(pp, y, x);
341 for (pp = Player; pp < End_player; pp++) {
342 if (pp != newpp) {
345 pp->p_ammo += NSHOTS;
347 cgoto(pp, y, STAT_NAME_COL);
348 outstr(pp, Buf, STAT_NAME_LEN);
350 "%3d", pp->p_ammo);
351 cgoto(pp, STAT_AMMO_ROW, STAT_VALUE_COL);
352 outstr(pp, smallbuf, 3);
356 for (pp = Monitor; pp < End_monitor; pp++) {
357 cgoto(pp, y, STAT_NAME_COL);
358 outstr(pp, Buf, STAT_NAME_LEN);