mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-06 11:32:49 +00:00
product:: adj
This commit is contained in:
parent
f3c97f9342
commit
2b62b23888
@ -1211,6 +1211,13 @@ EX namespace product {
|
|||||||
return in_underlying([&] { return calc_relative_matrix(where[c2].first, where[c1].first, hint); }) * mscale(Id, cgi.plevel * szgmod(where[c2].second - where[c1].second, csteps));
|
return in_underlying([&] { return calc_relative_matrix(where[c2].first, where[c1].first, hint); }) * mscale(Id, cgi.plevel * szgmod(where[c2].second - where[c1].second, csteps));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
transmatrix adj(cell *c, int i) override {
|
||||||
|
if(i == c->type-1) return mscale(Id, cgi.plevel);
|
||||||
|
else if(i == c->type-2) return mscale(Id, -cgi.plevel);
|
||||||
|
c = where[c].first;
|
||||||
|
return PIU(currentmap->adj(c, i));
|
||||||
|
}
|
||||||
|
|
||||||
void draw() override {
|
void draw() override {
|
||||||
auto w = hybrid::get_where(centerover);
|
auto w = hybrid::get_where(centerover);
|
||||||
z0 = w.second;
|
z0 = w.second;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user