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.cpp | |
parent | e4261302944303781c952943e3290c99e2cabc52 (diff) |
WIP SQL gedoe
Diffstat (limited to 'backend/Location.cpp')
-rw-r--r-- | backend/Location.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/backend/Location.cpp b/backend/Location.cpp index 96d06ca..a26d530 100644 --- a/backend/Location.cpp +++ b/backend/Location.cpp @@ -37,7 +37,17 @@ Location * Location::get_exit(Direction dir) { return this->edges[dir]; } +void Location::add_object(Object * object) { + this->objects.push_back(object); +} ListRange<Object *> Location::get_objects() { return this->objects.range(); } +void Location::add_enemy(Enemy * enemy) { + this->enemies.push_back(enemy); +} +ListRange<Enemy *> Location::get_enemies() { + return this->enemies.range(); +} + |