FIFE  be64c707dea6b3250bd4355bf5c825d25920087d
FIFE::OverlayColors Class Reference

#include <visual.h>

+ Collaboration diagram for FIFE::OverlayColors:

Public Member Functions

 OverlayColors ()
 Constructors. More...
 
 OverlayColors (ImagePtr image)
 
 OverlayColors (AnimationPtr animation)
 
 ~OverlayColors ()
 Destructor. More...
 
void setColorOverlayImage (ImagePtr image)
 
ImagePtr getColorOverlayImage ()
 
void setColorOverlayAnimation (AnimationPtr animation)
 
AnimationPtr getColorOverlayAnimation ()
 
void changeColor (const Color &source, const Color &target)
 
const std::map< Color, Color > & getColors ()
 
void resetColors ()
 

Private Attributes

std::map< Color, Colorm_colorMap
 
ImagePtr m_image
 
AnimationPtr m_animation
 

Detailed Description

Definition at line 46 of file visual.h.

Constructor & Destructor Documentation

◆ OverlayColors() [1/3]

FIFE::OverlayColors::OverlayColors ( )

Constructors.

Definition at line 46 of file visual.cpp.

◆ OverlayColors() [2/3]

FIFE::OverlayColors::OverlayColors ( ImagePtr  image)

Definition at line 49 of file visual.cpp.

◆ OverlayColors() [3/3]

FIFE::OverlayColors::OverlayColors ( AnimationPtr  animation)

Definition at line 53 of file visual.cpp.

◆ ~OverlayColors()

FIFE::OverlayColors::~OverlayColors ( )

Destructor.

Definition at line 57 of file visual.cpp.

Member Function Documentation

◆ changeColor()

void FIFE::OverlayColors::changeColor ( const Color source,
const Color target 
)

◆ getColorOverlayAnimation()

AnimationPtr FIFE::OverlayColors::getColorOverlayAnimation ( )

Definition at line 72 of file visual.cpp.

References m_animation.

Referenced by FIFE::ActionVisual::addColorOverlay(), and FIFE::LayerCache::updateVisual().

+ Here is the caller graph for this function:

◆ getColorOverlayImage()

ImagePtr FIFE::OverlayColors::getColorOverlayImage ( )

Definition at line 64 of file visual.cpp.

References m_image.

Referenced by FIFE::ObjectVisual::addStaticColorOverlay(), FIFE::InstanceRenderer::getMultiColorOverlay(), and FIFE::InstanceRenderer::renderOverlay().

+ Here is the caller graph for this function:

◆ getColors()

const std::map< Color, Color > & FIFE::OverlayColors::getColors ( )

◆ resetColors()

void FIFE::OverlayColors::resetColors ( )

Definition at line 88 of file visual.cpp.

References m_colorMap.

◆ setColorOverlayAnimation()

void FIFE::OverlayColors::setColorOverlayAnimation ( AnimationPtr  animation)

Definition at line 68 of file visual.cpp.

References m_animation.

Referenced by FIFE::ActionVisual::addColorOverlay().

+ Here is the caller graph for this function:

◆ setColorOverlayImage()

void FIFE::OverlayColors::setColorOverlayImage ( ImagePtr  image)

Definition at line 60 of file visual.cpp.

References m_image.

Referenced by FIFE::ObjectVisual::addStaticColorOverlay(), and FIFE::LayerCache::updateVisual().

+ Here is the caller graph for this function:

Member Data Documentation

◆ m_animation

AnimationPtr FIFE::OverlayColors::m_animation
private

Definition at line 69 of file visual.h.

Referenced by getColorOverlayAnimation(), and setColorOverlayAnimation().

◆ m_colorMap

std::map<Color, Color> FIFE::OverlayColors::m_colorMap
private

Definition at line 67 of file visual.h.

Referenced by changeColor(), getColors(), and resetColors().

◆ m_image

ImagePtr FIFE::OverlayColors::m_image
private

Definition at line 68 of file visual.h.

Referenced by getColorOverlayImage(), and setColorOverlayImage().


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