-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPlayer.h
52 lines (41 loc) · 903 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
40
41
42
43
44
45
46
47
48
49
50
51
52
#pragma once
#include <string>
#include <vector>
#include "Card.h"
#include "Score.h"
class Player
{
public:
Player(std::string name, int id);
void TakeACard(Card* card);
void ShowMyCard();
Card* DrawMyCard(int i);
bool pibak();
bool gwangbak();
void PutACardOnFloor(Card* card);
void ShowMyCardOnFloor();
Card* SubPi();
int CurrentScore();
std::string name();
std::vector<Card*>& cards();
std::vector<Card*>& floorcards();
int MaxScore();
void SetMaxScore(int score);
int FinalScore();
int pi_score();
int gwang_score();
int go();
void setGo();
int money_rate(bool pibak, bool gwangbak);
int id();
private:
std::vector<Card*> cards_;
std::vector<Card*> floorcards_;
std::string name_;
Score* score = new Score();
int go_;
bool pibak_;
bool gwangbak_;
int max_score_;
int id_;
};