-
Notifications
You must be signed in to change notification settings - Fork 3
/
Player.h
39 lines (37 loc) · 863 Bytes
/
Player.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
#include "Deck.h"
#include <iostream>
#include "Card.h"
#ifndef PLAYER_H_
#define PLAYER_H_
class Player{
private:
string name;
int totalChips=0;
int tempBetPool=0;
int prevBet = 0;
Card handOne;
Card handTwo;
public:
Player(string name);
void addOne(Card temp);
void addTwo(Card temp);
int getTotalChips();
string getName();
Card getHandOne();
Card getHandTwo();
int getTempPool();
int getPrevBet();
void setPrevBet(int num);
void setTotalChips(int chips);
void setTempPool(int bet);
void resetTempPool();
void raise(int newBet);
void check();
void fold();
void blind(int bet);
Deck finalHands();
void gameOver();
void call(Player* opp);
bool decision(int pot, int sb, int phase, Player * hum, Card Card2, Card Card3, Card Card4, Card Card5, Card Card6);
};
#endif