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.
std::vector< RenderItem * > RenderList
std::set< std::string > m_visualCosts
Interface to class owning the renderers Used to get correct subclass of renderer in scripting side (v...
IFont * getFont()
Returns the font.
Camera describes properties of a view port shown in the main screen Main screen can have multiple cam...
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.
void setEnabledPathVisual(bool enabled)
Enables path visualization.
void setEnabledBlocking(bool enabled)
Enables blocking 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 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.
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.