Lines Matching refs:hits
136 int hits; /* how many times has this ship been hit? */
167 static char hits[2][BWIDTH][BDEPTH];
311 ss->hits = 0;
345 memset(hits, 0, sizeof(char) * BWIDTH * BDEPTH * 2);
352 ss->hits = 0;
360 ss->hits = 0;
729 if (ss->length > ss->hits)
751 if (++ss->hits < ss->length) /* still afloat? */
767 hits[turn][x1][y1] = MARK_MISS;
790 hits[turn][x1][y1] = ss->symbol;
825 if (hits[PLAYER][curx][cury]) {
832 hits[PLAYER][curx][cury] = (hit ? MARK_HIT : MARK_MISS);
842 (void) addch((chtype) hits[PLAYER][curx][cury]);
913 if (!hits[COMPUTER][x][y]) {
955 hits[COMPUTER][x][y] = (hit = (board[PLAYER][x][y])) ? MARK_HIT : MARK_MISS;
992 #define POSSIBLE(x, y) (ONBOARD(x, y) && !hits[COMPUTER][x][y])
1014 ts.hits = 1;
1057 ts.hits++;
1069 ts.hits++;
1077 x = ts.x + ts.hits * xincr[d];
1078 y = ts.y + ts.hits * yincr[d];
1083 ts.hits++;
1095 ts.hits++;
1206 if (sp->hits >= sp->length)