FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
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

FIFE::OverlayColors::OverlayColors ( )

Constructors.

Definition at line 46 of file visual.cpp.

FIFE::OverlayColors::OverlayColors ( ImagePtr  image)

Definition at line 49 of file visual.cpp.

FIFE::OverlayColors::OverlayColors ( AnimationPtr  animation)

Definition at line 53 of file visual.cpp.

FIFE::OverlayColors::~OverlayColors ( )

Destructor.

Definition at line 57 of file visual.cpp.

Member Function Documentation

void FIFE::OverlayColors::changeColor ( const Color source,
const Color target 
)
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:

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:

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

Definition at line 88 of file visual.cpp.

References m_colorMap.

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:

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

AnimationPtr FIFE::OverlayColors::m_animation
private

Definition at line 69 of file visual.h.

Referenced by getColorOverlayAnimation(), and setColorOverlayAnimation().

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

Definition at line 67 of file visual.h.

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

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: