-
Notifications
You must be signed in to change notification settings - Fork 0
/
matchnumber.h
43 lines (35 loc) · 901 Bytes
/
matchnumber.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
#ifndef MATCHNUMBER_H
#define MATCHNUMBER_H
#include <qstring.h>
class MatchNumber {
public:
enum MatchType {
PRACTICE,
QUALIFIER,
QUARTER_FINAL,
SEMI_FINAL,
FINAL
};
MatchNumber(const QString& text);
MatchNumber(int num);
/**
* @brief which match this is
* @return an integer greater than 0. 1 for the first match, 77 for the seventy-seventh.
*/
int matchNum();
/**
* @brief Indicates which rematch this is.
* @return If this isn't a rematch, returns 0. If it is, returns 1 for the first rematch, 2 for the second, etc.
*/
int rematchCount();
/**
* @brief indicates whether the match took place during practice rounds, quarter-finals, semi-finals, or finals
* @return an enum value indicating which phase of the competition the match took part in
*/
MatchType matchType();
private:
int number;
int rematch;
MatchType type;
};
#endif // MATCHNUMBER_H