Home
last modified time | relevance | path

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

12

/dports/games/hyperrogue/hyperrogue-12.0f/
H A Dcell.cpp518 return hybrid::celldistance(c, currentmap->gamestart()); in celldist()
520 if(euc::in()) return celldistance(currentmap->gamestart(), c); in celldist()
1192 EX int celldistance(cell *c1, cell *c2) { in celldistance() function
1194 if(fake::in()) return FPIU(celldistance(c1, c2)); in celldistance()
1196 if(hybri) return hybrid::celldistance(c1, c2); in celldistance()
1218 if(S3 >= OINF) return inforder::celldistance(c1, c2); in celldistance()
1227 return euc::celldistance(c1, c2); in celldistance()
1235 return UIU(celldistance(c1, c2)) / 2; in celldistance()
1252 int d = celldistance(c1, c2); in build_shortest_path()
1261 if(celldistance(x, c) < celldistance(x, p.back())) { in build_shortest_path()
[all …]
H A Deuclid.cpp368 EX int celldistance(coord v) { in celldistance() function
393 EX int celldistance(cell *c1, cell *c2) { in celldistance() function
397 return celldistance(basic_canonicalize(cm->ispacemap[c1->master] - cm->ispacemap[c2->master])); in celldistance()
422 while(euc::celldistance(cc, start) < r + 5) in dist_relative()
426 return euc::celldistance(cc, c) - r; in dist_relative()
571 if(celldistance(cand) < celldistance(eu.optimal_axes[i])) { in build_torus3()
668 while(celldistance(x + o[0]) <= celldistance(x)) x += o[0]; in canonicalize()
669 while(celldistance(x - o[0]) < celldistance(x)) x -= o[0]; in canonicalize()
H A Dinforder.cpp42 EX int celldistance(cell *c1, cell *c2) { in celldistance() function
H A Dmonstermove.cpp403 int cd = celldistance(c, d); in bulldistance()
404 forCellEx(c2, c) if(celldistance(c2, d) < cd) low++; in bulldistance()
505 return 1500 + celldistance(c1, dragon::target) - celldistance(c2, dragon::target); in moveval()
1815 if(celldistance(c, t) <= 2) wakeup = true; in specialMoves()
1880 if(celldistance(c, t) > 4) continue; in specialMoves()
1896 if(celldistance(c,t) <= firerange && makeflame(t, 20, true)) { in specialMoves()
1906 if(celldistance(c,t) <= 3 && !sphere) dont_approach = true; in specialMoves()
1921 int d = celldistance(c,t); in specialMoves()
1940 if(celldistance(c,t) <= 2) { in specialMoves()
H A Dgeometry2.cpp168 int dist = celldistance(h1->cmove(d)->c7, h2->c7); in relative_matrixh()
858 forCellCM(c2, at) if(celldistance(start.at, c2) == a) prev.push_back(c2); in generate_random_path()
937 auto sdist = [start] (cell *c) { return celldistance(start.at, c); }; in generate_random_path()
973 int d = celldistance(prev, ycw.at); in generate_random_path()
975 forCellIdCM(c, i, ycw.at) if(celldistance(prev, c) > d) next.push_back(i); in generate_random_path()
H A Dpattern2.cpp1615 int di = celldistance(sc, d); in nearer_map()
1624 for(cell *d: ac) if(celldistance(sc, d) == maxd) { in nearer_map()
1625 for(cell *e: ac) if(celldistance(sc, e) > celldistance(d, e)) { in nearer_map()
1628 forCellEx(f, e) if(celldistance(sc, f) > celldistance(d, f)) nei++; in nearer_map()
1633 if(0) for(cell *e: ac) if(celldistance(sc, e) == celldistance(d, e)) in nearer_map()
1656 int di = celldistance(sc, d); in furthest_map()
1663 for(cell *d: ac) if(celldistance(sc, d) == maxd - reduce) in furthest_map()
1823 int d = celldistance(s, c); in generateCanvas()
H A Dyendor.cpp271 if(inmirror(key) || (geometry == gNormal && celldistance(key, yendor) < YDIST/2)) { in check()
320 int t = type_in(expansion, yendor, [yendor] (cell *c) { return celldistance(yendor, c); }); in check()
343 … tch = type_in(expansion, ycw.cpeek(), [yendor] (cell *c) { return celldistance(yendor, c); }); in check()
1097 next = celldistance(c2, cp2) == 8; in build()
H A Dreg3.cpp1005 int d = hr::celldistance(c2, c1); in relative_matrixc()
1007 for(int a=0; a<c1->type; a++) if(hr::celldistance(c2, c1->move(a)) < d) in relative_matrixc()
1010 for(int a=0; a<c1->type; a++) println(hlog, "d=", d, " vs ", hr::celldistance(c2, c1->move(a))); in relative_matrixc()
2215 EX int celldistance(cell *c1, cell *c2) { in celldistance() function
2264 return hr::celldistance(c, currentmap->gamestart()) & 1; in pseudohept()
2327 int celldistance(cell *c1, cell *c2) {
2397 if(specialland == laCamelot) return reg3::celldistance(c, target.at);
2399 int d = reg3::celldistance(c, target.at) - tsteps;
H A Dcheckmove.cpp217 if(celldistance(pmi[i].mi.t, pmi[j].mi.t) > 8) in monstersnear_aux()
H A Ddebug.cpp444 dialog::addSelItem("celldistance", its(celldistance(cwt.at, what)), 0); in operator ()()
642 bool is_ok = cl.getdist(c) == celldistance(c, cwt.at); in test_distances()
H A Denvironment.cpp560 …if(dragon::target && celldistance(c, dragon::target) <= breathrange && makeflame(dragon::target, 5… in moverefresh()
570 if(celldistance(c, t) <= breathrange && makeflame(t, 5, true)) { in moverefresh()
H A Dexpansion.cpp439 return c->cpdist < INFD ? c->cpdist : celldistance(cwt.at, c); in curr_dist()
608 celldistance(c, distance_from == dfPlayer ? cwt.at : currentmap->gamestart()); in do_viewdist()
H A Dpcmove.cpp1518 …forCellEx(mx, mt) if(celldistance(mx, mf) > celldistance(mx, mf->modmove(dir)) && celldistance(mx,… in spread_plague()
H A Dhistory.cpp351 if(celldistance(v[ph]->base, old) <= 2) { in movetophase()
H A Dnonisotropic.cpp1445 EX int celldistance(cell *c1, cell *c2) { in celldistance() function
1448 return PIU (hr::celldistance(w1.first, w2.first)); in celldistance()
1452 return PIU (hr::celldistance(w1.first, w2.first)) + abs(w1.second - w2.second); in celldistance()
1461 int d = PIU(hr::celldistance(w1.first, w2.first)); in celldistance()
H A Dgraph.cpp4476 int cd = celldistance(yi[yii].key(), cwt.at); in drawMarkers()
4478 int cd2 = celldistance(cwt.at, yi[yii].path[i2]); in drawMarkers()
4481 println(hlog, "i2 = ", i2, " cd = ", celldistance(cwt.at, keycell)); in drawMarkers()
4688 …for(int a=0; a<24; a++) rad[a] = (0.5 + randd() * .3 + 0.5 * (a&1)) / (2.8 + celldistance(f.where,… in draw_flash()
5653 forCellIdEx(c1, i, from) if(celldistance(c1, to) < celldistance(from, to)) { in animate_item_throw()
5728 if(euclid) return celldistance(centerover, c) <= get_sightrange_ambush(); in inscreenrange()
H A Dbigstuff.cpp99 return celldistance(c, euc::at(princess::coords())); in cylinder_alt()
101 return celldistance(c, euc::at(camelot_coords())); in cylinder_alt()
H A Dcomplex.cpp25 int d = celldistance(currentmap->gamestart(), c); in fzebra3()
3106 c->LHU.fi.rval = celldistance(c, cwt.at) + 8 - (PURE ? 2 : 3); in spread()
3337 if(celldistance(lasttreasure, cwt.at) >= (PURE ? 7 : 10)) { in treasures()
/dports/games/hyperrogue/hyperrogue-12.0f/devmods/
H A Dtests.cpp35 int cd = celldistance(c1, c2); in readArgs()
/dports/games/hyperrogue/hyperrogue-12.0f/rogueviz/
H A Dsmoothcam.cpp123 int d = celldistance(at, from); in try_harder_relative_matrix()
127 int d1 = celldistance(c1, from); in try_harder_relative_matrix()
289 dist = its(celldistance(f.where, centerover)) + " cells"; in show()
H A Dembeddings.cpp163 v[i] = celldistance(signposts[i], c); in get_coordinates()
H A Dreverb.cpp137 int dist = celldistance(ps.first, cwt.at); in reverb_queue()
H A Dkohonen.cpp417 else return celldistance(c1, c2); in mydistance()
581 for(auto& d: cc.data) if(celldistance(cw.at, d.target.at) != d.dist) in verify_crawler()
1366 for(int j=0; j<neurons; j++) fprintf(f, "%3d", celldistance(net[i].where, net[j].where)); in neurondisttable()
H A Dsag.cpp66 if(bounded) return celldistance(snakecells[i], snakecells[j]); in snakedist()
H A Drogueviz.cpp695 if(!multidraw && ei->orig && ei->orig != center && celldistance(ei->orig, center) > 3) in drawVertex()

12