#ifndef GAME_HPP #define GAME_HPP #include #include "hotbar.hpp" #include "world.hpp" #include "player.hpp" #include "shader.hpp" #include "control.hpp" #include "button.hpp" #include typedef enum{CREATIVE,SPECTATOR} GameMode; class Game:public Control{ private: //Everything for the pause menu static Button continueButton; static bool continu; static bool quit; static Button quitButton; static bool paused; static World world; static Player player; std::string filename; static GameMode gameMode; Hotbar hotbar; Shader shader; unsigned int blockTexture; static void MousePressed(GLFWwindow* win, int button, int action, int mods); static void MouseScroll(GLFWwindow* win, double _, double yoffset); static void KeyPressed(GLFWwindow* win, int key,int , int action, int ); void handleInput(GLFWwindow* win); public: Game(GLFWwindow* win, std::string _filename); Control* handle(GLFWwindow* win); void draw(float screenRatio); void shutdown(); }; #endif