YourCityInvadedByAliens
Documentation for code of the game
|
|
Go to the documentation of this file.
38 const std::string &sDefaultPath,
42 SDL_Texture* pTextureBackground,
52 const std::string &sDefaultPath,
57 const std::string &sDefaultPath
GameState * m_pGameState
Definition: main_controller.h:75
CoordXY m_playerStartPosition
Definition: main_controller.h:64
void toggleFullscreen()
Definition: main_controller.cpp:281
CoordXY m_maxPointMap
Definition: main_controller.h:63
void clearWindow()
Definition: main_controller.cpp:291
bool isFullscreen()
Definition: main_controller.cpp:277
bool initSDL2()
Definition: main_controller.cpp:64
SDL_Texture * m_pTextureCursor
Definition: main_controller.h:81
MainAiThread * m_pMainAiThread
Definition: main_controller.h:76
RenderWindow * m_pRenderWindow
Definition: main_controller.h:74
Definition: render_window.h:19
int m_nMapWidth
Definition: main_controller.h:67
MainController(const std::string &sWindowName)
Definition: main_controller.cpp:23
RenderAbsoluteTextBlock * m_pFpsText
Definition: main_controller.h:87
CoordXY m_minPointMap
Definition: main_controller.h:62
int m_nProgressBarStatus
Definition: main_controller.h:72
void generateBackground(SDL_Texture *pTextureBackground, int nTextureWidth, int nTextureHeight, const CoordXY &startXY, const CoordXY &endXY)
Definition: main_controller.cpp:386
void startAllThreads()
Definition: main_controller.cpp:273
SDL_Texture * m_pTextureTank0
Definition: main_controller.h:79
SDL_Texture * m_pTextureCloud0
Definition: main_controller.h:77
int m_nMaxClouds
Definition: main_controller.h:69
Definition: main_controller.h:8
std::string TAG
Definition: main_controller.h:35
void loadRoads(const std::string &sDefaultPath, const YJsonObject &jsonRoads)
Definition: main_controller.cpp:437
int m_nMapHeight
Definition: main_controller.h:68
void generateTanks()
Definition: main_controller.cpp:400
RenderWindow * getWindow()
Definition: main_controller.cpp:112
GameState * getGameState()
Definition: main_controller.cpp:116
bool showStartDialog()
Definition: main_controller.cpp:263
SDL_Texture * m_pTextureLeftPanel
Definition: main_controller.h:82
bool loadGameDataWithProgressBar()
Definition: main_controller.cpp:127
bool initRenderWindow()
Definition: main_controller.cpp:94
~MainController()
Definition: main_controller.cpp:37
void drawObjects()
Definition: main_controller.cpp:334
bool findResourceDir()
Definition: main_controller.cpp:41
void updatePlayerCoord()
Definition: main_controller.cpp:338
int m_nProgressBarMax
Definition: main_controller.h:73
void generateClouds()
Definition: main_controller.cpp:420
CoordXY getCoordCenter()
Definition: main_controller.cpp:120
Definition: game_state.h:10
std::string m_sWindowName
Definition: main_controller.h:60
int m_nWindowHeight
Definition: main_controller.h:66
std::string getResourceDir()
Definition: main_controller.cpp:60
void modifyObjects()
Definition: main_controller.cpp:295
void loadAlienShip(const std::string &sDefaultPath)
Definition: main_controller.cpp:467
SDL_Texture * m_pTextureRoad0
Definition: main_controller.h:78
SDL_Texture * m_pTextureRocket
Definition: main_controller.h:80
RenderAbsoluteTextBlock * m_pCoordText
Definition: main_controller.h:86
void loadBackgrounds(const std::string &sDefaultPath, const YJsonObject &jsonBackground)
Definition: main_controller.cpp:354
int m_nWindowWidth
Definition: main_controller.h:65
GameAlienShipState * m_pAlientShipState
Definition: main_controller.h:88
Definition: main_ai_thread.h:16
std::map< std::string, SDL_Texture * > m_mapBuildingsTextures
Definition: main_controller.h:84
Definition: game_alien_ship_state.h:8
std::string m_sResourceDir
Definition: main_controller.h:61
SDL_Texture * m_pTexturePlayerPower0
Definition: main_controller.h:83
void updateFpsValue(int nFps)
Definition: main_controller.cpp:345
std::string m_sMapName
Definition: main_controller.h:70
GameAlienShipState * getGameAlienShipState()
Definition: main_controller.cpp:350