/src/games/hack/ |
hack.search.c | 83 for (lx = u.ux; (num = levl[lx - 1][u.uy].typ) && num != CORR; lx--); 84 for (hx = u.ux; (num = levl[hx + 1][u.uy].typ) && num != CORR; hx++); 85 for (ly = u.uy; (num = levl[u.ux][ly - 1].typ) && num != CORR; ly--); 86 for (hy = u.uy; (num = levl[u.ux][hy + 1].typ) && num != CORR; hy++); 90 if (levl[zx][zy].typ == SDOOR) { 91 levl[zx][zy].typ = DOOR; 94 } else if (levl[zx][zy].typ == SCORR) { 95 levl[zx][zy].typ = CORR; 131 if (levl[x][y].typ == SDOOR) { 134 levl[x][y].typ = DOOR [all...] |
hack.mkmaze.c | 90 levl[x][y].typ = (x % 2 && y % 2) ? 0 : HWALL; 98 levl[x][y].typ = 124 switch (levl[x][y].typ) { 126 levl[x][y].scrsym = '-'; 129 levl[x][y].scrsym = '.'; 154 levl[(xupstair = mm.x)][(yupstair = mm.y)].scrsym = '<'; 155 levl[xupstair][yupstair].typ = STAIRS; 164 levl[x][y].typ = ROOM; 174 levl[x][y].typ = ROOM; 204 if (x < 3 || y < 3 || x > COLNO - 3 || y > ROWNO - 3 || levl[x][y].typ != 0 [all...] |
hack.read.c | 428 lev = &(levl[zx][zy]); 462 levl[zx][zy].seen = 0; 553 if (u.uswallow || !xdnstair || levl[u.ux][u.uy].typ == CORR || 554 !levl[u.ux][u.uy].lit) { 572 if (levl[u.ux][u.uy].typ == CORR) { 575 } else if (levl[u.ux][u.uy].lit) { 587 if (levl[u.ux][u.uy].lit == on) 589 if (levl[u.ux][u.uy].typ == DOOR) { 590 if (IS_ROOM(levl[u.ux][u.uy + 1].typ)) 592 else if (IS_ROOM(levl[u.ux][u.uy - 1].typ) [all...] |
hack.mklev.c | 128 levl[x][y] = zerorm; 145 levl[xdnstair][ydnstair].scrsym = '>'; 146 levl[xdnstair][ydnstair].typ = STAIRS; 155 levl[xupstair][yupstair].scrsym = '<'; 156 levl[xupstair][yupstair].typ = STAIRS; 396 if (levl[x][y].typ == DOOR || levl[x][y].typ == SDOOR) 411 if (levl[x - 1][y].typ == DOOR || levl[x + 1][y].typ == DOOR || 412 levl[x][y + 1].typ == DOOR || levl[x][y - 1].typ == DOOR | [all...] |
def.rm.h | 114 extern struct rm levl[COLNO][ROWNO];
|
hack.c | 100 lev = &levl[x][y]; 127 levl[u.udisx][u.udisy].scrsym = news0(u.udisx, u.udisy); 139 lev = &levl[x][y]; 171 IS_ROCK(levl[u.ux + u.dx][u.uy + u.dy].typ)); 179 ust = &levl[u.ux][u.uy]; 223 tmpr = &levl[u.ux + u.dx][u.uy + u.dy]; 234 if (isok(rx, ry) && !IS_ROCK(levl[rx][ry].typ) && 235 (levl[rx][ry].typ != DOOR || !(u.dx && u.dy)) && 255 if (levl[rx][ry].typ == POOL) { 256 levl[rx][ry].typ = ROOM [all...] |
hack.Decl.c | 77 struct rm levl[COLNO][ROWNO]; /* level map */ variable in typeref:struct:rm[][]
|
hack.pri.c | 128 struct rm *crm = &levl[x][y]; 176 at(prevx, prevy, levl[prevx][prevy].scrsym); 208 at(xx, yy, levl[xx][yy].scrsym); 226 levl[x][y].new = 0; /* prevent pline-nscr erasing --- */ 289 levl[(u.udisx = u.ux)][(u.udisy = u.uy)].scrsym = u.usym; 290 levl[u.udisx][u.udisy].seen = 1; 306 if ((room = &levl[x][y])->new) { 342 if ((room = &levl[x][y])->new) { 369 /* if(! levl[u.udisx][u.udisy].new) */ 381 levl[u.ux][u.uy].seen = 1 [all...] |
hack.vault.c | 136 crm = &levl[fcx][fcy]; 196 if (levl[x][y].typ == CORR) 211 while (levl[x][y].typ == ROOM) { 260 egd->fakecorr[0].ftyp = levl[x][y].typ; 261 levl[x][y].typ = DOOR; 291 if (!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) { 323 while ((typ = (crm = &levl[nx][ny])->typ) != 0) { 330 ZAP_POS(levl[nx + nx - x][ny + ny - y].typ)) {
|
hack.bones.c | 164 levl[x][y].seen = levl[x][y].new = 0;
|
hack.zap.c | 307 room = &levl[zx][zy]; 408 typ = levl[bhitpos.x][bhitpos.y].typ; 432 tmp_at(-1, (levl[bhitpos.x][bhitpos.y].typ == POOL) ? -1 : 0); 463 if (!ZAP_POS(levl[bhitpos.x][bhitpos.y].typ)) { 522 if ((lev = &levl[sx][sy])->typ) 528 if (ZAP_POS(levl[sx][sy - dy].typ)) 530 if (ZAP_POS(levl[sx - dx][sy].typ)) { 622 if (ZAP_POS(rmn = levl[sx][sy - dy].typ) && 623 (IS_ROOM(rmn) || ZAP_POS(levl[sx + dx][sy - dy].typ))) 625 if (ZAP_POS(rmn = levl[sx - dx][sy].typ) & [all...] |
hack.lev.c | 99 bwrite(fd, levl, sizeof(levl)); 232 mread(fd, levl, sizeof(levl));
|
hack.apply.c | 283 if (!ZAP_POS(levl[bchx][bchy].typ)) { 371 lev = &levl[dpx][dpy]; 389 if (IS_WALL(levl[dpx][dpy].typ)) { 461 (IS_ROCK(levl[rx][ry].typ) 485 lev = &levl[rx][ry];
|
hack.mkshop.c | 317 levl[sx][sy].typ = POOL; 318 levl[sx][sy].scrsym = POOL_SYM; 334 if ((lev = &levl[sx + dx][sy + dy])->typ == DOOR ||
|
hack.trap.c | 408 if (levl[nux][nuy].typ == POOL && !Levitation) 419 return (isok(x, y) && !IS_ROCK(levl[x][y].typ) && !m_at(x, y) && 544 if (levl[u.ux][u.uy].typ != POOL)
|
hack.cmd.c | 370 return (isok(x, y) && (levl[x][y].typ == ROOM || 371 (levl[x][y].typ >= LDOOR && flags.run >= 6)));
|
hack.mon.c | 116 inpool = (levl[mtmp->mx][mtmp->my].typ == POOL); 369 || levl[u.ux][u.uy].typ == STAIRS))) { 553 if (levl[mtmp->mx][mtmp->my].scrsym == '$') 568 if (levl[mtmp->mx][mtmp->my].scrsym == GEM_SYM) 585 nowtyp = levl[x][y].typ; 598 if (!IS_ROCK(ntyp = levl[nx][ny].typ)) 903 if (ACCESSIBLE(levl[x][y].typ)) /* might be mimic in wall or dead eel */
|
hack.makemon.c | 232 m_at(x, y) || !ACCESSIBLE(levl[x][y].typ)
|
hack.mhitu.c | 166 levl[mtmp->mx][mtmp->my].typ == POOL) {
|
hack.do.c | 288 } while (levl[u.ux][u.uy].typ != ROOM ||
|
hack.dog.c | 262 * if(levl[omx][omy].s 329 if (!IS_ROOM(levl[u.ux][u.uy].typ) || !rn2(4) ||
|
hack.fight.c | 365 switch (levl[u.ux + u.dx][u.uy + u.dy].scrsym) {
|
hack.shk.c | 1051 if (levl[nx][ny].typ == ROOM
|
/src/sys/dev/ic/ |
interwave.c | 702 iw_mixer_line_level(struct iw_softc *sc, int line, int levl, int levr) 708 gainl = sc->sc_recsrcbits | (levl >> 4); 713 sc->sc_rec.voll = levl & 0xf0; 719 gainl = (255 - levl) >> 3; 723 if (levl == 0) 730 sc->sc_aux1.voll = levl & 0xf8; 737 gainl = (255 - levl) >> 3; 741 if (levl == 0) 748 sc->sc_aux2.voll = levl & 0xf8; 752 attenl = ((255 - levl) >> 2) | ((levl && !sc->sc_dac.off) ? 0 : 0x80) [all...] |