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

32 lines
779 B
C
Raw Normal View History

#pragma once
#include "classicmode/classicactions.h"
2021-12-29 09:59:18 -05:00
#include "core/gameevent.h"
#include "core/point.h"
#include <memory>
#include <vector>
#include <array>
class ClassicNoteGraphics;
class ClassicAnimationScenario;
struct ArrowElement
{
std::shared_ptr<ClassicNoteGraphics> sprite;
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-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;
Type type = Type::NONE;
bool pressed = false;
// Each note may consist of several buttons.
// For example, ↑ → or ↓ → ←
// Note Element represents this idea.
};