Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifndef GAME_H
- #define GAME_H
- #include <SFML/Graphics.hpp>
- #include <memory>
- #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<std::unique_ptr<GameState>> states;
- };
- #endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement