aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 16:34:29 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 16:34:29 +0100
commit71380426426dffe787d1704a8fd639c4b1bbfad3 (patch)
treef550cc1dfa100e208712e20b4442687cc2a7f157 /backend/Location.cpp
parenta3c1ba7b49e4c5901d7c9dd917049744ad20fc96 (diff)
cmd_get complete
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();
}