diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 01:29:58 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2024-10-30 01:29:58 +0100 |
commit | b9e738502260b8f448289c9888203971c7749c76 (patch) | |
tree | 09477251ba49307173a112e0cd5dbdd3633346ce /backend/Location.h | |
parent | e4261302944303781c952943e3290c99e2cabc52 (diff) |
WIP SQL gedoe
Diffstat (limited to 'backend/Location.h')
-rw-r--r-- | backend/Location.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backend/Location.h b/backend/Location.h index 8b600bb..4ce2349 100644 --- a/backend/Location.h +++ b/backend/Location.h @@ -22,9 +22,12 @@ public: const char * get_description(); void set_exit(Direction dir, Location * location = nullptr); Location * get_exit(Direction dir); + void add_object(Object *); ListRange<Object *> get_objects(); + void add_enemy(Enemy *); + ListRange<Enemy *> get_enemies(); -protected: +private: Location(const char * name = "", const char * description = ""); virtual ~Location(); friend class LocationFactory; |