Lines Matching defs:nx
320 int nx, ny, omx, omy, appr, nearer, cnt, i, j;
471 nx = poss[i].x;
474 if (nx == mtmp->mtrack[j].x && ny == mtmp->mtrack[j].y)
480 int d1 = DIST(nx, ny, gx, gy);
485 nearer = (DIST(nx, ny, gx, gy) < DIST(nix, niy, gx, gy));
490 nix = nx;
578 int x, y, nx, ny, cnt = 0, ntyp;
594 for (nx = x - 1; nx <= x + 1; nx++)
596 if (nx != x || ny != y)
597 if (isok(nx, ny))
598 if (!IS_ROCK(ntyp = levl[nx][ny].typ))
599 if (!(nx != x && ny != y && (nowtyp == DOOR || ntyp == DOOR)))
602 if (nx == u.ux && ny == u.uy) {
606 } else if ((mtmp = m_at(nx, ny)) != NULL) {
616 if (sobj_at(CLOVE_OF_GARLIC, nx, ny)) {
621 if (sobj_at(SCR_SCARE_MONSTER, nx, ny) ||
622 (!mon->mpeaceful && sengr_at("Elbereth", nx, ny))) {
627 if (sobj_at(ENORMOUS_ROCK, nx, ny)) {
632 if (!Invis && online(nx, ny)) {
645 struct trap *ttmp = t_at(nx, ny);
656 poss[cnt].x = nx;