Advertisement
Guest User

game.h

a guest
Jul 16th, 2016
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.59 KB | None | 0 0
  1. #pragma once
  2. #include "Window.h"
  3. #include "EventManager.h"
  4. #include "StateManager.h"
  5. #include "SharedContext.h"
  6.  
  7.  
  8.  
  9. class Game
  10. {
  11. public:
  12.     Game();
  13.     ~Game();
  14.  
  15.     //void HandleInput();
  16.     void Update();
  17.     void Render();
  18.  
  19.     Window* GetWindow();
  20.  
  21.     sf::Time GetElapsed();
  22.     void RestartClock();
  23.  
  24.     void MoveSprite(EventDetails* details);
  25.  
  26.     void LateUpdate();
  27.  
  28. private:
  29.     void MoveMushroom();
  30.  
  31.     Window m_window;
  32.     sf::Texture m_mushroom_texture;
  33.     sf::Sprite m_mushroom;
  34.     sf::Vector2i m_increment;
  35.  
  36.     sf::Clock m_clock;
  37.     sf::Time m_elapsed;
  38.  
  39.     c_StateManager m_stateManager;
  40.  
  41. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement