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

34 lines
989 B
C++

#pragma once
#include "core/time.h"
#include "classicmode/classicactions.h"
#include <memory>
#include <vector>
struct ArrowElement;
struct MockElement;
class ClassicGraphicsManager : public std::enable_shared_from_this<ClassicGraphicsManager>
{
public:
virtual ~ClassicGraphicsManager() = default;
explicit ClassicGraphicsManager(const kku::microsec& visibility_offset) :
_visibility_offset(visibility_offset)
{}
virtual void input(kku::GameEvent&& input) = 0;
virtual void display(const std::vector<ArrowElement>& elements) const = 0;
virtual void setGraphics(std::vector<ArrowElement>& elements, kku::TimeRange&& range) = 0;
virtual void display(const std::vector<MockElement>& elements) const = 0;
virtual void setGraphics(std::vector<MockElement>& elements, kku::TimeRange&& range) = 0;
virtual void display() const = 0;
virtual void update(const kku::microsec& offset) = 0;
protected:
kku::microsec _visibility_offset;
};