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

#include "DI/auto_wirable.hpp"
#include "interfaces/game.hpp"
#include "interfaces/input.hpp"
#include "interfaces/scene.hpp"

#include "engine/user/cursor.hpp"

#include <memory>

class Game : public IGame,
			 public AutoWirable<IGame, Game, IScene, IInputHandler, CursorController>
{
public:
	explicit Game(std::shared_ptr<IScene> scene,
				  std::shared_ptr<IInputHandler> input_handler,
				  std::shared_ptr<CursorController> cursor_controller);

	void run() override;

private:
	std::shared_ptr<IScene> _scene;
	std::shared_ptr<IInputHandler> _input_handler;
	std::shared_ptr<CursorController> _cursor_controller;
};