]> git.lizzy.rs Git - dragonblocks-bedrock.git/blob - src/game.h
Some structure Changes
[dragonblocks-bedrock.git] / src / game.h
1 #ifndef _GAME_H_
2 #define _GAME_H_
3 #include <string>
4 #include <cstdio>
5 #include "map.h"
6 #include "inventory.h"
7 #include "player.h"
8
9 #define WARNING 1
10 #define ERROR 2
11 #define INFO -1
12 #define EASTEREGG 17
13 #define LOG 0
14
15 #define CODE_BLACK 0
16 #define CODE_RED 1
17 #define CODE_GREEN 2
18 #define CODE_ORANGE 3
19 #define CODE_BLUE 4
20 #define CODE_VIOLET 5
21 #define CODE_LIGHTBLUE 6
22 #define CODE_GREY 7
23
24 #define VERSION "3.2-dev"
25
26 class Game{
27         public:
28                 static int *argc;
29                 static char **argv;
30                 static int seed;
31                 static std::string worlddir;
32                 static std::string logfile_path;
33                 static FILE *logfile;
34                 static Map *map;
35                 static void save();
36                 static void log(std::string);
37                 static void log(std::string, int);
38                 static void help();
39                 static void version();
40                 static void worldlist();
41                 static std::string userdir;
42                 static Player *player;
43 };
44
45 #endif