This class is responsible for running the game loop and processing events.  
 Plus de détails...
#include <GameController.h>
This class is responsible for running the game loop and processing events. 
◆ GameController()
      
        
          | GameController::GameController | ( |  | ) |  | 
      
 
Construct a new Game Controller object. 
 
 
◆ ~GameController()
      
        
          | GameController::~GameController | ( |  | ) |  | 
      
 
 
◆ processEvent()
      
        
          | void GameController::processEvent | ( | const SDL_Event & | event | ) |  | 
      
 
This function processes events. 
This handle the quiting of the game and the user input
- Paramètres
- 
  
  
 
 
◆ run()
      
        
          | void GameController::run | ( |  | ) |  | 
      
 
This function runs the game loop. 
This function runs the game loop by calling the run function from the game class. It also processes events using the processEvent function. 
 
 
◆ game
  
  | 
        
          | std::unique_ptr<Game> GameController::game |  | private | 
 
 
◆ quitGame
  
  | 
        
          | bool GameController::quitGame |  | private | 
 
 
◆ state
La documentation de cette classe a été générée à partir du fichier suivant :