-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathScore_Display.h
More file actions
73 lines (53 loc) · 1.82 KB
/
Score_Display.h
File metadata and controls
73 lines (53 loc) · 1.82 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/********************************************************************************
* NAME: Marcus Overzet (523 00 2848)
* CLASS: CSCE 121-514
* DUE DATE: Wednesday, April 27, 2017
* FILE NAME: Score_Display.h
********************************************************************************/
/*
* create constructor (Point,int,int, int difficulty_level, user_score to_add_in)
* or (Point,int,int, int difficulty_level) and later use add(us)
*
* for our case, use the later.
*/
#ifndef MDO_SCOREDISPLAY_H
#define MDO_SCOREDISPLAY_H
#include "std_lib_facilities_4.h"
#include "GUI.h"
#include "Graph.h"
#include "Window.h"
#include "mdo_fileio.h"
using namespace Graph_lib;
// callback for leaving this screen
static void cb_proceed(Address,Address);
//static void cb_quit(Address, Address);
class Score_Display_window : public Graph_lib::Window {
// things to draw on our window.
Graph_lib::Text title_text;
Graph_lib::Text score0;
Graph_lib::Text score1;
Graph_lib::Text score2;
Graph_lib::Text score3;
Graph_lib::Text score4;
Graph_lib::Button button_proceed;
// difficulty level for this screen
int difficulty;
// internal logic
mdo::score_io my_io;
void update();
void proceed();
string playername;
bool button_pushed;
public:
// constructor.
// MAY PUT BACK! CHECK CODE TO SEE IF IT WORKS!
//Score_Display_window(Point xy, int w, int h, int diff, mdo::user_score us);
Score_Display_window(Point xy, int w, int h, int diff , string& playername);
bool wait_for_button();
// return the difficulty level for this screen
int get_level() { return difficulty; };
// callback functions. empty (for now)
void go_to_main() {return;};
void add( mdo::user_score );
};
#endif