mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-01 06:23:00 +00:00
refactored shvid_full and wall_offset as virtual functions
This commit is contained in:
3
cell.cpp
3
cell.cpp
@@ -64,7 +64,10 @@ struct hrmap {
|
||||
|
||||
virtual void find_cell_connection(cell *c, int d);
|
||||
virtual int shvid(cell *c) { return 0; }
|
||||
virtual int full_shvid(cell *c) { return shvid(c); }
|
||||
virtual hyperpoint get_corner(cell *c, int cid, ld cf=3) { return C0; }
|
||||
|
||||
virtual int wall_offset(cell *c);
|
||||
};
|
||||
|
||||
/** hrmaps which are based on regular non-Euclidean 2D tilings, possibly quotient
|
||||
|
||||
Reference in New Issue
Block a user