aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r--backend/Location.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp
index a26d530..9add524 100644
--- a/backend/Location.cpp
+++ b/backend/Location.cpp
@@ -40,6 +40,9 @@ Location * Location::get_exit(Direction dir) {
void Location::add_object(Object * object) {
this->objects.push_back(object);
}
+void Location::remove_object(Object * object) {
+ this->objects.remove(object);
+}
ListRange<Object *> Location::get_objects() {
return this->objects.range();
}