-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMatch.cpp
55 lines (43 loc) · 908 Bytes
/
Match.cpp
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
#include "Match.h"
Match::Match(
unsigned short red1,
unsigned short red2,
unsigned short red3,
unsigned short blue1,
unsigned short blue2,
unsigned short blue3,
double redWinProbability
) {
this->red1 = red1;
this->red2 = red2;
this->red3 = red3;
this->blue1 = blue1;
this->blue2 = blue2;
this->blue3 = blue3;
this->redWinProbability = redWinProbability;
}
Match::~Match() {};
unsigned short Match::getRed1() const {
return red1;
}
unsigned short Match::getRed2() const {
return red2;
}
unsigned short Match::getRed3() const {
return red3;
}
unsigned short Match::getBlue1() const {
return blue1;
}
unsigned short Match::getBlue2() const {
return blue2;
}
unsigned short Match::getBlue3() const {
return blue3;
}
double Match::getRedWinProbability() const {
return redWinProbability;
}
double Match::getBlueWinProbability() const {
return 1 - redWinProbability;
}