-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathreportnodes.cpp
More file actions
69 lines (65 loc) · 1.43 KB
/
reportnodes.cpp
File metadata and controls
69 lines (65 loc) · 1.43 KB
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
57
58
59
60
61
62
63
64
65
66
67
68
#include<reportnodes.h>
//constructors&destructor
ReportNodes::ReportNodes() {
moneySpent = 0;
chancesSpent = 0;
moneyEarned = 0;
round = 0;
plinkoResult = "N/A";
rouletteResult = "N/A";
next = nullptr;
}
ReportNodes::ReportNodes(int round) {
moneySpent = 0;
chancesSpent = 0;
moneyEarned = 0;
this->round = round;
plinkoResult = "N/A";
rouletteResult = "N/A";
next = nullptr;
}
ReportNodes::~ReportNodes() {}
//setters
void ReportNodes::setRound(int currRound) {
round = currRound;
}
void ReportNodes::setMoneySpent(int money) {
moneySpent = money;
}
void ReportNodes::setChancesSpent(int chances) {
chancesSpent = chances;
}
void ReportNodes::setMoneyEarned(int money) {
moneyEarned = money;
}
void ReportNodes::setPResult(string result) {
plinkoResult = result;
}
void ReportNodes::setRResult(string result) {
rouletteResult = result;
}
void ReportNodes::setNext(ReportNodes *nextNode) {
next = nextNode;
}
//getters
int ReportNodes::getRound() const {
return round;
}
int ReportNodes::getMoneySpent() const{
return moneySpent;
}
int ReportNodes::getChancesSpent() const{
return chancesSpent;
}
int ReportNodes::getMoneyEarned() const{
return moneyEarned;
}
string ReportNodes::getPResult() const {
return plinkoResult;
}
string ReportNodes::getRResult() const {
return rouletteResult;
}
ReportNodes* ReportNodes::getNext() const {
return next;
}