diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 16:34:29 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 16:34:29 +0100 |
commit | 71380426426dffe787d1704a8fd639c4b1bbfad3 (patch) | |
tree | f550cc1dfa100e208712e20b4442687cc2a7f157 /backend/Location.cpp | |
parent | a3c1ba7b49e4c5901d7c9dd917049744ad20fc96 (diff) |
cmd_get complete
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r-- | backend/Location.cpp | 3 |
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(); } |