diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 23:30:57 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-29 23:30:57 +0100 |
commit | 5c34847218e8d754447f5cf71ed595bbb412eee7 (patch) | |
tree | 2872948e6d2f566dd66cb1a9b2a5d9900db4c44f /backend/Location.cpp | |
parent | a04cb74fee079e3ee43ae5fae32fc2674409822c (diff) |
more WIP
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r-- | backend/Location.cpp | 5 |
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(); +} + |