1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-10-21 00:47:40 +00:00

irr:: celldist and (circular, not yet horocyclic) celldistAlt

This commit is contained in:
Zeno Rogue
2018-07-20 02:58:47 +02:00
parent 35bb9ea95b
commit f7e5f470dc
5 changed files with 77 additions and 9 deletions

View File

@@ -326,7 +326,7 @@ enum hstate { hsOrigin, hsA, hsB, hsError, hsA0, hsA1, hsB0, hsB1, hsC };
struct heptagon {
// automaton state
hstate s : 6;
int dm4: 2;
unsigned int dm4: 2;
// we are spin[i]-th neighbor of move[i]
uint32_t spintable;
int spin(int d) { return tspin(spintable, d); }
@@ -2587,6 +2587,7 @@ namespace irr {
bool supports(eGeometry g);
void visual_creator();
unsigned char density_code();
int celldist(cell *c, bool alts);
}
extern hrmap *currentmap;