diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 19:59:38 +0100 |
commit | 6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (patch) | |
tree | c2505409c68d554b1e776cdb0c8104af54d375bf /backend/Dungeon.cpp | |
parent | c1d43cddee94dd370078f755d33147c9a8181852 (diff) |
create backend string class
Diffstat (limited to 'backend/Dungeon.cpp')
-rw-r--r-- | backend/Dungeon.cpp | 10 |
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) { |