YourCityInvadedByAliens
Documentation for code of the game
|
|
Go to the documentation of this file.
22 virtual void draw(SDL_Renderer* renderer)
override;
43 virtual void draw(SDL_Renderer* renderer)
override;
60 const std::string &sText,
65 virtual void draw(SDL_Renderer* renderer)
override;
84 virtual void draw(SDL_Renderer* renderer)
override;
107 SDL_Texture* pTextureCursorTarget,
112 virtual void draw(SDL_Renderer* renderer)
override;
std::vector< CoordXY > m_vFillPointsAbsolute
Definition: render.h:93
SDL_Texture * m_pTextureCursorTarget
Definition: render.h:119
RenderLine m_line2
Definition: render.h:26
std::string m_sUpdateText
Definition: render.h:71
CoordXY m_p1
Definition: render.h:117
int m_nCursorType
Definition: render.h:116
virtual void draw(SDL_Renderer *renderer) override
Definition: render.cpp:338
TTF_Font * m_pFont
Definition: render.h:72
RenderTriangle(const CoordXY &p1, const CoordXY &p2, const CoordXY &p3, int nPositionZ=0)
Definition: render.cpp:9
RenderLine m_line3
Definition: render.h:27
SDL_Rect m_currentFrame
Definition: render.h:120
virtual bool canDraw(const GameState &state) override
Definition: render.cpp:256
Definition: render_base.h:12
CoordXY m_coordPosEnd
Definition: render.h:47
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render.cpp:329
Definition: game_building.h:7
CoordXY getMinPoint()
Definition: render.cpp:284
RenderBuilding2(GameBuilding *pBuilding, SDL_Texture *pTexture)
Definition: render.cpp:152
RenderLine m_line1
Definition: render.h:25
virtual void draw(SDL_Renderer *renderer) override
Definition: render.cpp:115
SDL_Texture * m_pTexture
Definition: render.h:52
void updateCoord(const CoordXY &p0)
Definition: render.cpp:347
virtual void draw(SDL_Renderer *renderer) override
Definition: render.cpp:263
Definition: render_line.h:4
RenderMouse(const CoordXY &p1, SDL_Texture *pTextureCursorTarget, int nPositionZ=0)
Definition: render.cpp:311
CoordXY m_coordRenderEnd
Definition: render.h:49
virtual bool canDraw(const GameState &state) override
Definition: render.cpp:67
CoordXY m_minPos
Definition: render.h:88
virtual bool canDraw(const GameState &state) override
Definition: render.cpp:111
CoordXY getMaxPoint()
Definition: render.cpp:288
Definition: render_base.h:42
RenderRectTexture(const CoordXY &p0, SDL_Texture *tex, int nTextureWidth, int nTextureHeight, int nPositionZ=0)
Definition: render.cpp:46
SDL_Texture * m_pTexture
Definition: render.h:97
GameBuilding * m_pBuilding
Definition: render.h:91
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render.cpp:242
Definition: game_state.h:10
Definition: render_base.h:26
std::vector< CoordXY > m_vFillPoints
Definition: render.h:94
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render.cpp:23
virtual void draw(SDL_Renderer *renderer) override
Definition: render.cpp:74
SDL_Rect currentFrame
Definition: render.h:51
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render.cpp:104
RenderColor m_color
Definition: render.h:28
CoordXY m_coordPos
Definition: render.h:46
SDL_Rect m_currentFrame
Definition: render.h:96
void updateText(const std::string &sNewText)
Definition: render.cpp:145
RenderAbsoluteTextBlock(const CoordXY &p0, const std::string &sText, int nPositionZ=0)
Definition: render.cpp:88
std::string m_sText
Definition: render.h:70
CoordXY m_maxPos
Definition: render.h:89
virtual void draw(SDL_Renderer *renderer) override
Definition: render.cpp:37
CoordXY m_coordRender
Definition: render.h:48
CoordXY m_coordCenter
Definition: render.h:69
virtual bool canDraw(const GameState &state) override
Definition: render.cpp:334
bool containsPoint(const std::vector< CoordXY > &vPoints, const CoordXY &p)
Definition: render.cpp:292
std::vector< RenderLine * > m_vBorderLines
Definition: render.h:92
SDL_Color m_color
Definition: render.h:73
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render.cpp:62
std::vector< RenderLine * > m_vLines
Definition: render.h:95
SDL_Rect currentFrame
Definition: render.h:75
virtual bool canDraw(const GameState &state) override
Definition: render.cpp:29