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

31 lines
882 B
C
Raw Normal View History

2021-09-28 05:48:06 +02:00
#pragma once
#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;
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
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-09-28 05:48:06 +02:00
bool allElementsPressed() const;
2022-01-11 21:15:24 +01:00
bool isPressedAs(kku::SystemEvent::Key::Code key) const;
2021-10-04 17:30:21 +02:00
inline bool isHold() const;
2021-09-28 05:48:06 +02:00
private:
2021-09-28 05:48:06 +02:00
std::vector<ArrowElement> _elements;
bool _is_hold;
};
using ArrowElements = std::vector<ArrowElement>;