mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-09-03 11:17:56 +00:00
rewritten shvid using OOP
This commit is contained in:
@@ -780,6 +780,13 @@ struct hrmap_archimedean : hrmap {
|
||||
}
|
||||
else hrmap::find_cell_connection(c, d);
|
||||
}
|
||||
|
||||
int shvid(cell *c) override {
|
||||
auto& ac = arcm::current;
|
||||
int id = arcm::id_of(c->master);
|
||||
if(ac.regular && id>=2 && id < 2*ac.N) id &= 1;
|
||||
return id;
|
||||
}
|
||||
};
|
||||
|
||||
EX hrmap *new_map() { return new hrmap_archimedean; }
|
||||
|
Reference in New Issue
Block a user