aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:56:36 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-21 09:56:36 +0100
commit1bc04b371f2cc8740f2ee039f75101922da671d6 (patch)
tree555b45dcf8f9de06800a913cf89875a64bd29764 /src
parent7588439db08a671764345764eb05bcb853a90d76 (diff)
Adjusted test according to changes in Scene and SceneManager
Diffstat (limited to 'src')
-rw-r--r--src/test/SceneManagerTest.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/test/SceneManagerTest.cpp b/src/test/SceneManagerTest.cpp
index 69e1171..dab2ce9 100644
--- a/src/test/SceneManagerTest.cpp
+++ b/src/test/SceneManagerTest.cpp
@@ -20,6 +20,8 @@ public:
GameObject object2 = mgr.new_object("scene_1", "tag_scene_1", Vector2{1, 0}, 0, 1);
GameObject object3 = mgr.new_object("scene_1", "tag_scene_1", Vector2{2, 0}, 0, 1);
}
+
+ string get_name() const { return "scene1";}
};
class ConcreteScene2 : public Scene {
@@ -33,6 +35,8 @@ public:
GameObject object3 = mgr.new_object("scene_2", "tag_scene_2", Vector2{0, 2}, 0, 1);
GameObject object4 = mgr.new_object("scene_2", "tag_scene_2", Vector2{0, 3}, 0, 1);
}
+
+ string get_name() const { return "scene2";}
};
class SceneManagerTest : public ::testing::Test {
@@ -42,8 +46,8 @@ public:
};
TEST_F(SceneManagerTest, loadScene) {
- scene_mgr.add_scene<ConcreteScene1>("scene1");
- scene_mgr.add_scene<ConcreteScene2>("scene2");
+ scene_mgr.add_scene<ConcreteScene1>();
+ scene_mgr.add_scene<ConcreteScene2>();
scene_mgr.load_next_scene();