-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathRunner.h
44 lines (32 loc) · 845 Bytes
/
Runner.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
#ifndef RUNNER_H
#define RUNNER_H
#include "grid.h"
#include "Iter_Window.h"
#include "Fractal_Template.h"
class Runner {
private:
sf::RenderWindow& m_window;
sf::Font& m_font;
Iter_Window m_iter_window;
Fractal_Template m_base;
Line::line_type m_currentLine;
size_t m_activeBox;
std::vector<GUI_Element*> m_elements;
InputBox m_success; // Reports success/failure of file save/load
// The grid itself
Grid m_grid;
bool m_startedTemplate;
bool m_finishedTemplate;
bool m_drawingLine;
Line m_line;
bool m_mouseHeld;
void LoadFile();
void SaveFile();
public:
Runner(sf::RenderWindow& window, sf::RenderWindow& iter_window, sf::Font& font);
~Runner();
void UpdateLineType(int newTypeButton);
void HandleEvents();
void Draw();
};
#endif // RUNNER_H