-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCardHandler.h
More file actions
41 lines (35 loc) · 830 Bytes
/
Copy pathCardHandler.h
File metadata and controls
41 lines (35 loc) · 830 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#pragma once
#include"Player.h"
#include"Card.h"
#include"Game.h"
#include<string>
#include<vector>
#include"Utilities.h"
class CardHandler {
public:
static std::vector<Card> commCards;
static std::vector<Card> chanceCards;
static std::vector<Card> collectableCards;
CardHandler(std::vector<Player>&, Game&, Player&, Card);
void handle();
void handleGetOutJail();
void handleGoBack();
void handleGetPlayerCash();
void handlePayEach();
void handleWinCard();
void handleLose();
void handleGoToJail();
void handleAdvanceGo();
void handlePayCard();
void handleGetCard();
static void addCard(Card card);
void drawCard(std::string type);
void tryForCollectableCard();
static void setCards();
private:
std::vector<Player>& curPlayers;
Game& game;
Player& player;
Card card;
std::vector<std::string> out;
};