-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathiceCreamDisplay.h
More file actions
32 lines (27 loc) · 771 Bytes
/
iceCreamDisplay.h
File metadata and controls
32 lines (27 loc) · 771 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
#ifndef ICECREAMDISPLAY_H
#define ICECREAMDISPLAY_H
#include "display.h"
#include <vector>
#include <memory>
class GameObject;
class BorderDisplay;
class StatusDisplay;
class GameDisplay;
using namespace std;
class IceCreamDisplay {
shared_ptr<BorderDisplay> display_border;
shared_ptr<StatusDisplay> display_status;
shared_ptr<GameDisplay> display_objects;
public:
IceCreamDisplay();
void render();
void updateStatus(vector<string> messages);
vector<string> getStatus();
void updateObjects(vector<shared_ptr<GameObject>> objects);
void vanishUpdate(int numOfPlatformsPassed);
void hitFlyUpdate(int numOfPlatformsPassed);
void inProgress();
private:
void updateHelper(string msg1, string msg2, string msg3);
};
#endif