2021-09-27 23:48:06 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/inputtype.h"
|
|
|
|
#include <vector>
|
2021-10-04 11:30:21 -04:00
|
|
|
#include <memory>
|
2021-09-27 23:48:06 -04:00
|
|
|
|
|
|
|
class ClassicArrowNote;
|
2021-10-04 11:30:21 -04:00
|
|
|
class ClassicGraphicsManager;
|
2021-09-27 23:48:06 -04:00
|
|
|
|
2021-10-04 11:30:21 -04:00
|
|
|
class HoldManager
|
2021-09-27 23:48:06 -04:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
void emplace(ClassicArrowNote* note);
|
|
|
|
void checkRelease(sf::Keyboard::Key released_key);
|
|
|
|
|
2021-10-04 11:30:21 -04:00
|
|
|
void drawHoldBar();
|
|
|
|
|
2021-09-27 23:48:06 -04:00
|
|
|
private:
|
|
|
|
std::vector<ClassicArrowNote*> _notes_on_hold;
|
2021-10-04 11:30:21 -04:00
|
|
|
std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
|
2021-09-27 23:48:06 -04:00
|
|
|
};
|