-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGame.h
47 lines (31 loc) · 847 Bytes
/
Game.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
//
// // Jack Bennett 0370668//
//
#include<cstdlib>
#include<fstream>
#include "Deck.h"
#include "HumanPlayer.h"
//#include "RandomPlayer.h"
#ifndef HEARTS_GAME_H
#define HEARTS_GAME_H
class Game : public std::vector<const char*> {
public:
//default constructor
Game();
//deconstructor
~Game();
//select players for game
void selectPlayers(Deck& deck, vector<Player*>& plist);
//play game function
void play(vector<Player*>&, int, int);
//function to announce winner of game
void announceWinner();
using vector<const char*>::push_back;
using vector<const char*>::size;
using vector<const char*>::at;
using vector<const char*>::begin;
using vector<const char*>::empty;
using vector<const char*>::erase;
using vector<const char*>::clear;
};
#endif //HEARTS_GAME_H