-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathpatterns.h
32 lines (19 loc) · 823 Bytes
/
patterns.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#ifndef _patterns_h_
#define _patterns_h_
#include "globals.h"
#include "Slider.h"
#include <iostream>
void DetectCompressedStream(Beatmap &beatmap, int &i);
void DetectStacks(Beatmap &beatmap, int &i);
bool DetectStream(Beatmap &beatmap, int &i);
bool isInStream(Beatmap &beatmap, int i);
bool isInStack(Beatmap &beatmap, int i);
void AnalyzePatterns(Beatmap &beatmap);
void FindPatterns(Beatmap &beatmap);
// --> patterns
std::vector<std::tuple<int, int, int, int>> getPattern(std::vector<HitObject> &obj, int time, int index, double CS, unsigned int quant = 3);
// --> hitobjects
std::pair<int, int> getVisiblityTimes(HitObject &obj, double AR, bool hidden, double opacityStart, double opacityEnd);
double getVelocity(HitObject &obj);
int getHitcircleAt(std::vector<HitObject> &hitcircles, int time);
#endif