mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-10-15 06:17:38 +00:00
written createMov in an OOP way
This commit is contained in:
@@ -1271,6 +1271,10 @@ EX namespace hybrid {
|
||||
in_underlying([] { delete currentmap; });
|
||||
for(auto& p: at) destroy_cell(p.second);
|
||||
}
|
||||
|
||||
void find_cell_connection(cell *c, int d) override {
|
||||
hybrid::find_cell_connection(c, d);
|
||||
}
|
||||
|
||||
virtual transmatrix spin_to(cell *c, int d, ld bonus) override { if(d >= c->type-2) return Id; c = get_where(c).first; return in_underlying([&] { return currentmap->spin_to(c, d, bonus); }); }
|
||||
virtual transmatrix spin_from(cell *c, int d, ld bonus) override { if(d >= c->type-2) return Id; c = get_where(c).first; return in_underlying([&] { return currentmap->spin_from(c, d, bonus); }); }
|
||||
|
Reference in New Issue
Block a user