]> git.lizzy.rs Git - dragonblocks-bedrock.git/blobdiff - src/game.h
Upload Files
[dragonblocks-bedrock.git] / src / game.h
index 53ac862981488706b9a4210d47db1fdacce0a981..3dc391a0220ca49f2669ebb01e62bebd2db33a99 100644 (file)
@@ -2,9 +2,9 @@
 #define _GAME_H_
 #include <string>
 #include <cstdio>
-
 #include "map.h"
 #include "inventory.h"
+#include "player.h"
 
 #define WARNING 1
 #define ERROR 2
 #define EASTEREGG 17
 #define LOG 0
 
-#define VERSION "3.0"
+#define CODE_BLACK 0
+#define CODE_RED 1
+#define CODE_GREEN 2
+#define CODE_ORANGE 3
+#define CODE_BLUE 4
+#define CODE_VIOLET 5
+#define CODE_LIGHTBLUE 6
+#define CODE_GREY 7
 
-#define BLACK 0
-#define RED 1
-#define GREEN 2
-#define ORANGE 3
-#define BLUE 4
-#define VIOLET 5
-#define LIGHTBLUE 6
-#define GREY 7
+#define VERSION "3.1-dev"
 
 class Game{
        public:
                static int *argc;
                static char **argv;
                static int seed;
-               static std::string mapfile;
-               static std::string logfile;
-               static FILE *logfile_fd;
+               static std::string worlddir;
+               static std::string logfile_path;
+               static FILE *logfile;
                static Map *map;
+               static void save();
                static void log(std::string);
                static void log(std::string, int);
                static void help();
                static void version();
                static void worldlist();
-               static Inventory *inventory;
+               static std::string userdir;
+               static Player *player;
 };
 
 #endif