From 5a675c5e6833e98b92b55396594bc0d607b98903 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Sat, 2 Nov 2024 13:18:50 +0100 Subject: clean up code + implement teleport consumable --- frontend/GameData.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'frontend/GameData.cpp') diff --git a/frontend/GameData.cpp b/frontend/GameData.cpp index 3b9046d..1b7c548 100644 --- a/frontend/GameData.cpp +++ b/frontend/GameData.cpp @@ -37,7 +37,7 @@ Enemy * GameData::create_enemy(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); auto enemy = unique_ptr{ EnemyFactory::create_enemy(row.col(0), row.col(1)) }; @@ -69,7 +69,7 @@ Object * GameData::create_object(const string & name) const { query.reset() .bind(name) ; - + try { auto row = query.row(); return ObjectFactory::create_object({ @@ -96,7 +96,7 @@ Location * GameData::create_location(const string & name) const{ query.reset() .bind(name) ; - + try { auto row = query.row(); return LocationFactory::create_location(row.col(0), row.col(1)); -- cgit v1.2.3