mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-11-07 01:03:00 +00:00
improved in the OO fashion: draw, relative_matrix, create_step, and several minor functions are now virtual in hrmap
This commit is contained in:
@@ -38,7 +38,7 @@ namespace quotientspace {
|
||||
|
||||
int rv(int x) { return (rvadd+x*rvdir) % S7; }
|
||||
|
||||
struct hrmap_quotient : hrmap {
|
||||
struct hrmap_quotient : hrmap_standard {
|
||||
|
||||
hrmap_hyperbolic base;
|
||||
|
||||
@@ -64,6 +64,8 @@ struct hrmap_quotient : hrmap {
|
||||
|
||||
hrmap_quotient() {
|
||||
|
||||
dynamicval<hrmap*> cmap(currentmap, this);
|
||||
|
||||
static int symmask = (1<<30);
|
||||
|
||||
connections.clear();
|
||||
@@ -350,7 +352,7 @@ struct hrmap_quotient : hrmap {
|
||||
for(int i=0; i<TOT; i++) {
|
||||
if(i >= isize(by_dist)) { printf("too fast\n"); exit(1); }
|
||||
for(int a=0; a<S7; a++) if(by_dist[i]->move(a)->alt == NULL) by_dist.push_back(by_dist[i]->move(a));
|
||||
generateAlts(by_dist[i], 0, false);
|
||||
currentmap->generateAlts(by_dist[i], 0, false);
|
||||
}
|
||||
|
||||
for(int i=0; i<TOT; i++) {
|
||||
|
||||
Reference in New Issue
Block a user