1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-25 23:06:02 +00:00

used enum for geometry classes; moved from hyper.h to init.cpp

This commit is contained in:
Zeno Rogue
2017-12-27 11:57:30 +01:00
parent 540f0678ee
commit dbcd71cb45
4 changed files with 28 additions and 24 deletions

View File

@@ -356,6 +356,17 @@ void addMessage(string s, char spamtype = 0);
#define weirdhyperbolic (S7 > 7 || S3 > 3)
#define stdhyperbolic (S7 == 7 && S3 == 3)
#define cgclass (ginf[geometry].cclass)
#define euclid (cgclass == gcEuclid)
#define sphere (cgclass == gcSphere)
#define hyperbolic (cgclass == gcHyperbolic)
#define elliptic (ginf[geometry].quotientstyle & qELLIP)
#define quotient (ginf[geometry].quotientstyle & (qZEBRA | qFIELD))
#define torus (ginf[geometry].quotientstyle & qTORUS)
#define doall (ginf[geometry].quotientstyle)
#define smallbounded (sphere || (quotient & qZEBRA) || torus)
#define bounded (sphere || quotient || torus)
#define a4 (S3 == 4)
#define a45 (S3 == 4 && S7 == 5)
#define a46 (S3 == 4 && S7 == 6)