2021-10-04 17:30:21 +02:00
|
|
|
#pragma once
|
2021-05-28 19:50:57 +02:00
|
|
|
|
2021-05-31 19:04:16 +02:00
|
|
|
#include <map>
|
2021-08-09 20:59:40 +02:00
|
|
|
#include <memory>
|
2021-09-14 21:02:23 +02:00
|
|
|
|
|
|
|
#include "core/game.h"
|
|
|
|
#include "core/timeline.h"
|
2022-02-10 00:30:49 +01:00
|
|
|
#include "classicmode/classicnote.h"
|
2021-11-17 23:14:52 +01:00
|
|
|
#include "classicmode/classicactions.h"
|
2021-09-14 21:02:23 +02:00
|
|
|
|
2021-06-16 19:11:00 +02:00
|
|
|
class ClassicGraphicsManager;
|
2021-10-04 17:30:21 +02:00
|
|
|
class HoldManager;
|
2021-06-07 20:19:58 +02:00
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
class ClassicGame final : public kku::Game
|
2021-05-28 19:50:57 +02:00
|
|
|
{
|
|
|
|
public:
|
2021-12-29 15:59:18 +01:00
|
|
|
explicit ClassicGame(const std::shared_ptr<kku::Timeline<ClassicNote>>& timeline,
|
2021-12-28 19:04:50 +01:00
|
|
|
const std::shared_ptr<ClassicGraphicsManager>& graphics_manager);
|
2021-06-09 20:08:58 +02:00
|
|
|
virtual ~ClassicGame() override;
|
2021-05-28 19:50:57 +02:00
|
|
|
|
|
|
|
virtual void run() override;
|
|
|
|
|
2021-12-29 15:59:18 +01:00
|
|
|
virtual void input(kku::GameEvent&& inputdata) override;
|
|
|
|
virtual void update(kku::UpdateData&& updatedata) override;
|
2021-12-28 19:04:50 +01:00
|
|
|
virtual void display() const override;
|
2021-05-31 19:04:16 +02:00
|
|
|
|
|
|
|
private:
|
2021-12-29 15:59:18 +01:00
|
|
|
const std::shared_ptr<kku::Timeline<ClassicNote>> _timeline;
|
2021-12-28 19:04:50 +01:00
|
|
|
const std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
|
2022-02-10 00:30:49 +01:00
|
|
|
const std::shared_ptr<HoldManager> _hold_manager;
|
2021-05-28 19:50:57 +02:00
|
|
|
};
|