#include <main_controller.h>
◆ MainController()
      
        
          | MainController::MainController  | 
          ( | 
          const std::string &  | 
          sWindowName | ) | 
           | 
        
      
 
 
◆ ~MainController()
      
        
          | MainController::~MainController  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ clearWindow()
      
        
          | void MainController::clearWindow  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ drawObjects()
      
        
          | void MainController::drawObjects  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ findResourceDir()
      
        
          | bool MainController::findResourceDir  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ generateBackground()
  
  
      
        
          | void MainController::generateBackground  | 
          ( | 
          SDL_Texture *  | 
          pTextureBackground,  | 
         
        
           | 
           | 
          int  | 
          nTextureWidth,  | 
         
        
           | 
           | 
          int  | 
          nTextureHeight,  | 
         
        
           | 
           | 
          const CoordXY &  | 
          startXY,  | 
         
        
           | 
           | 
          const CoordXY &  | 
          endXY  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ generateClouds()
  
  
      
        
          | void MainController::generateClouds  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ generateTanks()
  
  
      
        
          | void MainController::generateTanks  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ getCoordCenter()
      
        
          | CoordXY MainController::getCoordCenter  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getGameAlienShipState()
◆ getGameState()
◆ getResourceDir()
      
        
          | std::string MainController::getResourceDir  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ getWindow()
◆ initRenderWindow()
      
        
          | bool MainController::initRenderWindow  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ initSDL2()
      
        
          | bool MainController::initSDL2  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ isFullscreen()
      
        
          | bool MainController::isFullscreen  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ loadAlienShip()
  
  
      
        
          | void MainController::loadAlienShip  | 
          ( | 
          const std::string &  | 
          sDefaultPath | ) | 
           | 
         
       
   | 
  
private   | 
  
 
 
◆ loadBackgrounds()
  
  
      
        
          | void MainController::loadBackgrounds  | 
          ( | 
          const std::string &  | 
          sDefaultPath,  | 
         
        
           | 
           | 
          const YJsonObject &  | 
          jsonBackground  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ loadGameDataWithProgressBar()
      
        
          | bool MainController::loadGameDataWithProgressBar  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ loadRoads()
  
  
      
        
          | void MainController::loadRoads  | 
          ( | 
          const std::string &  | 
          sDefaultPath,  | 
         
        
           | 
           | 
          const YJsonObject &  | 
          jsonRoads  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
private   | 
  
 
 
◆ modifyObjects()
      
        
          | void MainController::modifyObjects  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ showStartDialog()
      
        
          | bool MainController::showStartDialog  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ startAllThreads()
      
        
          | void MainController::startAllThreads  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ toggleFullscreen()
      
        
          | void MainController::toggleFullscreen  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ updateFpsValue()
      
        
          | void MainController::updateFpsValue  | 
          ( | 
          int  | 
          nFps | ) | 
           | 
        
      
 
 
◆ updatePlayerCoord()
      
        
          | void MainController::updatePlayerCoord  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ m_mapBuildingsTextures
  
  
      
        
          | std::map<std::string, SDL_Texture*> MainController::m_mapBuildingsTextures | 
         
       
   | 
  
private   | 
  
 
 
◆ m_maxPointMap
  
  
      
        
          | CoordXY MainController::m_maxPointMap | 
         
       
   | 
  
private   | 
  
 
 
◆ m_minPointMap
  
  
      
        
          | CoordXY MainController::m_minPointMap | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nMapHeight
  
  
      
        
          | int MainController::m_nMapHeight | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nMapWidth
  
  
      
        
          | int MainController::m_nMapWidth | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nMaxClouds
  
  
      
        
          | int MainController::m_nMaxClouds | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nProgressBarMax
  
  
      
        
          | int MainController::m_nProgressBarMax | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nProgressBarStatus
  
  
      
        
          | int MainController::m_nProgressBarStatus | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nWindowHeight
  
  
      
        
          | int MainController::m_nWindowHeight | 
         
       
   | 
  
private   | 
  
 
 
◆ m_nWindowWidth
  
  
      
        
          | int MainController::m_nWindowWidth | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pAlientShipState
◆ m_pCoordText
◆ m_pFpsText
◆ m_pGameState
◆ m_playerStartPosition
  
  
      
        
          | CoordXY MainController::m_playerStartPosition | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pMainAiThread
◆ m_pRenderWindow
◆ m_pTextureCloud0
  
  
      
        
          | SDL_Texture* MainController::m_pTextureCloud0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTextureCursor
  
  
      
        
          | SDL_Texture* MainController::m_pTextureCursor | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTextureLeftPanel
  
  
      
        
          | SDL_Texture* MainController::m_pTextureLeftPanel | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTexturePlayerPower0
  
  
      
        
          | SDL_Texture* MainController::m_pTexturePlayerPower0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTextureRoad0
  
  
      
        
          | SDL_Texture* MainController::m_pTextureRoad0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTextureRocket
  
  
      
        
          | SDL_Texture* MainController::m_pTextureRocket | 
         
       
   | 
  
private   | 
  
 
 
◆ m_pTextureTank0
  
  
      
        
          | SDL_Texture* MainController::m_pTextureTank0 | 
         
       
   | 
  
private   | 
  
 
 
◆ m_sMapName
  
  
      
        
          | std::string MainController::m_sMapName | 
         
       
   | 
  
private   | 
  
 
 
◆ m_sResourceDir
  
  
      
        
          | std::string MainController::m_sResourceDir | 
         
       
   | 
  
private   | 
  
 
 
◆ m_sWindowName
  
  
      
        
          | std::string MainController::m_sWindowName | 
         
       
   | 
  
private   | 
  
 
 
◆ TAG
  
  
      
        
          | std::string MainController::TAG | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: