-
Notifications
You must be signed in to change notification settings - Fork 0
/
Core.hpp
48 lines (36 loc) · 861 Bytes
/
Core.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
#pragma once
#include "Player.hpp"
#include "Croupier.hpp"
#include "Bet.hpp"
#include <string>
namespace Core
{
using namespace std;
class Core
{
private:
Player::Player* Player;
Croupier::Croupier* Croupier;
vector<Bet::Bet*>* Bets;
public:
Core() :
Player(new Player::Player()),
Croupier(new Croupier::Croupier()),
Bets(new vector<Bet::Bet*>()) {}
Core(float money, string name) :
Player(new Player::Player(money, name)),
Croupier(new Croupier::Croupier()),
Bets(new vector<Bet::Bet*>()) {}
Player::Player* GetPlayer();
Croupier::Croupier* GetCroupier();
vector<Bet::Bet*>* GetBets();
void NewBet(float baseBet);
bool CanNewBet(float baseBet);
void Hit(Bet::Bet* bet);
void Stand(Bet::Bet* bet);
void Double(Bet::Bet* bet);
void Split(Bet::Bet* bet);
void UpdateGame();
~Core();
};
}