YourCityInvadedByAliens
Documentation for code of the game
|
|
Go to the documentation of this file.
22 if (sRoadPart ==
"vertical") {
24 }
else if (sRoadPart ==
"horizontal") {
26 }
else if (sRoadPart ==
"right-down") {
28 }
else if (sRoadPart ==
"left-down") {
30 }
else if (sRoadPart ==
"left-up") {
32 }
else if (sRoadPart ==
"right-up") {
34 }
else if (sRoadPart ==
"cross") {
36 }
else if (sRoadPart ==
"left-up-down") {
38 }
else if (sRoadPart ==
"left-right-up") {
40 }
else if (sRoadPart ==
"right-up-down") {
42 }
else if (sRoadPart ==
"left-right-down") {
45 YLog::throw_err(
"convertStringToRoadPart",
"'" + sRoadPart +
"' not expected");
59 virtual void draw(SDL_Renderer* renderer)
override;
CoordXY m_coordRenderEnd
Definition: render_road0.h:65
virtual void draw(SDL_Renderer *renderer) override
Definition: render_road0.cpp:33
static RoadPart convertStringToRoadPart(const std::string &sRoadPart)
Definition: render_road0.h:21
CoordXY m_coordPos
Definition: render_road0.h:62
CoordXY m_coordRender
Definition: render_road0.h:64
SDL_Texture * m_pTexture
Definition: render_road0.h:69
SDL_Rect m_currentFrame
Definition: render_road0.h:68
int m_nNumberOfTile
Definition: render_road0.h:66
RoadPart
Definition: render_road0.h:6
Definition: render_base.h:42
CoordXY m_coordPosEnd
Definition: render_road0.h:63
virtual bool canDraw(const GameState &state) override
Definition: render_road0.cpp:26
Definition: game_state.h:10
Definition: render_base.h:26
Definition: render_road0.h:49
static void throw_err(const std::string &sTag, const std::string &sMessage)
Definition: ylog.cpp:18
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render_road0.cpp:21
RenderRoad0(const CoordXY &pos, SDL_Texture *tex, RoadPart nTile)
Definition: render_road0.cpp:8