1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-09-03 03:07:56 +00:00

handlers for createStep and newmap

This commit is contained in:
Zeno Rogue
2018-11-30 14:37:59 +01:00
parent ce996c82fe
commit bf7bb61d35
4 changed files with 11 additions and 3 deletions

View File

@@ -198,8 +198,12 @@ extern int hrand(int);
// a structure used to walk on the heptagonal tesselation
// (remembers not only the heptagon, but also direction)
hookset<void(heptagon*, int)> *hooks_createStep;
heptagon *createStep(heptagon *h, int d) {
d = h->c.fix(d);
if(!h->move(d))
callhooks(hooks_createStep, h, d);
if(!h->move(d) && binarytiling)
return binary::createStep(h, d);
if(!h->move(d) && archimedean) {