project-kyoku/src/modes/classicmode/game/holdmanager.h

23 lines
399 B
C
Raw Normal View History

2021-09-28 05:48:06 +02:00
#pragma once
2021-12-29 15:59:18 +01:00
#include "core/gameevent.h"
2021-09-28 05:48:06 +02:00
#include <vector>
2021-10-04 17:30:21 +02:00
#include <memory>
2021-09-28 05:48:06 +02:00
class ClassicArrowNote;
2021-10-04 17:30:21 +02:00
class ClassicGraphicsManager;
2021-09-28 05:48:06 +02:00
2021-10-04 17:30:21 +02:00
class HoldManager
2021-09-28 05:48:06 +02:00
{
public:
void emplace(ClassicArrowNote* note);
2021-12-29 15:59:18 +01:00
void checkRelease(char released_key);
2021-09-28 05:48:06 +02:00
2021-10-04 17:30:21 +02:00
void drawHoldBar();
2021-09-28 05:48:06 +02:00
private:
std::vector<ClassicArrowNote*> _notes_on_hold;
2021-10-04 17:30:21 +02:00
std::shared_ptr<ClassicGraphicsManager> _graphics_manager;
2021-09-28 05:48:06 +02:00
};