2021-09-28 05:48:06 +02:00
|
|
|
#pragma once
|
|
|
|
|
2021-12-28 19:04:50 +01:00
|
|
|
#include "arrowelement.h"
|
2021-09-28 05:48:06 +02:00
|
|
|
#include "classicnote.h"
|
2021-12-29 15:59:18 +01:00
|
|
|
|
2021-09-28 05:48:06 +02:00
|
|
|
#include "initializers/arrownoteinitializer.h"
|
|
|
|
|
|
|
|
class ClassicArrowNote : public ClassicNote
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
explicit ClassicArrowNote(ArrowNoteInitializer&& init);
|
|
|
|
virtual ~ClassicArrowNote() = default;
|
|
|
|
|
2021-12-23 18:33:24 +01:00
|
|
|
virtual void putToGame() override;
|
2021-12-29 15:59:18 +01:00
|
|
|
virtual void update(const kku::microsec &music_offset) override;
|
|
|
|
virtual void input(kku::GameEvent&& input) override;
|
2021-09-28 05:48:06 +02:00
|
|
|
|
2021-12-28 19:04:50 +01:00
|
|
|
virtual void display(const ClassicGraphicsManager * const manager) const override;
|
2021-12-29 15:59:18 +01:00
|
|
|
virtual void setGraphics(ClassicGraphicsManager * const manager, kku::TimeRange&& range) override;
|
2021-12-23 18:33:24 +01:00
|
|
|
|
2021-09-28 05:48:06 +02:00
|
|
|
bool allElementsPressed() const;
|
2021-12-29 15:59:18 +01:00
|
|
|
bool isPressedAs(char key) const;
|
2021-10-04 17:30:21 +02:00
|
|
|
inline bool isHold() const;
|
2021-09-28 05:48:06 +02:00
|
|
|
|
2021-12-23 18:33:24 +01:00
|
|
|
private:
|
2021-09-28 05:48:06 +02:00
|
|
|
std::vector<ArrowElement> _elements;
|
|
|
|
bool _is_hold;
|
|
|
|
};
|
2021-12-23 18:33:24 +01:00
|
|
|
|
2021-12-28 19:04:50 +01:00
|
|
|
using ArrowElements = std::vector<ArrowElement>;
|