aboutsummaryrefslogtreecommitdiff
path: root/backend/Dungeon.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Dungeon.cpp')
-rw-r--r--backend/Dungeon.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/backend/Dungeon.cpp b/backend/Dungeon.cpp
index 66a1fa3..e1cee70 100644
--- a/backend/Dungeon.cpp
+++ b/backend/Dungeon.cpp
@@ -13,7 +13,15 @@ Dungeon::~Dungeon() {
}
void Dungeon::update() {
-
+ // TODO: iterators are broken (!????)
+ // for (Location * location : this->locations) {
+ // for (Enemy * enemy : location->get_enemies()) {
+ // if (RNG::get().rand_double() < 0.5) continue;
+ // Direction direction = random_direction(*location);
+ // // location->remove_enemy(enemy); // TODO: this breaks the for loop
+ // location->get_exit(direction)->add_enemy(enemy);
+ // }
+ // }
}
void Dungeon::add_location(Location * location) {