orxonox::FadeoutText Class Reference

#include <src/orxonox/overlays/FadeoutText.h>

Inheritance diagram for orxonox::FadeoutText:

orxonox::OverlayText orxonox::Tickable orxonox::OrxonoxOverlay orxonox::OrxonoxClass orxonox::BaseObject orxonox::WindowEventListener orxonox::OrxonoxClass orxonox::OrxonoxClass orxonox::AnnounceMessage orxonox::DeathMessage orxonox::KillMessage

List of all members.

Public Member Functions

 FadeoutText (BaseObject *creator)
float getDelay () const
float getFadeouttime () const
void setDelay (float delay)
void setFadeouttime (float fadeouttime)
virtual void tick (float dt)
 Gets called every frame.
virtual void XMLPort (Element &xmlElement, XMLPort::Mode mode)
 Loads the OrxonoxOverlay.
virtual ~FadeoutText ()

Private Member Functions

virtual void changedCaption ()
virtual void changedColour ()
void fadeout ()
void reset ()

Private Attributes

bool bFadingOut_
float delay_
float fadeouttime_
Timer< FadeoutTextfadeouttimer_
float initialAlpha_


Constructor & Destructor Documentation

orxonox::FadeoutText::FadeoutText ( BaseObject creator  ) 

virtual orxonox::FadeoutText::~FadeoutText (  )  [inline, virtual]


Member Function Documentation

void orxonox::FadeoutText::changedCaption (  )  [private, virtual]

void orxonox::FadeoutText::changedColour (  )  [private, virtual]

void orxonox::FadeoutText::fadeout (  )  [private]

References bFadingOut_.

Referenced by FadeoutText().

float orxonox::FadeoutText::getDelay (  )  const [inline]

Referenced by XMLPort().

float orxonox::FadeoutText::getFadeouttime (  )  const [inline]

Referenced by XMLPort().

void orxonox::FadeoutText::reset (  )  [private]

void orxonox::FadeoutText::setDelay ( float  delay  )  [inline]

void orxonox::FadeoutText::setFadeouttime ( float  fadeouttime  )  [inline]

void orxonox::FadeoutText::tick ( float  dt  )  [virtual]

Gets called every frame.

Parameters:
dt The time since the last frame in seconds

Implements orxonox::Tickable.

References bFadingOut_, orxonox::MT_Type::ColourValue, fadeouttime_, orxonox::OverlayText::getColour(), reset(), and orxonox::OverlayText::text_.

void orxonox::FadeoutText::XMLPort ( Element &  xmlElement,
XMLPort::Mode  mode 
) [virtual]

Loads the OrxonoxOverlay.

This has to be called before usage, otherwise strange behaviour is guaranteed! (there should be no segfaults however). XML loading and saving.

Parameters:
xmlelement The XML-element
loading Loading (true) or saving (false)
Returns:
The XML-element

Reimplemented from orxonox::OverlayText.

References getDelay(), getFadeouttime(), setDelay(), setFadeouttime(), SUPER, and XMLPortParam.


Member Data Documentation

Referenced by fadeout(), FadeoutText(), reset(), and tick().

Referenced by changedCaption(), and FadeoutText().

Referenced by FadeoutText(), and tick().

Referenced by changedCaption(), and FadeoutText().

Referenced by changedColour(), FadeoutText(), and reset().


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

Generated on Tue Jul 28 16:22:29 2009 for Orxonox by  doxygen 1.5.6