Lines Matching refs:yincr
163 static int yincr[8] = { 0, 1, 1, 1, 0, -1, -1, -1 }; variable
347 int newy = ss->y + l * yincr[ss->dir]; in placeship()
692 yend = y + yincr[i]; in collidecheck()
708 yend = ss->y + (ss->length - 1) * yincr[ss->dir]; in checkplace()
729 if(collidecheck(b, ss->y+l*yincr[ss->dir], ss->x+l*xincr[ss->dir])) in checkplace()
793 int by = ss->y + j * yincr[(ss->dir + 2) % 8]; in hitship()
800 y1 = by + i * yincr[ss->dir]; in hitship()
819 int y1 = ss->y + i * yincr[ss->dir]; in hitship()
936 y1 = y + yincr[direction]; in cpushipcanfit()
941 y1 += yincr[direction]; in cpushipcanfit()
1064 x = ts.x + xincr[d*2]; y = ts.y + yincr[d*2]; in cputurn()
1080 y = ts.y + yincr[d*2]; in cputurn()
1094 y = ts.y + yincr[ts.dir]; in cputurn()
1113 ts.y += (ts.hits-1) * yincr[ts.dir]; in cputurn()
1118 y = ts.y + yincr[ts.dir]; in cputurn()
1194 ts.x += xincr[d]; ts.y += yincr[d]; ts.hits++; in cputurn()
1200 ts.x -= xincr[d]; ts.y -= yincr[d]; in cputurn()
1241 cgoto(ss->y + j * yincr[ss->dir], ss->x + j * xincr[ss->dir]); in playagain()