Orxonox  0.0.5 Codename: Arcturus
Namespaces | Functions
CountDown.cc File Reference

Countdown HUD element, counting down from CountDown::counter_ to zero. More...

#include "CountDown.h"
#include "core/CoreIncludes.h"
#include "core/XMLPort.h"
#include "infos/PlayerInfo.h"
#include "util/Convert.h"

Namespaces

 orxonox
 Die Wagnis Klasse hat die folgenden Aufgaben:
 

Functions

 orxonox::RegisterClass (CountDown)
 

Detailed Description

Countdown HUD element, counting down from CountDown::counter_ to zero.

In use it would like this:

<OverlayGroup name="spacefightHUD" scale = "1, 1">
<CountDown
position = "0.49, 0.05"
pickpoint = "0.0, 0.0"
font = "ShareTechMono"
textsize = 0.06
colour = "1.0, 1.0, 1.0, 1.0"
align = "right"
counter = "10.0"
speedfactor = "1.0"
active = "false"
>
<events>
<activity>
<EventListener event="startcounting" />
</activity>
</events>
</CountDown>
</OverlayGroup>

The counter is triggered by an event called "startcounting" and counts from 10 to 0.