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

31 lines
687 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 ClassicSprite;
class ClassicAnimationScenario;
struct ArrowElement
{
std::shared_ptr<ClassicSprite> sprite;
std::array<std::shared_ptr<ClassicAnimationScenario>, 5> animations;
2021-12-29 09:59:18 -05:00
char pressed_as = ' ';
2021-12-29 09:59:18 -05:00
kku::Point position;
std::vector<kku::Point> falling_curve_interpolation;
std::array<char, 2> keys;
Type type = Type::NONE;
bool pressed = false;
// Each note may consist of several buttons.
// For example, ↑ → or ↓ → ←
// Note Element represents this idea.
};