hrmap_standard now can be 3D maps

This commit is contained in:
Zeno Rogue
2019-11-30 18:05:23 +01:00
parent a1fbfb2946
commit aed8df0d04
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -70,7 +70,11 @@ struct hrmap {
virtual double spacedist(cell *c, int i) { return hdist0(tC0(adj(c, i))); }
};
/** hrmaps which are based on regular non-Euclidean 2D tilings, possibly quotient */
/** hrmaps which are based on regular non-Euclidean 2D tilings, possibly quotient
* Operators can be applied to these maps.
* Liskov substitution warning: maps which produce both tiling like above and 3D tilings
* (e.g. Euclidean and Crystal) also inherit from hrmap_standard
**/
struct hrmap_standard : hrmap {
void draw() override;
transmatrix relative_matrix(heptagon *h2, heptagon *h1, const hyperpoint& hint) override;