mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2026-10-31 13:04:31 +00:00
used OOP for get_corner_position
This commit is contained in:
1 parent
42fc2c44a7
commit
8b306c765e
7 files changed
+95
-84
No files matched your search
@@ -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*);
|
||||
|
||||
Reference in new issue
Block a user