aboutsummaryrefslogtreecommitdiff
path: root/src/game/game.hpp
blob: 2493a42609327661481d788fe4f2fe6a1a6073ca (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
#pragma once

#include "interfaces/cursor.hpp"
#include "interfaces/game.hpp"
#include "interfaces/scene.hpp"
#include "interfaces/window.hpp"

#include <memory>

class Game : public IGame
{
public:
	Game(const std::shared_ptr<IWindow> &window, const std::shared_ptr<IScene> &scene,
		 const std::shared_ptr<ICursorController> &cursor_controller) noexcept;

	void on_start() noexcept override;

	void on_exit() const noexcept override;

	[[nodiscard]] std::unordered_map<char, std::shared_ptr<ICommand>>
	get_input_config() const noexcept override;

private:
	const std::shared_ptr<IWindow> &_window;
	const std::shared_ptr<IScene> &_scene;
	const std::shared_ptr<ICursorController> &_cursor_controller;
};