-
Notifications
You must be signed in to change notification settings - Fork 0
/
player.hpp
executable file
·48 lines (43 loc) · 928 Bytes
/
player.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
#ifndef PLAYER_H
#define PLAYER_H
#include <list>
#include <iostream>
#include <stdlib.h>
#include "card.hpp"
#include "SFML/Graphics.hpp"
class player
{
public:
player();
player(int x, int y);
void win_money(int x);
int show_money();
void get_score(int x);
void get_score(int x, int y);
int show_score();
void get_bet(int x);
int show_bet();
void get_position(int x, int y);
int show_x();
int show_y();
void reset_point();
void draw( sf::RenderWindow *window,list<card> card );
void draw_dealer( sf::RenderWindow *window,list<card> card );
void hit();
void hit1();
list<card> get_list();
sf::Sprite get_draw();
protected:
int total_score, total_score2;
int total_money;
int bet_money;
int pos_x;
int pos_y;
int times;
sf::Texture table;
sf::Sprite tab;
list<card> Card;
list<card>::reverse_iterator p;
data hold_card;
};
#endif