30 #ifndef _HUDWeaponMode_H__ 31 #define _HUDWeaponMode_H__ 56 virtual void tick(
float dt)
override;
57 virtual void changedOwner()
override;
58 virtual void changedOverlayGroup()
override;
59 virtual void changedVisibility()
override;
60 virtual void changedName()
override;
61 virtual void positionChanged()
override;
62 virtual void sizeChanged()
override;
67 { weaponModeHUDActualSize_ = vector;
71 {
return weaponModeHUDActualSize_; }
73 { weaponIndex_ = index;
74 this->updatePosition();
77 { weaponModeIndex_ = index;
78 this->updatePosition();
82 this->positionOffset_ = positionOffset;
83 this->updatePosition();
88 void updatePosition();
89 void positionHUDChilds();
Ogre::PanelOverlayElement * overlayElementIcon_
Definition: HUDWeaponMode.h:94
void setWeaponModeIndex(int index)
Definition: HUDWeaponMode.h:76
Declaration of the Tickable interface.
StrongPtr< OverlayText > textOverlayLeft_
Definition: HUDWeaponMode.h:101
::std::string string
Definition: gtest-port.h:756
A strong pointer which wraps a pointer to an object and keeps this object alive as long as the strong...
Definition: CorePrereqs.h:227
Vector2 getWeaponModeHUDActualSize() const
Definition: HUDWeaponMode.h:70
Implementation of the ReplenishingMunition class.
WeakPtr wraps a pointer to an object, which becomes nullptr if the object is deleted.
Definition: CorePrereqs.h:236
Vector2 positionOffset_
Definition: HUDWeaponMode.h:105
Ogre::PanelOverlayElement * overlayElementMunition_
Definition: HUDWeaponMode.h:96
void setPositionOffset(Vector2 positionOffset)
Definition: HUDWeaponMode.h:80
Ogre::PanelOverlayElement * overlayElementReplenish_
Definition: HUDWeaponMode.h:95
StrongPtr< OverlayText > textOverlayRight_
Definition: HUDWeaponMode.h:102
A WeaponMode defines how a Weapon is used.
Definition: WeaponMode.h:49
void setWeaponModeHUDActualSize(Vector2 vector)
Definition: HUDWeaponMode.h:66
Declaration of the OverlayGroup class.
WeakPtr< Pawn > owner_
Definition: HUDWeaponMode.h:91
WeakPtr< WeaponMode > weaponMode_
Definition: HUDWeaponMode.h:92
#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 ...
int weaponIndex_
Definition: HUDWeaponMode.h:106
Vector2 weaponModeHUDActualSize_
Definition: HUDWeaponMode.h:104
Base class to display content directly onto the screen.
Definition: OrxonoxOverlay.h:72
Declaration of the OrxonoxOverlay class.
void setWeaponIndex(int index)
Definition: HUDWeaponMode.h:72
std::string materialNameState_
Definition: HUDWeaponMode.h:99
The Tickable interface provides a tick(dt) function, that gets called every frame.
Definition: Tickable.h:52
Ogre::PanelOverlayElement * overlayElementState_
Definition: HUDWeaponMode.h:97
Definition: HUDWeaponMode.h:50
int weaponModeIndex_
Definition: HUDWeaponMode.h:107