mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-07-02 01:42:49 +00:00
heptagon counting
This commit is contained in:
parent
5defb06d81
commit
eb12309487
@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
#define MIRR(x) x.mirrored
|
#define MIRR(x) x.mirrored
|
||||||
|
|
||||||
|
int heptacount = 0;
|
||||||
|
|
||||||
struct cell;
|
struct cell;
|
||||||
cell *newCell(int type, heptagon *master);
|
cell *newCell(int type, heptagon *master);
|
||||||
|
|
||||||
@ -64,6 +66,7 @@ template<class... T> auto iprintf(T... t) { for(int i=0; i<indent; i++) putchar(
|
|||||||
// create a new heptagon
|
// create a new heptagon
|
||||||
heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fixdistance = COMPUTE) {
|
heptagon *buildHeptagon(heptagon *parent, int d, hstate s, int pard = 0, int fixdistance = COMPUTE) {
|
||||||
heptagon *h = new heptagon;
|
heptagon *h = new heptagon;
|
||||||
|
heptacount++;
|
||||||
h->alt = NULL;
|
h->alt = NULL;
|
||||||
h->s = s;
|
h->s = s;
|
||||||
for(int i=0; i<MAX_EDGE; i++) h->move[i] = NULL;
|
for(int i=0; i<MAX_EDGE; i++) h->move[i] = NULL;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user