aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r--backend/Location.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp
index 8a79af5..96d06ca 100644
--- a/backend/Location.cpp
+++ b/backend/Location.cpp
@@ -1,6 +1,7 @@
#include <string.h>
#include "Location.h"
+#include "ListIterator.h"
#include "util.h"
Location::Location(const char * name, const char * description) {
@@ -36,3 +37,7 @@ Location * Location::get_exit(Direction dir) {
return this->edges[dir];
}
+ListRange<Object *> Location::get_objects() {
+ return this->objects.range();
+}
+