aboutsummaryrefslogtreecommitdiff
path: root/backend/Location.h
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 20:31:18 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-30 20:31:18 +0100
commitd8daa3e045ca2f41edcbed533bc5a9fef1363a17 (patch)
tree6a4c0883d05607476b609e68bcac7d854e281aea /backend/Location.h
parent6e1d62955c7a7f39bc9126d709a42a70e02a1d30 (diff)
print to backend
Diffstat (limited to 'backend/Location.h')
-rw-r--r--backend/Location.h16
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,