written createMov in an OOP way

This commit is contained in:
Zeno Rogue
2021-06-12 23:25:59 +02:00
parent b698c8a8a1
commit 8d18946450
5 changed files with 57 additions and 42 deletions
+4
View File
@@ -63,6 +63,10 @@ EX namespace fake {
if(currentmap == u) currentmap = this;
}
void find_cell_connection(cell *c, int d) override {
FPIU(createMov(c, d));
}
hrmap_fake() {
in_underlying([this] { initcells(); underlying_map = currentmap; });
for(hrmap*& m: allmaps) if(m == underlying_map) m = NULL;