Orxonox: orxonox::HUDSpeedBar Class Reference

# orxonox::HUDSpeedBar Class Reference

`#include <src/orxonox/overlays/hud/HUDSpeedBar.h>`

Inheritance diagram for orxonox::HUDSpeedBar:

List of all members.

## Public Member Functions

virtual void | changedOwner ()
| HUDSpeedBar (BaseObject *creator)
virtual void | tick (float dt)
| Gets called every frame.
virtual | ~HUDSpeedBar ()

## Private Attributes

SpaceShip * | owner_

## Constructor & Destructor Documentation

orxonox::HUDSpeedBar::HUDSpeedBar | ( | BaseObject * | creator | ) |

References owner_, and RegisterObject.

orxonox::HUDSpeedBar::~HUDSpeedBar | ( |  | ) | `[virtual]`

## Member Function Documentation

void orxonox::HUDSpeedBar::changedOwner | ( |  | ) | `[virtual]`

Reimplemented from orxonox::OrxonoxOverlay.

References orxonox::OrxonoxOverlay::getOwner(), owner_, and SUPER.

void orxonox::HUDSpeedBar::tick | ( | float | dt | ) | `[virtual]`

Gets called every frame.

Parameters:

  | dt | The time since the last frame in seconds

Implements orxonox::Tickable.

References orxonox::Engine::getBoostFactor(), orxonox::SpaceShip::getEngine(), orxonox::Engine::getMaxSpeedFront(), orxonox::Engine::getSpeedFactor(), orxonox::MobileEntity::getVelocity(), owner_, orxonox::HUDBar::setValue(), and SUPER.

## Member Data Documentation

SpaceShip* orxonox::HUDSpeedBar::owner_`[private]`

Reimplemented from orxonox::OrxonoxOverlay.

Referenced by changedOwner(), HUDSpeedBar(), and tick().

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

- src/orxonox/overlays/hud/HUDSpeedBar.h
- src/orxonox/overlays/hud/HUDSpeedBar.cc