aboutsummaryrefslogtreecommitdiff
path: root/src/crepe/api/Scene.h
blob: 74cfac381d67309c97d85b15f7885ba43c5a26d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#pragma once

#include <string>

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:
	//TODO: Use Loek's custom reference class to set ComponentManger via SceneManager instead of via constructor
	/**
	 * \param mgr  Reference to the ComponentManager
	 */
	Scene(ComponentManager & mgr);
	//! SceneManager instances Scene
	friend class SceneManager;

public:
	virtual ~Scene() = default;

public:
	//! Load the scene
	virtual void load_scene() = 0;
	/**
	 * \brief Get the scene's name
	 * \return The scene's name
	 */
	virtual std::string get_name() = 0;

protected:
	//! Reference to the ComponentManager
	ComponentManager & component_manager;
};

} // namespace crepe