#include <src/orxonox/overlays/hud/UnderAttackHealthBar.h>
Public Member Functions | |
virtual void | changedOwner () |
Vector2 | getDescriptionOffset () const |
Vector2 | getDescriptionPickPoint () const |
void | setDescriptionOffset (const Vector2 &position) |
void | setDescriptionPickPoint (const Vector2 &pickpoint) |
UnderAttackHealthBar (BaseObject *creator) | |
virtual void | XMLPort (Element &xmlelement, XMLPort::Mode mode) |
Loads the OrxonoxOverlay. | |
~UnderAttackHealthBar () | |
Private Member Functions | |
void | init () |
Private Attributes | |
Timer< UnderAttackHealthBar > | inittimer_ |
PlayerInfo * | owner_ |
OverlayText * | text_ |
orxonox::UnderAttackHealthBar::UnderAttackHealthBar | ( | BaseObject * | creator | ) |
References orxonox::createExecutor(), init(), inittimer_, owner_, RegisterObject, orxonox::OverlayText::setAlignmentString(), orxonox::OverlayText::setColour(), orxonox::OverlayText::setFont(), orxonox::OrxonoxOverlay::setPickPoint(), orxonox::OverlayText::setTextSize(), text_, and orxonox::MT_Type::Vector2.
orxonox::UnderAttackHealthBar::~UnderAttackHealthBar | ( | ) |
References orxonox::BaseObject::isInitialized(), and text_.
void orxonox::UnderAttackHealthBar::changedOwner | ( | ) | [virtual] |
Vector2 orxonox::UnderAttackHealthBar::getDescriptionOffset | ( | ) | const [inline] |
Referenced by XMLPort().
Vector2 orxonox::UnderAttackHealthBar::getDescriptionPickPoint | ( | ) | const [inline] |
Referenced by XMLPort().
void orxonox::UnderAttackHealthBar::init | ( | ) | [private] |
void orxonox::UnderAttackHealthBar::setDescriptionOffset | ( | const Vector2 & | position | ) | [inline] |
Referenced by XMLPort().
void orxonox::UnderAttackHealthBar::setDescriptionPickPoint | ( | const Vector2 & | pickpoint | ) | [inline] |
Referenced by XMLPort().
void orxonox::UnderAttackHealthBar::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.
xmlelement | The XML-element | |
loading | Loading (true) or saving (false) |
Reimplemented from orxonox::HUDHealthBar.
References getDescriptionOffset(), getDescriptionPickPoint(), setDescriptionOffset(), setDescriptionPickPoint(), SUPER, and XMLPortParam.
Referenced by UnderAttackHealthBar().
PlayerInfo* orxonox::UnderAttackHealthBar::owner_ [private] |
Reimplemented from orxonox::HUDHealthBar.
Referenced by changedOwner(), init(), and UnderAttackHealthBar().
OverlayText* orxonox::UnderAttackHealthBar::text_ [private] |
Referenced by changedOwner(), UnderAttackHealthBar(), and ~UnderAttackHealthBar().