diff options
Diffstat (limited to 'backend/Location.h')
-rw-r--r-- | backend/Location.h | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/backend/Location.h b/backend/Location.h index b139da8..464328b 100644 --- a/backend/Location.h +++ b/backend/Location.h @@ -30,9 +30,16 @@ public: void set_exit(Direction dir, Location * location = nullptr); Location * get_exit(Direction dir) const; - void add_object(Object *); - void remove_object(Object *); - ListRange<Object *> get_objects() const; + void add_visible_object(Object *); + void remove_visible_object(Object *); + ListRange<Object *> get_visible_objects() const; + + void add_hidden_object(Object *); + void remove_hidden_object(Object *); + ListRange<Object *> get_hidden_objects() const; + + void hide_object(Object *); + void unhide_object(Object *); void add_enemy(Enemy *); void remove_enemy(Enemy *); @@ -48,7 +55,8 @@ private: String name; String description; List<Enemy*> enemies; - List<Object*> objects; + List<Object*> hidden_objects; + List<Object*> visible_objects; Location * edges[4] = { nullptr, |