Searched refs:NSECTS (Results 1 – 17 of 17) sorted by relevance
76 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual()84 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual()92 if (ix < 0 || ix >= NSECTS || iy < 0 || iy >= NSECTS) in visual()
85 sectsize = NSECTS; in move()125 xn = NSECTS * dist * bigger; in move()144 dx = Ship.quadx * NSECTS + Ship.sectx + dx * xn; in move()145 dy = Ship.quady * NSECTS + Ship.secty + dy * xn; in move()164 Ship.quadx = ix / NSECTS; in move()165 Ship.quady = iy / NSECTS; in move()166 Ship.sectx = ix % NSECTS; in move()167 Ship.secty = iy % NSECTS; in move()208 dist = sqrt(dx * dx + dy * dy) / NSECTS; in move()
113 if (lookx < 0 || lookx >= NSECTS || looky < 0 || looky >= NSECTS) in klmove()121 if (lookx >= NSECTS) in klmove()126 if (looky >= NSECTS) in klmove()153 if (lookx < 0 || lookx >= NSECTS) in klmove()159 if (looky < 0 || looky >= NSECTS || Sect[lookx][looky] != EMPTY) in klmove()
83 for (i = 0; i < NSECTS; i++) in initquad()84 for (j = 0; j < NSECTS; j++) in initquad()142 i = ranf(NSECTS); in sector()143 j = ranf(NSECTS); in sector()
89 for (i = 0; i < NSECTS; i++) in srscan()96 for (i = 0; i < NSECTS; i++) in srscan()101 for (j = 0; j < NSECTS; j++) in srscan()171 for (i = 0; i < NSECTS; i++) in srscan()
194 if (ix < 0 || ix >= NSECTS) in computer()197 if (iy < 0 || iy >= NSECTS) in computer()203 if (ix < 0 || ix >= NSECTS) in computer()206 if (iy < 0 || iy >= NSECTS) in computer()321 quadsize = NSECTS; in kalc()
43 char Sect[NSECTS][NSECTS];
59 Ship.sectx = ranf(NSECTS); in dumpme()60 Ship.secty = ranf(NSECTS); in dumpme()
38 #define NSECTS 10 /* dimensions of quadrant in sectors */ macro86 extern char Sect[NSECTS][NSECTS];
82 if (i < 0 || i >= NSECTS) in nova()86 if (j < 0 || j >= NSECTS) in nova()
68 if (i < 0 || i >= NSECTS) in dock()72 if (j < 0 || j >= NSECTS) in dock()
85 for (ix = 0; ix < NSECTS; ix++) in snova()87 for (iy = 0; iy < NSECTS; iy++) in snova()
140 if (dx < 0 || dx >= NSECTS) in help()143 if (dy < 0 || dy >= NSECTS || Sect[dx][dy] != EMPTY) in help()
145 if (Ship.sectx < 0 || Ship.sectx >= NSECTS) in abandon()148 if (Ship.secty < 0 || Ship.secty >= NSECTS) in abandon()
203 Ship.sectx = ranf(NSECTS); in setup()204 Ship.secty = ranf(NSECTS); in setup()
170 Ship.sectx = ranf(NSECTS); in events()171 Ship.secty = ranf(NSECTS); in events()
123 sectsize = NSECTS; in torped()