1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-03-17 02:29:44 +00:00

used OOP for get_corner_position

This commit is contained in:
Zeno Rogue
2021-06-14 09:38:05 +02:00
parent 42fc2c44a7
commit 8b306c765e
7 changed files with 95 additions and 84 deletions

View File

@@ -62,6 +62,7 @@ struct hrmap {
virtual void find_cell_connection(cell *c, int d);
virtual int shvid(cell *c) { return 0; }
virtual hyperpoint get_corner(cell *c, int cid, ld cf=3) { return C0; }
};
/** hrmaps which are based on regular non-Euclidean 2D tilings, possibly quotient
@@ -80,6 +81,7 @@ struct hrmap_standard : hrmap {
double spacedist(cell *c, int i) override;
void find_cell_connection(cell *c, int d) override;
virtual int shvid(cell *c);
virtual hyperpoint get_corner(cell *c, int cid, ld cf) override;
};
void clearfrom(heptagon*);