-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPlayer.h
More file actions
24 lines (21 loc) · 708 Bytes
/
Player.h
File metadata and controls
24 lines (21 loc) · 708 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "Card.h"
class Player
{
friend void gameplay(Player &player, Player &dealer, Deck &controller);
friend void gameinfo(Player &player, Player &dealer, Deck &controller);
friend void showinfo(Player &player, Player &dealer, Deck &controller);
private:
string Name;
int Money;
int Bet;
Card Hand; //player or dealer's hand.
public:
Player(string name, int money, int bet);
Player();
void win(); //player win a round
void lose();//player lose a round
int money();//return player's money
int bet(); //return player's wager
void reset(Deck &controller);//reset player or dealer's hand
void Stand(Player &player, Player &dealer, Deck &controller);//player's Stand
};