1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 00:47:40 +00:00

rewritten shvid using OOP

This commit is contained in:
Zeno Rogue
2021-06-12 23:34:50 +02:00
parent 8d18946450
commit 42fc2c44a7
8 changed files with 44 additions and 27 deletions

View File

@@ -431,6 +431,15 @@ EX namespace bt {
}
}
int shvid(cell *c) override {
if(geometry == gBinaryTiling)
return c->type-6;
else if(geometry == gBinary4 || geometry == gTernary)
return c->master->zebraval;
else
return 0;
}
int updir_at(heptagon *h) {
if(geometry != gBinaryTiling) return updir();
else if(type_of(h) == 6) return bd_down;