-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontroller.h
More file actions
40 lines (33 loc) · 819 Bytes
/
controller.h
File metadata and controls
40 lines (33 loc) · 819 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
/*
* Straights card game implementation
* References MVC lecture code example
*
* Controller class. Is responsible for translating UI events (from the View)
* into method calls to the Model.
*
*/
#ifndef CONTROLLER_H
#define CONTROLLER_H
#include <string>
class Model;
class Controller {
Model *model;
public:
Controller( Model* );
void newGame(int seed);
void player1Type(char type);
void player2Type(char type);
void player3Type(char type);
void player4Type(char type);
void play(std::string card);
void discard(std::string card);
void rageQuit();
void displayDeck();
void displayClubs();
void displayDiamonds();
void displayHearts();
void displaySpades();
void displayHand();
void displayLegalPlays();
}; // Controller
#endif