aboutsummaryrefslogtreecommitdiff
path: root/src/example/scene_manager.cpp
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-07 10:00:08 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-07 10:00:08 +0100
commitd2ba8b538b137d104fc4751142fe58888d59d541 (patch)
tree52388216af5776b1063e11a1bf25d27382e1be4d /src/example/scene_manager.cpp
parent7dfaa964a5039d7c24d16038589c77032152b9f2 (diff)
Code style
Diffstat (limited to 'src/example/scene_manager.cpp')
-rw-r--r--src/example/scene_manager.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/example/scene_manager.cpp b/src/example/scene_manager.cpp
index bce42ca..efbf2c2 100644
--- a/src/example/scene_manager.cpp
+++ b/src/example/scene_manager.cpp
@@ -1,18 +1,18 @@
#include <iostream>
-#include "../crepe/ComponentManager.h"
-#include "../crepe/api/GameObject.h"
-#include "../crepe/api/Metadata.h"
-#include "../crepe/api/Point.h"
-#include "../crepe/api/Scene.h"
-#include "../crepe/api/SceneManager.h"
+#include <crepe/ComponentManager.h>
+#include <crepe/api/GameObject.h>
+#include <crepe/api/Metadata.h>
+#include <crepe/api/Point.h>
+#include <crepe/api/Scene.h>
+#include <crepe/api/SceneManager.h>
using namespace crepe;
using namespace std;
-class concreteScene1 : public Scene {
+class ConcreteScene1 : public Scene {
public:
- concreteScene1(string name) : Scene(name) {}
+ ConcreteScene1(string name) : Scene(name) {}
void load_scene() {
GameObject object1(0, "scene_1", "tag_scene_1", Point{0, 0}, 0, 1);
@@ -21,9 +21,9 @@ public:
}
};
-class concreteScene2 : public Scene {
+class ConcreteScene2 : public Scene {
public:
- concreteScene2(string name) : Scene(name) {}
+ ConcreteScene2(string name) : Scene(name) {}
void load_scene() {
GameObject object1(0, "scene_2", "tag_scene_2", Point{0, 0}, 0, 1);
@@ -37,8 +37,8 @@ int main() {
SceneManager & scene_mgr = SceneManager::get_instance();
// Add the scenes to the scene manager
- scene_mgr.add_scene<concreteScene1>("scene1");
- scene_mgr.add_scene<concreteScene2>("scene2");
+ scene_mgr.add_scene<ConcreteScene1>("scene1");
+ scene_mgr.add_scene<ConcreteScene2>("scene2");
// There is no need to call set_next_scene() at the beginnen, because the first scene will be automatically set as the next scene
// Load scene1 (the first scene added)