-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathparticipant.hpp
62 lines (45 loc) · 1.08 KB
/
participant.hpp
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
/*
* kjs170430_Project4/participant.hpp
* Copyright 2017, Kristopher Sewell, All rights reserved.
*
* Course: CE1337 Section: 501 Project: 4
*/
#ifndef PARTICIPANT_H_INCL_GUARD
#define PARTICIPANT_H_INCL_GUARD
#include <iostream>
#include <string>
#include "bettingSystem.hpp"
#include "betmessage.hpp"
using std::string;
class BetMessage;
class BettingSystem;
class Participant {
private:
string m_name;
int m_bank;
int m_totalGain;
int m_spinGain;
BetMessage ** m_bets;
int SIZE;
BettingSystem * m_CurrentBetTable;
//declared private for use by betting system
int getBetNum();
public:
Participant();
Participant(BettingSystem*, string);
~Participant();
void setName(string);
void setName(); // When called with no args will prompt for a name before setting m_name
string getName() const;
int getBank() const;
int getTotalGain() const;
int getSpinGain() const;
void PayOut(int);
void setBetArray();
void delBetArray();
void initBank();
void resetSpin();
int getSIZE() const;
BetMessage* getBet(int);
};
#endif