1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-01-31 06:50:16 +00:00

major rewrite: unified the common parts of heptagon and cell via struct connection<T> and struct walker<T>

This commit is contained in:
Zeno Rogue
2018-08-18 00:46:45 +02:00
parent a5a3cf1c87
commit 682f804576
50 changed files with 1848 additions and 1921 deletions

View File

@@ -63,15 +63,15 @@ namespace binary {
}
#endif
// printf("}\n");
if(h->move[d] && h->move[d] != h1) {
if(h->move(d) && h->move(d) != h1) {
printf("already connected to something else (1)\n");
breakhere();
}
if(h1->move[d1] && h1->move[d1] != h) {
if(h1->move(d1) && h1->move(d1) != h) {
printf("already connected to something else (2)\n");
breakhere();
}
connectHeptagons(h, d, h1, d1);
h->c.connect(d, h1, d1, false);
rec--;
return h1;
}
@@ -176,7 +176,7 @@ namespace binary {
}
void draw() {
draw_rec(viewctr.h->c7, 63, cview());
draw_rec(viewctr.at->c7, 63, cview());
}
transmatrix relative_matrix(heptagon *h2, heptagon *h1) {