aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Scene.h
diff options
context:
space:
mode:
authormax-001 <maxsmits21@kpnmail.nl>2024-11-20 11:42:23 +0100
committermax-001 <maxsmits21@kpnmail.nl>2024-11-20 11:42:23 +0100
commite585e01b625fcdbc00709c1bbade1b542b1f6139 (patch)
tree7ab095da8955a4299110a98a3b4f11de2087edde /src/crepe/api/Scene.h
parent0476a8e9dbe7afb422862f7b1c15aaed7f3c416e (diff)
Added Doxygen comments/explanation for GameObjects and Scenes
Diffstat (limited to 'src/crepe/api/Scene.h')
-rw-r--r--src/crepe/api/Scene.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/crepe/api/Scene.h b/src/crepe/api/Scene.h
index 0e516b6..6647135 100644
--- a/src/crepe/api/Scene.h
+++ b/src/crepe/api/Scene.h
@@ -7,19 +7,33 @@ namespace crepe {
class SceneManager;
class ComponentManager;
+/**
+ * \brief Represents a Scene
+ *
+ * This class represents a Scene. The Scene class is only used as an interface for the game
+ * programmer.
+ */
class Scene {
protected:
+ /**
+ * \param mgr Reference to the ComponentManager
+ * \param name Name of the scene
+ */
Scene(ComponentManager & mgr, const std::string & name);
+ //! SceneManager instances Scene
friend class SceneManager;
public:
virtual ~Scene() = default;
public:
+ //! Load the scene
virtual void load_scene() = 0;
+ //! The scene name
const std::string name;
protected:
+ //! Reference to the ComponentManager
ComponentManager & component_manager;
};