-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathview.h
More file actions
35 lines (26 loc) · 675 Bytes
/
Copy pathview.h
File metadata and controls
35 lines (26 loc) · 675 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
/*
* Straights card game implementation
* References MVC lecture code example
*
* View class. Is responsible for player commands.
*
*/
#ifndef VIEW_H
#define VIEW_H
#include "observer.h"
class Controller;
class Model;
class View : public Observer {
// Observer Pattern: to access Model accessors without having to downcast subject
Model *model;
// Strategy Pattern member (plus signal handlers)
Controller *controller;
int seed;
// User Input
void nextCommand();
public:
View( int, Controller*, Model*);
virtual ~View();
virtual void update(); // Observer Pattern: concrete update() method
}; // View
#endif