#ifndef GAME_H #define GAME_H #include #include #include "carte.h" #include "camera.h" #include "editeur.h" #include "Gui.h" enum gameState {editorState, menuState}; class GameState; class Game { public: Game(); void run(); void changeState(gameState type); sf::Time deltaTime() { return frameTime; } sf::RenderWindow m_window; private: void render(); void manageInput(); void update(); private: bool m_init; int m_screenWidth, m_screenHeight; sf::Clock clock; sf::Time frameTime; std::vector> states; }; #endif