FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::BlockingInfoRenderer Class Reference

#include <blockinginforenderer.h>

+ Inheritance diagram for FIFE::BlockingInfoRenderer:
+ Collaboration diagram for FIFE::BlockingInfoRenderer:

Public Member Functions

 BlockingInfoRenderer (RenderBackend *renderbackend, int32_t position)
 Constructor. More...
 
 BlockingInfoRenderer (const BlockingInfoRenderer &old)
 Copy Constructor. More...
 
RendererBaseclone ()
 Makes copy of this renderer. More...
 
virtual ~BlockingInfoRenderer ()
 Destructor. More...
 
std::string getName ()
 Returns the renderer name. More...
 
void render (Camera *cam, Layer *layer, RenderList &instances)
 This method is called by the view to ask renderer to draw its rendering aspect based on given parameters. More...
 
void setColor (uint8_t r, uint8_t g, uint8_t b)
 Changes the used color. More...
 
- Public Member Functions inherited from FIFE::RendererBase
 RendererBase (RenderBackend *renderbackend, int32_t position)
 Constructor. More...
 
 RendererBase (const RendererBase &old)
 Copy Constructor. More...
 
virtual ~RendererBase ()
 Destructor. More...
 
int32_t getPipelinePosition () const
 Gets renderer position in the rendering pipeline. More...
 
void setPipelinePosition (int32_t position)
 Sets renderer position in the rendering pipeline Pipeline position defines in which order view calls the renderers when update occurs Note that renderers are called once per rendered layer, thus to update the whole screen, renderer might receive multiple calls. More...
 
virtual void setEnabled (bool enabled)
 Enables renderer. More...
 
virtual void reset ()
 Resets information in the renderer. More...
 
bool isEnabled () const
 Is renderer enabled. More...
 
void setRendererListener (IRendererListener *listener)
 Sets listener for renderer. More...
 
void addActiveLayer (Layer *layer)
 Adds active layer to renderer. More...
 
void removeActiveLayer (Layer *layer)
 Removes active layer from renderer. More...
 
void clearActiveLayers ()
 Clears all active layers from renderer. More...
 
void activateAllLayers (Map *elevation)
 Activates all layers from given elevation. More...
 
bool isActivedLayer (Layer *layer)
 Returns if given layer is currently activated. More...
 
std::list< Layer * > getActiveLayers () const
 Returns list of activated layer. More...
 

Static Public Member Functions

static BlockingInfoRenderergetInstance (IRendererContainer *cnt)
 Gets instance for interface access. More...
 

Private Attributes

SDL_Color m_color
 currently used color More...
 

Additional Inherited Members

- Protected Member Functions inherited from FIFE::RendererBase
 RendererBase ()
 
- Protected Attributes inherited from FIFE::RendererBase
std::list< Layer * > m_active_layers
 
RenderBackendm_renderbackend
 

Detailed Description

Definition at line 38 of file blockinginforenderer.h.

Constructor & Destructor Documentation

◆ BlockingInfoRenderer() [1/2]

FIFE::BlockingInfoRenderer::BlockingInfoRenderer ( RenderBackend renderbackend,
int32_t  position 
)

Constructor.

Parameters
renderbackendThe renderbackend to use.
positionThe position for this renderer in rendering pipeline. @ see setPipelinePosition

Definition at line 50 of file blockinginforenderer.cpp.

References m_color, and FIFE::RendererBase::setEnabled().

Referenced by clone().

+ Here is the caller graph for this function:

◆ BlockingInfoRenderer() [2/2]

FIFE::BlockingInfoRenderer::BlockingInfoRenderer ( const BlockingInfoRenderer old)

Copy Constructor.

Definition at line 58 of file blockinginforenderer.cpp.

References FIFE::RendererBase::setEnabled().

◆ ~BlockingInfoRenderer()

FIFE::BlockingInfoRenderer::~BlockingInfoRenderer ( )
virtual

Destructor.

Definition at line 68 of file blockinginforenderer.cpp.

Member Function Documentation

◆ clone()

RendererBase * FIFE::BlockingInfoRenderer::clone ( )
virtual

Makes copy of this renderer.

Implements FIFE::RendererBase.

Definition at line 64 of file blockinginforenderer.cpp.

References BlockingInfoRenderer().

◆ getInstance()

BlockingInfoRenderer * FIFE::BlockingInfoRenderer::getInstance ( IRendererContainer cnt)
static

Gets instance for interface access.

Definition at line 71 of file blockinginforenderer.cpp.

References FIFE::IRendererContainer::getRenderer().

Referenced by getName().

+ Here is the caller graph for this function:

◆ getName()

std::string FIFE::BlockingInfoRenderer::getName ( )
inlinevirtual

Returns the renderer name.

Returns
The name as string.

Implements FIFE::RendererBase.

Definition at line 64 of file blockinginforenderer.h.

References getInstance(), render(), and setColor().

◆ render()

◆ setColor()

void FIFE::BlockingInfoRenderer::setColor ( uint8_t  r,
uint8_t  g,
uint8_t  b 
)

Changes the used color.

Parameters
rThe value for red, range 0-255.
gThe value for green, range 0-255.
bThe value for blue, range 0-255.

Definition at line 154 of file blockinginforenderer.cpp.

References m_color.

Referenced by getName().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_color

SDL_Color FIFE::BlockingInfoRenderer::m_color
private

currently used color

Definition at line 89 of file blockinginforenderer.h.

Referenced by BlockingInfoRenderer(), render(), and setColor().


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