aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.h
diff options
context:
space:
mode:
Diffstat (limited to 'backend/Location.h')
-rw-r--r--backend/Location.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/backend/Location.h b/backend/Location.h
index 6f701ad..1eab055 100644
--- a/backend/Location.h
+++ b/backend/Location.h
@@ -28,8 +28,9 @@ public:
void set_description(const String & description);
const String & get_description() const;
- void set_exit(Direction dir, Location * location = nullptr);
- Location * get_exit(Direction dir) const;
+ void set_exit(Direction dir, Location & location);
+ Location & get_exit(Direction dir) const;
+ bool has_exit(Direction dir) const;
void add_visible_object(Object *);
void remove_visible_object(Object *);