1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-06 12:27:57 +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

@@ -152,6 +152,10 @@ struct hrmap_kite : hrmap {
kite::find_cell_connection(c, d);
}
int shvid(cell *c) override {
return kite::getshape(c->master);
}
heptagon *newtile(pshape s, int dist) {
heptagon *h = tailored_alloc<heptagon> (8);
h->s = hstate(s);