-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
43 lines (35 loc) · 876 Bytes
/
common.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
#pragma once
#include <iostream>
#include <string>
#include <vector>
#include <SFML/Graphics.hpp>
#include <queue>
#include <stack>
#include <fstream>
#include <sstream>
#include <iomanip>
#include "helper.h"
constexpr float SIZE = 25.f;
enum class object_type {vertex, edge, none};
enum class mouse_mode {insert, remove, select, move, edge, bfs};
enum class vertex_color {white, gray, black};
namespace strings
{
const char insert[] = "INSERT MODE";
const char remove[] = "REMOVE MODE";
const char select[] = "SELECT MODE";
const char move[] = "MOVE MODE";
const char edges[] = "ADD EDGES MODE";
const char bfs[] = "BREADTH-FIRST SEARCH";
}
class font
{
public:
static sf::Font* get_font();
private:
font() {}
static sf::Font* default_font;
};
class visual_object : public sf::Drawable, public sf::Transformable
{
};