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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user