22 #ifndef FIFE_CELLRENDERER_H
23 #define FIFE_CELLRENDERER_H
std::vector< Instance * > m_visualPaths
Abstract interface for all the renderbackends.
static CellRenderer * getInstance(IRendererContainer *cnt)
Gets instance for interface access.
void addPathVisual(Instance *instance)
Adds a instance to path visualization.
void createFowMap(Camera *cam, Layer *layer)
Creates render target for Fog of War.
void setFogOfWarLayer(Layer *layer)
Sets the layer that is used for Fog of War visualization.
std::vector< RenderItem * > RenderList
void setConcealImage(ImagePtr image)
Sets the image that is used for concealed spaces.
std::set< std::string > m_visualCosts
bool isEnabledFogOfWar()
Gets whether Fog of War visualization is enabled.
Interface to class owning the renderers Used to get correct subclass of renderer in scripting side (v...
void setMaskImage(ImagePtr image)
Sets the fog image.
IFont * getFont()
Returns the font.
void setEnabledFogOfWar(bool enabled)
Enables Fog of War visualization.
Camera describes properties of a view port shown in the main screen Main screen can have multiple cam...
void addMaskImageToMap(Camera *cam, Point center, ImagePtr image)
Adds mask/fog image to FoW render target.
void setBlockerColor(uint8_t r, uint8_t g, uint8_t b)
Sets color that is used to visualize blocker.
Base class for all view renderers View renderer renders one aspect of the view shown on screen...
void removePathVisual(Instance *instance)
Removes a instance from path visualization.
bool isEnabledCost(const std::string &costId)
Gets whether a cost visualization is enabled.
CellRenderer(RenderBackend *renderbackend, int32_t position)
Constructor.
void setEnabledCost(const std::string &costId, bool enabled)
Enables cost visualization.
TargetRenderer * m_targetRenderer
void setEnabledPathVisual(bool enabled)
Enables path visualization.
void setEnabledBlocking(bool enabled)
Enables blocking visualization.
Layer * getFowLayer()
Returns the layer that is used for Fog of War visualization.
Pure abstract Font interface.
void setPathColor(uint8_t r, uint8_t g, uint8_t b)
Sets color that is used to visualize paths.
void addConcealImageToMap(Camera *cam, Point center, ImagePtr image)
Adds conceal image to FoW render target.
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 paramet...
void setFont(IFont *font)
Sets the font.
std::string getName()
Returns the renderer name.
bool isEnabledBlocking()
Gets whether blocking visualization is enabled.
RenderTargetPtr m_fowTarget
void updateFowMap()
Updates render target.
RendererBase * clone()
Makes copy of this renderer.
An Instance is an "instantiation" of an Object at a Location.
bool isEnabledPathVisual()
Gets whether path visualization is enabled.
virtual ~CellRenderer()
Destructor.