Home
last modified time | relevance | path

Searched refs:levl (Results 1 – 25 of 25) sorted by relevance

/netbsd-src/games/hack/
H A Dhack.search.c83 for (lx = u.ux; (num = levl[lx - 1][u.uy].typ) && num != CORR; lx--); in findit()
84 for (hx = u.ux; (num = levl[hx + 1][u.uy].typ) && num != CORR; hx++); in findit()
85 for (ly = u.uy; (num = levl[u.ux][ly - 1].typ) && num != CORR; ly--); in findit()
86 for (hy = u.uy; (num = levl[u.ux][hy + 1].typ) && num != CORR; hy++); in findit()
90 if (levl[zx][zy].typ == SDOOR) { in findit()
91 levl[zx][zy].typ = DOOR; in findit()
94 } else if (levl[zx][zy].typ == SCORR) { in findit()
95 levl[zx][zy].typ = CORR; in findit()
131 if (levl[x][y].typ == SDOOR) { in dosearch()
134 levl[x][y].typ = DOOR; in dosearch()
[all …]
H A Dhack.mklev.c128 levl[x][y] = zerorm; in makelevel()
145 levl[xdnstair][ydnstair].scrsym = '>'; in makelevel()
146 levl[xdnstair][ydnstair].typ = STAIRS; in makelevel()
155 levl[xupstair][yupstair].scrsym = '<'; in makelevel()
156 levl[xupstair][yupstair].typ = STAIRS; in makelevel()
396 if (levl[x][y].typ == DOOR || levl[x][y].typ == SDOOR) in finddpos()
411 if (levl[x - 1][y].typ == DOOR || levl[x + 1][y].typ == DOOR || in okdoor()
412 levl[x][y + 1].typ == DOOR || levl[x][y - 1].typ == DOOR || in okdoor()
413 levl[x - 1][y].typ == SDOOR || levl[x + 1][y].typ == SDOOR || in okdoor()
414 levl[x][y - 1].typ == SDOOR || levl[x][y + 1].typ == SDOOR || in okdoor()
[all …]
H A Dhack.mkmaze.c90 levl[x][y].typ = (x % 2 && y % 2) ? 0 : HWALL; in makemaz()
98 levl[x][y].typ = in makemaz()
124 switch (levl[x][y].typ) { in makemaz()
126 levl[x][y].scrsym = '-'; in makemaz()
129 levl[x][y].scrsym = '.'; in makemaz()
154 levl[(xupstair = mm.x)][(yupstair = mm.y)].scrsym = '<'; in makemaz()
155 levl[xupstair][yupstair].typ = STAIRS; in makemaz()
164 levl[x][y].typ = ROOM; in walkfrom()
174 levl[x][y].typ = ROOM; in walkfrom()
204 if (x < 3 || y < 3 || x > COLNO - 3 || y > ROWNO - 3 || levl[x][y].typ != 0) in okay()
H A Dhack.read.c428 lev = &(levl[zx][zy]); in doread()
462 levl[zx][zy].seen = 0; in doread()
553 if (u.uswallow || !xdnstair || levl[u.ux][u.uy].typ == CORR || in litroom()
554 !levl[u.ux][u.uy].lit) { in litroom()
572 if (levl[u.ux][u.uy].typ == CORR) { in litroom()
575 } else if (levl[u.ux][u.uy].lit) { in litroom()
587 if (levl[u.ux][u.uy].lit == on) in litroom()
589 if (levl[u.ux][u.uy].typ == DOOR) { in litroom()
590 if (IS_ROOM(levl[u.ux][u.uy + 1].typ)) in litroom()
592 else if (IS_ROOM(levl[u.ux][u.uy - 1].typ)) in litroom()
[all …]
H A Dhack.c100 lev = &levl[x][y]; in unsee()
127 levl[u.udisx][u.udisy].scrsym = news0(u.udisx, u.udisy); in seeoff()
139 lev = &levl[x][y]; in seeoff()
171 IS_ROCK(levl[u.ux + u.dx][u.uy + u.dy].typ)); in domove()
179 ust = &levl[u.ux][u.uy]; in domove()
223 tmpr = &levl[u.ux + u.dx][u.uy + u.dy]; in domove()
234 if (isok(rx, ry) && !IS_ROCK(levl[rx][ry].typ) && in domove()
235 (levl[rx][ry].typ != DOOR || !(u.dx && u.dy)) && in domove()
255 if (levl[rx][ry].typ == POOL) { in domove()
256 levl[rx][ry].typ = ROOM; in domove()
[all …]
H A Dhack.pri.c128 struct rm *crm = &levl[x][y]; in atl()
176 at(prevx, prevy, levl[prevx][prevy].scrsym); in tmp_at()
208 at(xx, yy, levl[xx][yy].scrsym); in Tmp_at()
226 levl[x][y].new = 0; /* prevent pline-nscr erasing --- */ in Tmp_at()
289 levl[(u.udisx = u.ux)][(u.udisy = u.uy)].scrsym = u.usym; in docrt()
290 levl[u.udisx][u.udisy].seen = 1; in docrt()
306 if ((room = &levl[x][y])->new) { in docrt()
342 if ((room = &levl[x][y])->new) { in docorner()
381 levl[u.ux][u.uy].seen = 1; in pru()
402 room = &levl[x][y]; in prl()
[all …]
H A Dhack.vault.c136 crm = &levl[fcx][fcy]; in restfakecorr()
196 if (levl[x][y].typ == CORR) in invault()
211 while (levl[x][y].typ == ROOM) { in invault()
260 egd->fakecorr[0].ftyp = levl[x][y].typ; in invault()
261 levl[x][y].typ = DOOR; in invault()
291 if (!IS_WALL(typ = (crm = &levl[nx][ny])->typ) && typ != POOL) { in gd_move()
323 while ((typ = (crm = &levl[nx][ny])->typ) != 0) { in gd_move()
330 ZAP_POS(levl[nx + nx - x][ny + ny - y].typ)) { in gd_move()
H A Dhack.zap.c307 room = &levl[zx][zy]; in dozap()
408 typ = levl[bhitpos.x][bhitpos.y].typ; in bhit()
432 tmp_at(-1, (levl[bhitpos.x][bhitpos.y].typ == POOL) ? -1 : 0); in bhit()
463 if (!ZAP_POS(levl[bhitpos.x][bhitpos.y].typ)) { in boomhit()
522 if ((lev = &levl[sx][sy])->typ) in buzz()
528 if (ZAP_POS(levl[sx][sy - dy].typ)) in buzz()
530 if (ZAP_POS(levl[sx - dx][sy].typ)) { in buzz()
622 if (ZAP_POS(rmn = levl[sx][sy - dy].typ) && in buzz()
623 (IS_ROOM(rmn) || ZAP_POS(levl[sx + dx][sy - dy].typ))) in buzz()
625 if (ZAP_POS(rmn = levl[sx - dx][sy].typ) && in buzz()
[all …]
H A Dhack.apply.c283 if (!ZAP_POS(levl[bchx][bchy].typ)) { in bchit()
371 lev = &levl[dpx][dpy]; in dig()
389 if (IS_WALL(levl[dpx][dpy].typ)) { in dig()
461 (IS_ROCK(levl[rx][ry].typ) in use_pick_axe()
485 lev = &levl[rx][ry]; in use_pick_axe()
H A Dhack.lev.c99 bwrite(fd, levl, sizeof(levl)); in savelev()
232 mread(fd, levl, sizeof(levl)); in getlev()
H A Dhack.bones.c164 levl[x][y].seen = levl[x][y].new = 0; in getbones()
H A Dhack.mon.c116 inpool = (levl[mtmp->mx][mtmp->my].typ == POOL); in movemon()
369 || levl[u.ux][u.uy].typ == STAIRS))) { in m_move()
553 if (levl[mtmp->mx][mtmp->my].scrsym == '$') in mpickgold()
568 if (levl[mtmp->mx][mtmp->my].scrsym == GEM_SYM) in mpickgems()
585 nowtyp = levl[x][y].typ; in mfndpos()
598 if (!IS_ROCK(ntyp = levl[nx][ny].typ)) in mfndpos()
903 if (ACCESSIBLE(levl[x][y].typ)) /* might be mimic in wall or dead eel */ in killed()
H A Dhack.mkshop.c317 levl[sx][sy].typ = POOL; in mkswamp()
318 levl[sx][sy].scrsym = POOL_SYM; in mkswamp()
334 if ((lev = &levl[sx + dx][sy + dy])->typ == DOOR || in nexttodoor()
H A Dhack.trap.c408 if (levl[nux][nuy].typ == POOL && !Levitation) in teleds()
419 return (isok(x, y) && !IS_ROCK(levl[x][y].typ) && !m_at(x, y) && in teleok()
544 if (levl[u.ux][u.uy].typ != POOL) in drown()
H A Dhack.cmd.c370 return (isok(x, y) && (levl[x][y].typ == ROOM || in isroom()
371 (levl[x][y].typ >= LDOOR && flags.run >= 6))); in isroom()
H A Ddef.rm.h114 extern struct rm levl[COLNO][ROWNO];
H A Dhack.Decl.c77 struct rm levl[COLNO][ROWNO]; /* level map */ variable
H A Dhack.makemon.c232 m_at(x, y) || !ACCESSIBLE(levl[x][y].typ) in goodpos()
H A Dhack.mhitu.c166 levl[mtmp->mx][mtmp->my].typ == POOL) { in mhitu()
H A Dhack.fight.c365 switch (levl[u.ux + u.dx][u.uy + u.dy].scrsym) { in attack()
H A Dhack.do.c288 } while (levl[u.ux][u.uy].typ != ROOM || in goto_level()
H A Dhack.dog.c329 if (!IS_ROOM(levl[u.ux][u.uy].typ) || !rn2(4) || in dog_move()
H A Dhack.shk.c1051 if (levl[nx][ny].typ == ROOM in shk_move()
/netbsd-src/sys/dev/ic/
H A Dinterwave.c702 iw_mixer_line_level(struct iw_softc *sc, int line, int levl, int levr) in iw_mixer_line_level() argument
708 gainl = sc->sc_recsrcbits | (levl >> 4); in iw_mixer_line_level()
713 sc->sc_rec.voll = levl & 0xf0; in iw_mixer_line_level()
719 gainl = (255 - levl) >> 3; in iw_mixer_line_level()
723 if (levl == 0) in iw_mixer_line_level()
730 sc->sc_aux1.voll = levl & 0xf8; in iw_mixer_line_level()
737 gainl = (255 - levl) >> 3; in iw_mixer_line_level()
741 if (levl == 0) in iw_mixer_line_level()
748 sc->sc_aux2.voll = levl & 0xf8; in iw_mixer_line_level()
752 attenl = ((255 - levl) >> 2) | ((levl && !sc->sc_dac.off) ? 0 : 0x80); in iw_mixer_line_level()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A DChangeLog-200120957 * c-typeck.c (type_lists_compatible_p): Ignore the top-levl