YourCityInvadedByAliens
Documentation for code of the game
Public Member Functions | Private Attributes | List of all members
RenderBackground Class Reference

#include <render_background.h>

Inheritance diagram for RenderBackground:
Inheritance graph
[legend]
Collaboration diagram for RenderBackground:
Collaboration graph
[legend]

Public Member Functions

 RenderBackground (const CoordXY &p0, SDL_Texture *tex, int nPositionZ=0)
 
virtual void modify (const GameState &state, IRenderWindow *pRenderWindow) override
 
virtual bool canDraw (const GameState &state) override
 
virtual void draw (SDL_Renderer *renderer) override
 
- Public Member Functions inherited from RenderObject
 RenderObject (int nPositionZ)
 
virtual ~RenderObject ()
 
int getPositionZ ()
 
bool isDestroyed ()
 
void destroy ()
 
int randomNoise ()
 

Private Attributes

CoordXY m_coordPos
 
YRect m_rectRegionPos
 
CoordXY m_coordRender
 
YRect m_rectRegionRender
 
SDL_Rect m_currentFrame
 
SDL_Texture * m_pTexture
 

Additional Inherited Members

- Protected Attributes inherited from RenderObject
bool m_bDestroyed
 

Constructor & Destructor Documentation

◆ RenderBackground()

RenderBackground::RenderBackground ( const CoordXY p0,
SDL_Texture *  tex,
int  nPositionZ = 0 
)

Member Function Documentation

◆ canDraw()

bool RenderBackground::canDraw ( const GameState state)
overridevirtual

Implements RenderObject.

◆ draw()

void RenderBackground::draw ( SDL_Renderer *  renderer)
overridevirtual

Implements RenderObject.

◆ modify()

void RenderBackground::modify ( const GameState state,
IRenderWindow pRenderWindow 
)
overridevirtual

Reimplemented from RenderObject.

Member Data Documentation

◆ m_coordPos

CoordXY RenderBackground::m_coordPos
private

◆ m_coordRender

CoordXY RenderBackground::m_coordRender
private

◆ m_currentFrame

SDL_Rect RenderBackground::m_currentFrame
private

◆ m_pTexture

SDL_Texture* RenderBackground::m_pTexture
private

◆ m_rectRegionPos

YRect RenderBackground::m_rectRegionPos
private

◆ m_rectRegionRender

YRect RenderBackground::m_rectRegionRender
private

The documentation for this class was generated from the following files: