project-kyoku/src/modes/classicmode/graphics/classicgraphicsmanager.h

30 lines
850 B
C
Raw Normal View History

2021-12-27 19:41:25 +01:00
#pragma once
#include "core/time.h"
2022-02-23 23:45:43 +01:00
#include "core/gameevent.h"
2021-12-27 19:41:25 +01:00
#include <memory>
2021-12-27 19:41:25 +01:00
2022-05-17 06:22:18 +02:00
class ClassicArrowNote;
// class ClassicSliderNote;
class ClassicGraphicsManager : public std::enable_shared_from_this<ClassicGraphicsManager>
2021-12-27 19:41:25 +01:00
{
public:
virtual ~ClassicGraphicsManager() = default;
explicit ClassicGraphicsManager(const kku::microsec& visibility_offset) :
2021-12-27 19:41:25 +01:00
_visibility_offset(visibility_offset)
{}
2022-02-06 02:33:09 +01:00
virtual void input(kku::GameEvent&& input) = 0;
virtual void display() const = 0;
2022-05-17 06:22:18 +02:00
virtual void update(const kku::microsec& offset, ClassicArrowNote* note) = 0;
// virtual void update(const kku::microsec& offset, ClassicSliderNote* note) = 0;
2021-12-27 19:41:25 +01:00
2022-05-18 01:47:47 +02:00
virtual void draw(const ClassicArrowNote* note) const = 0;
// virtual void draw(ClassicSliderNote* note) const = 0;
2021-12-27 19:41:25 +01:00
protected:
2021-12-29 15:59:18 +01:00
kku::microsec _visibility_offset;
2021-12-27 19:41:25 +01:00
};