-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjudge.h
56 lines (42 loc) · 846 Bytes
/
judge.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
#ifndef JUDGE_H
#define JUDGE_H
#include<iostream>
#include<opencv2/opencv.hpp>
struct BuffDoc
{
cv::Point2f center;
std::vector<cv::RotatedRect> full_blade;
std::vector<cv::RotatedRect> half_blade;
cv::RotatedRect armor;
};
struct BladeInfo
{
int total_frame = 0;
float angle;
};
struct BreakInfo
{
int total_frame = 0;
float angle;
};
class BuffJudge
{
public:
BuffJudge();
~BuffJudge();
void rotate_state_judge();
void rule_assure();
cv::Point2f aim_get();
int frame_start, frame_start_assure = 0, frame_end_assure = 0;
int rotate_state, state_finish = 0;
BuffDoc buff_doc_pre, buff_doc_after, buff_doc_now, buff_doc_temp;
BladeInfo blades[5];
BreakInfo break_period[4];
int shine_state;
std::vector<int> buff_shine_states;
int predicting = 0;
int center_get = 1;
float radius;
private:
};
#endif //JUDGE_H