28 #ifndef _WagnisHUD_H__ 29 #define _WagnisHUD_H__ 49 void setConfigValues();
52 virtual void tick(
float dt)
override;
59 virtual void changedOwner()
override;
60 virtual void sizeChanged()
override;
69 {
return this->markerLimit_; }
71 static void selectClosestTarget();
72 static void selectNextTarget();
84 Ogre::TextAreaOverlayElement*
text_;
95 this->healthMarkerSize_ = size;
99 {
return healthMarkerSize_; }
103 this->healthLevelMarkerSize_ = size;
107 {
return healthLevelMarkerSize_; }
111 this->navMarkerSize_ = size;
115 {
return navMarkerSize_; }
118 this->aimMarkerSize_ = size;
123 {
return aimMarkerSize_; }
125 { this->detectionLimit_ = limit; }
127 {
return this->detectionLimit_; }
129 void setTextSize(
float size);
130 float getTextSize()
const;
135 float getArrowSizeX(
int dist)
const;
136 float getArrowSizeY(
int dist)
const;
virtual void positionChanged() override
Determines the position of the overlay.
Definition: WagnisHUD.h:62
float aimMarkerSize_
Definition: WagnisHUD.h:146
float getNavMarkerSize() const
Definition: WagnisHUD.h:114
Definition: WagnisHUD.h:43
Declaration of the Tickable interface.
void setDetectionLimit(float limit)
Definition: WagnisHUD.h:124
float detectionLimit_
Objects that are more far away than detectionLimit_ are not displayed on the HUD. 10000...
Definition: WagnisHUD.h:162
::std::string string
Definition: gtest-port.h:756
bool showDistance_
Definition: WagnisHUD.h:149
Ogre::PanelOverlayElement * healthLevel_
Definition: WagnisHUD.h:81
Definition: RadarListener.h:37
Interface for receiving window events.
Definition: RadarViewable.h:48
Ogre::PanelOverlayElement * target_
Definition: WagnisHUD.h:83
void setHealthMarkerSize(float size)
Definition: WagnisHUD.h:93
RadarViewable * selectedTarget_
Definition: WagnisHUD.h:151
virtual void angleChanged() override
Called whenever the rotation angle has changed.
Definition: WagnisHUD.h:61
bool wasOutOfView_
Definition: WagnisHUD.h:86
xmlelement
Definition: Super.h:519
virtual void radarTick(float dt) override
Definition: WagnisHUD.h:63
Definition: WagnisHUD.h:75
float textSize_
Definition: WagnisHUD.h:148
void setHealthLevelMarkerSize(float size)
Definition: WagnisHUD.h:101
#define _OverlaysExport
Definition: OverlaysPrereqs.h:60
Die Wagnis Klasse hat die folgenden Aufgaben:
Definition: ApplicationPaths.cc:66
Shared library macros, enums, constants and forward declarations for the overlays module ...
Ogre::PanelOverlayElement * health_
Definition: WagnisHUD.h:80
bool outOfView_
Definition: WagnisHUD.h:85
Mode
Definition: CorePrereqs.h:102
unsigned int markerLimit_
Definition: WagnisHUD.h:161
float getAimMarkerSize() const
Definition: WagnisHUD.h:122
float healthLevelMarkerSize_
Definition: WagnisHUD.h:144
float getDetectionLimit() const
Definition: WagnisHUD.h:126
float getHealthLevelMarkerSize() const
Definition: WagnisHUD.h:106
void setNavMarkerSize(float size)
Definition: WagnisHUD.h:109
Base class to display content directly onto the screen.
Definition: OrxonoxOverlay.h:72
Declaration of the OrxonoxOverlay class.
static WagnisHUD * localHUD_s
This is used as a filter. Only the local HUD should be influenced by the static Console Command funct...
Definition: WagnisHUD.h:156
float currentMunitionSpeed_
Definition: WagnisHUD.h:159
std::map< RadarViewable *, ObjectInfo > activeObjectList_
Definition: WagnisHUD.h:140
float healthMarkerSize_
Definition: WagnisHUD.h:143
void setAimMarkerSize(float size)
Definition: WagnisHUD.h:116
bool nextTarget_
Definition: WagnisHUD.h:154
bool closestTarget_
Definition: WagnisHUD.h:153
float navMarkerSize_
Definition: WagnisHUD.h:145
std::list< std::pair< RadarViewable *, unsigned int > > sortedObjectList_
Definition: WagnisHUD.h:141
float getHealthMarkerSize() const
Definition: WagnisHUD.h:98
virtual float getRadarSensitivity() const override
Definition: WagnisHUD.h:65
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
unsigned int getMarkerLimit() const
Definition: WagnisHUD.h:68
Ogre::PanelOverlayElement * panel_
Definition: WagnisHUD.h:82
bool selected_
Definition: WagnisHUD.h:87
Ogre::TextAreaOverlayElement * text_
Definition: WagnisHUD.h:84
std::string fontName_
Definition: WagnisHUD.h:147