2021-12-28 13:04:50 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "classicmode/classicactions.h"
|
|
|
|
|
2021-12-29 09:59:18 -05:00
|
|
|
#include "core/gameevent.h"
|
|
|
|
#include "core/point.h"
|
2021-12-28 13:04:50 -05:00
|
|
|
|
|
|
|
#include <memory>
|
|
|
|
#include <vector>
|
|
|
|
#include <array>
|
|
|
|
|
2022-03-10 12:45:19 -05:00
|
|
|
class ClassicNoteGraphics;
|
2021-12-28 13:04:50 -05:00
|
|
|
class ClassicAnimationScenario;
|
|
|
|
|
|
|
|
struct ArrowElement
|
|
|
|
{
|
2022-03-10 12:45:19 -05:00
|
|
|
std::shared_ptr<ClassicNoteGraphics> sprite;
|
2021-12-28 13:04:50 -05:00
|
|
|
std::array<std::shared_ptr<ClassicAnimationScenario>, 5> animations;
|
2022-01-11 15:15:24 -05:00
|
|
|
|
|
|
|
kku::SystemEvent::Key::Code pressed_as = kku::SystemEvent::Key::Code::Unknown;
|
2021-12-28 13:04:50 -05:00
|
|
|
|
2021-12-29 09:59:18 -05:00
|
|
|
kku::Point position;
|
|
|
|
std::vector<kku::Point> falling_curve_interpolation;
|
2022-01-11 15:15:24 -05:00
|
|
|
std::array<kku::SystemEvent::Key::Code, 2> keys;
|
2021-12-28 13:04:50 -05:00
|
|
|
Type type = Type::NONE;
|
|
|
|
bool pressed = false;
|
|
|
|
|
|
|
|
// Each note may consist of several buttons.
|
|
|
|
// For example, ↑ → or ↓ → ←
|
|
|
|
// Note Element represents this idea.
|
|
|
|
};
|