YourCityInvadedByAliens
Documentation for code of the game
render_bioplast.h
Go to the documentation of this file.
1 
2 #pragma once
3 #include "render.h"
4 #include "game_bioplast_state.h"
5 
6 class RenderBioplast : public RenderObject {
7 
8  public:
10  GameBioplastState *pTank0State,
11  SDL_Texture* tex,
12  int nPositionZ = 0
13  );
14  virtual ~RenderBioplast();
15 
16  virtual void modify(const GameState& state, IRenderWindow* pRenderWindow) override;
17  virtual bool canDraw(const GameState& state) override;
18  virtual void draw(SDL_Renderer* renderer) override;
19 
20  private:
30 
31  SDL_Rect m_currentFrame;
32  SDL_Texture* m_pTexture;
33 };
RenderBioplast::m_coordPos
CoordXY m_coordPos
Definition: render_bioplast.h:21
RenderBioplast::m_pTexture
SDL_Texture * m_pTexture
Definition: render_bioplast.h:32
render.h
RenderBioplast::m_coordRenderEnd
CoordXY m_coordRenderEnd
Definition: render_bioplast.h:24
RenderBioplast::canDraw
virtual bool canDraw(const GameState &state) override
Definition: render_bioplast.cpp:68
RenderBioplast::m_nLifeTime
int m_nLifeTime
Definition: render_bioplast.h:26
RenderBioplast::m_coordPosEnd
CoordXY m_coordPosEnd
Definition: render_bioplast.h:22
RenderBioplast::draw
virtual void draw(SDL_Renderer *renderer) override
Definition: render_bioplast.cpp:75
RenderBioplast::m_coordRender
CoordXY m_coordRender
Definition: render_bioplast.h:23
CoordXY
Definition: coordxy.h:5
RenderObject
Definition: render_base.h:42
GameBioplastState
Definition: game_bioplast_state.h:5
RenderBioplast
Definition: render_bioplast.h:6
GameState
Definition: game_state.h:10
IRenderWindow
Definition: render_base.h:26
RenderBioplast::~RenderBioplast
virtual ~RenderBioplast()
Definition: render_bioplast.cpp:25
RenderBioplast::m_pBioplastState
GameBioplastState * m_pBioplastState
Definition: render_bioplast.h:29
RenderBioplast::m_nMaxLifeTime
int m_nMaxLifeTime
Definition: render_bioplast.h:27
game_bioplast_state.h
RenderBioplast::modify
virtual void modify(const GameState &state, IRenderWindow *pRenderWindow) override
Definition: render_bioplast.cpp:29
RenderBioplast::m_currentFrame
SDL_Rect m_currentFrame
Definition: render_bioplast.h:31
RenderBioplast::RenderBioplast
RenderBioplast(GameBioplastState *pTank0State, SDL_Texture *tex, int nPositionZ=0)
Definition: render_bioplast.cpp:9
RenderBioplast::m_nSpeedAnimation
long m_nSpeedAnimation
Definition: render_bioplast.h:28
RenderBioplast::m_nPrevPosition
long m_nPrevPosition
Definition: render_bioplast.h:25