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

#include <render_dialog.h>

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

Public Member Functions

 RenderDialog (SDL_Texture *tex, int nWidth, int nHeight, 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_coordCenter
 
CoordXY m_coordReal
 
int m_nWindowWidth
 
int m_nWindowHeight
 
int m_nDialogWidth
 
int m_nDialogHeight
 
SDL_Rect m_currentFrameTopLeft
 
SDL_Rect m_currentFrameTopMiddle
 
SDL_Rect m_currentFrameTopRight
 
SDL_Rect m_currentFrameLeftMiddle
 
SDL_Rect m_currentFrameCenter
 
SDL_Rect m_currentFrameRightMiddle
 
SDL_Rect m_currentFrameBottomLeft
 
SDL_Rect m_currentFrameBottomMiddle
 
SDL_Rect m_currentFrameBottomRight
 
SDL_Texture * m_pTexture
 

Additional Inherited Members

- Protected Attributes inherited from RenderObject
bool m_bDestroyed
 

Constructor & Destructor Documentation

◆ RenderDialog()

RenderDialog::RenderDialog ( SDL_Texture *  tex,
int  nWidth,
int  nHeight,
int  nPositionZ = 0 
)

Member Function Documentation

◆ canDraw()

bool RenderDialog::canDraw ( const GameState state)
overridevirtual

Implements RenderObject.

◆ draw()

void RenderDialog::draw ( SDL_Renderer *  renderer)
overridevirtual

Implements RenderObject.

◆ modify()

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

Reimplemented from RenderObject.

Member Data Documentation

◆ m_coordCenter

CoordXY RenderDialog::m_coordCenter
private

◆ m_coordReal

CoordXY RenderDialog::m_coordReal
private

◆ m_currentFrameBottomLeft

SDL_Rect RenderDialog::m_currentFrameBottomLeft
private

◆ m_currentFrameBottomMiddle

SDL_Rect RenderDialog::m_currentFrameBottomMiddle
private

◆ m_currentFrameBottomRight

SDL_Rect RenderDialog::m_currentFrameBottomRight
private

◆ m_currentFrameCenter

SDL_Rect RenderDialog::m_currentFrameCenter
private

◆ m_currentFrameLeftMiddle

SDL_Rect RenderDialog::m_currentFrameLeftMiddle
private

◆ m_currentFrameRightMiddle

SDL_Rect RenderDialog::m_currentFrameRightMiddle
private

◆ m_currentFrameTopLeft

SDL_Rect RenderDialog::m_currentFrameTopLeft
private

◆ m_currentFrameTopMiddle

SDL_Rect RenderDialog::m_currentFrameTopMiddle
private

◆ m_currentFrameTopRight

SDL_Rect RenderDialog::m_currentFrameTopRight
private

◆ m_nDialogHeight

int RenderDialog::m_nDialogHeight
private

◆ m_nDialogWidth

int RenderDialog::m_nDialogWidth
private

◆ m_nWindowHeight

int RenderDialog::m_nWindowHeight
private

◆ m_nWindowWidth

int RenderDialog::m_nWindowWidth
private

◆ m_pTexture

SDL_Texture* RenderDialog::m_pTexture
private

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