From 71380426426dffe787d1704a8fd639c4b1bbfad3 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Wed, 30 Oct 2024 16:34:29 +0100 Subject: cmd_get complete --- backend/Location.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'backend/Location.cpp') 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 Location::get_objects() { return this->objects.range(); } -- cgit v1.2.3