YourCityInvadedByAliens
Documentation for code of the game
|
|
Go to the documentation of this file.
41 SDL_Texture*
loadTexture(
const std::string &sFilePath);
void drawObjects(const GameState &state, SDL_Renderer *pRenderer)
Definition: render_window.cpp:28
void addObject(RenderObject *pObject)
Definition: render_window.cpp:17
void loadTextureBioplast(const std::string &sFilePath)
Definition: render_window.cpp:214
SDL_Window * m_pWindow
Definition: render_window.h:60
int m_nLayerBuildings
Definition: render_window.h:70
int m_nLayerTransport
Definition: render_window.h:71
virtual void addTransportsObject(RenderObject *pObject) override
Definition: render_window.cpp:140
std::vector< RenderObject * > m_vObjects
Definition: render_window.h:16
void sortObjectsByPositionZ()
Definition: render_window.cpp:59
virtual void addCloudsObject(RenderObject *pObject) override
Definition: render_window.cpp:156
virtual void addFlyingObject(RenderObject *pObject) override
Definition: render_window.cpp:152
bool isFullscreen()
Definition: render_window.cpp:183
void removeObject(RenderObject *pObject)
Definition: render_window.cpp:187
void toggleFullscreen()
Definition: render_window.cpp:174
Definition: render_window.h:19
RenderWindow(const char *p_title, int p_w, int p_h)
Definition: render_window.cpp:82
virtual void addPanelsObject(RenderObject *pObject) override
Definition: render_window.cpp:160
virtual void addGroundObject(RenderObject *pObject) override
Definition: render_window.cpp:124
void loadTextureRocket(const std::string &sFilePath)
Definition: render_window.cpp:210
std::vector< GameRocketState * > m_vRockets
Definition: render_window.h:52
std::string m_sName
Definition: render_window.h:15
void modifyObjects(const GameState &state)
Definition: render_window.cpp:229
Definition: game_rocket_state.h:6
int m_nLayerPanels
Definition: render_window.h:76
int m_nLayerClouds
Definition: render_window.h:75
int m_nLayerRockets
Definition: render_window.h:73
~RenderWindow()
Definition: render_window.cpp:118
void cleanUp()
Definition: render_window.cpp:218
void getWindowSize(int *w, int *h)
Definition: render_window.cpp:248
RanderWindowLayer * getLayer(int nLayer)
Definition: render_window.cpp:258
virtual void addRocketsObject(RenderObject *pObject) override
Definition: render_window.cpp:148
Definition: render_window.h:5
SDL_Texture * m_pTextureBioplast
Definition: render_window.h:64
std::vector< GameBioplastState * > m_vBioplasts
Definition: render_window.h:53
Definition: render_base.h:42
int m_nLayerFlying
Definition: render_window.h:74
Definition: game_bioplast_state.h:5
SDL_Renderer * m_pRenderer
Definition: render_window.h:61
SDL_Texture * m_pTextureRocket
Definition: render_window.h:63
Definition: game_state.h:10
Definition: render_base.h:26
void sortObjectsByPositionZ()
Definition: render_window.cpp:193
virtual void addRoadsObject(RenderObject *pObject) override
Definition: render_window.cpp:128
int m_nLayerFlyingShadow
Definition: render_window.h:72
void removeObject(RenderObject *pObject)
Definition: render_window.cpp:21
virtual void addBuildingsObject(RenderObject *pObject) override
Definition: render_window.cpp:136
int createRenderWindowLayer(const std::string &sName)
Definition: render_window.cpp:252
void clear()
Definition: render_window.cpp:222
virtual void addRocket(GameRocketState *pState) override
Definition: render_window.cpp:164
SDL_Texture * loadTexture(const std::string &sFilePath)
Definition: render_window.cpp:199
std::vector< RanderWindowLayer * > m_vLayers
Definition: render_window.h:65
int m_nLayerRoads
Definition: render_window.h:68
virtual void addVegetationObject(RenderObject *pObject) override
Definition: render_window.cpp:132
virtual void addFlyingShadowObject(RenderObject *pObject) override
Definition: render_window.cpp:144
void drawObjects(const GameState &state)
Definition: render_window.cpp:235
int m_nLayerVegetation
Definition: render_window.h:69
int m_nLayerGround
Definition: render_window.h:67
SDL_Renderer * getRenderer()
Definition: render_window.cpp:244
bool m_bFullsreeen
Definition: render_window.h:59
void modifyObjects(const GameState &state, IRenderWindow *pWindow)
Definition: render_window.cpp:36
SDL_DisplayMode m_displayMode
Definition: render_window.h:62
RanderWindowLayer(const std::string &sName)
Definition: render_window.cpp:13
virtual void addBioplast(GameBioplastState *pState) override
Definition: render_window.cpp:169