-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathshareddata.h
45 lines (35 loc) · 1.1 KB
/
shareddata.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
45
#ifndef SHAREDDATA_H
#define SHAREDDATA_H
#include "defines.h"
#include "file/file_io.h"
#include "objects/object.h"
class object; // forward declaration
class SharedData
{
public:
static SharedData* get_instance();
static int get_max_fps();
static double get_movement_multiplier();
private:
SharedData();
SharedData(SharedData const&){}; // copy constructor is private
SharedData& operator=(SharedData const&){ return *this; }; // assignment operator is private
private:
static SharedData* _instance;
static int max_fps;
static double fps_movement_multiplier;
public:
struct CURRENT_FILE_FORMAT::st_game_config game_config;
std::vector<object*> active_object_list; // contains all on-screen and active objects
double scaleX;
double scaleY;
st_size scale_window_size;
bool changed_window_size;
short current_language = LANGUAGE_AUTODETECT;
bool is_showing_boss_intro = false;
bool leave_stage_request = false;
int version_number = 1;
std::string version_number_str = "1";
bool is_fire_tv = false;
};
#endif // SHAREDDATA_H